Lianbo Jiang
475f63ae63
kexec_file: Correctly output debugging information for the PT_LOAD ELF header
Currently, when we enable the debugging switch to debug kexec_file,
we always get the following incorrect results:
kexec_file: Crash PT_LOAD elf header. phdr=00000000c988639b vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=51 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=000000003cca69a0 vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=52 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000c584cb9f vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=53 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000cf85d57f vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=54 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000a4a8f847 vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=55 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000272ec49f vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=56 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000ea0b65de vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=57 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=000000001f5e490c vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=58 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000dfe4109e vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=59 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000480ed2b6 vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=60 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=0000000080b65151 vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=61 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=0000000024e31c5e vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=62 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000332e0385 vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=63 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=000000002754d5da vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=64 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=00000000783320dd vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=65 p_offset=0x0
kexec_file: Crash PT_LOAD elf header. phdr=0000000076fe5b64 vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=66 p_offset=0x0
The reason is that kernel always prints the values of the next PT_LOAD
instead of the current PT_LOAD. Change it to ensure that we can get the
correct debugging information.
[ mingo: Amended changelog, capitalized "ELF". ]
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Dave Young <dyoung@redhat.com>
Link: https://lore.kernel.org/r/20200804044933.1973-4-lijiang@redhat.com
2020-08-07 01:32:00 +02:00
..
2020-08-03 18:27:40 -07:00
2020-08-03 11:57:03 -07:00
2020-04-07 10:43:42 -07:00
2020-08-04 13:49:43 -07:00
2020-08-04 22:47:54 -07:00
2020-07-26 15:42:20 +02:00
2020-08-05 20:13:21 -07:00
2020-06-14 01:57:21 +09:00
2020-08-06 11:55:43 -07:00
2020-08-01 09:26:27 +02:00
2020-05-11 00:31:38 +02:00
2020-08-06 11:55:43 -07:00
2020-08-03 13:12:44 +02:00
2020-08-04 22:22:25 -07:00
2020-08-06 11:55:43 -07:00
2020-08-06 11:55:43 -07:00
2020-08-04 18:17:37 -07:00
2020-08-06 11:55:43 -07:00
2020-03-25 11:50:48 +01:00
2020-06-09 09:39:14 -07:00
2020-07-16 12:35:15 -07:00
2020-03-23 18:19:06 +01:00
2020-06-17 16:43:11 -04:00
2020-04-06 08:58:42 -07:00
2020-08-04 14:20:26 -07:00
2020-07-29 10:00:36 -04:00
2020-04-22 15:23:10 -04:00
2020-08-04 14:20:26 -07:00
2020-07-30 11:15:58 -07:00
2020-05-01 12:35:21 +10:00
2020-02-04 03:05:26 +00:00
2020-06-11 15:14:36 +02:00
2020-05-15 11:44:34 -07:00
2020-06-03 13:06:42 -07:00
2020-07-02 17:56:11 +01:00
2020-04-15 11:21:54 +02:00
2020-05-20 14:44:21 -05:00
2020-08-04 14:27:25 -07:00
2020-04-07 10:43:42 -07:00
2020-08-04 15:12:02 -07:00
2020-08-04 13:49:43 -07:00
2020-06-06 23:42:01 +09:00
2020-06-02 10:59:11 -07:00
2020-06-08 11:05:56 -07:00
2020-05-28 10:54:15 +02:00
2020-07-28 13:18:01 +02:00
2020-03-25 10:04:01 -05:00
2019-12-08 14:37:36 +01:00
2020-06-10 19:14:17 -07:00
2020-01-08 16:32:55 +00:00
2020-08-07 01:32:00 +02:00
2020-01-08 16:32:55 +00:00
2020-01-08 16:32:55 +00:00
2020-04-10 15:36:22 -07:00
2020-07-28 13:19:05 +02:00
2020-07-08 11:38:59 +02:00
2020-04-27 02:07:40 -04:00
2020-08-04 21:00:11 -07:00
2020-07-24 17:00:08 +02:00
2020-06-02 10:59:12 -07:00
2020-07-08 11:14:22 +02:00
2020-07-23 17:34:18 +10:00
2020-06-11 15:14:36 +02:00
2020-07-19 20:14:42 +02:00
2020-08-04 15:02:07 -07:00
2020-02-04 03:05:26 +00:00
2020-01-18 13:51:39 +01:00
2020-07-01 12:09:13 +03:00
2020-06-09 09:39:14 -07:00
2020-05-27 11:10:05 +02:00
2019-12-25 10:41:20 +01:00
2020-06-04 16:14:56 +01:00
2020-07-14 16:29:42 -07:00
2020-07-26 23:57:52 +02:00
2020-07-22 10:22:04 +02:00
2020-08-04 13:40:35 -07:00
2020-06-24 07:48:28 -07:00
2020-01-17 10:19:21 +01:00
2020-07-19 20:14:42 +02:00
2020-01-09 16:42:29 -07:00
2020-07-29 13:51:47 +02:00
2020-06-30 12:18:08 -06:00
2019-12-04 15:18:39 +01:00
2020-06-29 12:01:45 -07:00
2019-12-18 18:07:31 +01:00
2020-04-07 21:51:27 +02:00
2020-07-21 08:24:52 -05:00
2020-02-07 15:34:12 +01:00
2020-05-09 13:57:12 +02:00
2020-06-04 19:06:24 -07:00
2020-07-07 11:58:59 -05:00
2020-04-27 02:07:40 -04:00
2020-05-09 13:57:12 +02:00
2020-06-13 09:56:21 -07:00
2020-06-08 11:05:56 -07:00
2020-06-17 10:57:41 -07:00