aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browsers/annotate.c
diff options
context:
space:
mode:
authorPhilipp Rudo <[email protected]>2018-04-13 22:36:39 +0000
committerLinus Torvalds <[email protected]>2018-04-14 00:10:28 +0000
commit8da0b724959ccd3f8435214ebdaf1aef548967bb (patch)
tree5614e73eb78981992032e7523bed4691b31c5a5a /tools/perf/ui/browsers/annotate.c
parentkernel/kexec_file.c: remove unneeded variables in kexec_purgatory_setup_sechdrs (diff)
downloadkernel-8da0b724959ccd3f8435214ebdaf1aef548967bb.tar.gz
kernel-8da0b724959ccd3f8435214ebdaf1aef548967bb.zip
kernel/kexec_file.c: remove mis-use of sh_offset field during purgatory load
The current code uses the sh_offset field in purgatory_info->sechdrs to store a pointer to the current load address of the section. Depending whether the section will be loaded or not this is either a pointer into purgatory_info->purgatory_buf or kexec_purgatory. This is not only a violation of the ELF standard but also makes the code very hard to understand as you cannot tell if the memory you are using is read-only or not. Remove this misuse and store the offset of the section in pugaroty_info->purgatory_buf in sh_offset. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Philipp Rudo <[email protected]> Acked-by: Dave Young <[email protected]> Cc: AKASHI Takahiro <[email protected]> Cc: Eric Biederman <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Thiago Jung Bauermann <[email protected]> Cc: Vivek Goyal <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions