aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-06-16 23:41:26 +0800
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-06-18 09:09:17 -0400
commitfb780761e7bd9f2e94f5b9a296ead6b35b944206 (patch)
tree75d08ed9c036205c84c0e0275054a82b10d33963 /kernel
parenttracing: Correct the length check which causes memory corruption (diff)
downloadlinux-dev-fb780761e7bd9f2e94f5b9a296ead6b35b944206.tar.xz
linux-dev-fb780761e7bd9f2e94f5b9a296ead6b35b944206.zip
recordmcount: Correct st_shndx handling
One should only use st_shndx when >SHN_UNDEF and <SHN_LORESERVE. When SHN_XINDEX, then use .symtab_shndx. Otherwise use 0. This handles the case: st_shndx >= SHN_LORESERVE && st_shndx != SHN_XINDEX. Link: https://lore.kernel.org/lkml/20210607023839.26387-1-mark-pk.tsai@mediatek.com/ Link: https://lkml.kernel.org/r/20210616154126.2794-1-mark-pk.tsai@mediatek.com Reported-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com> Tested-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> [handle endianness of sym->st_shndx] Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions