Revision fb780761e7bd9f2e94f5b9a296ead6b35b944206 authored by Peter Zijlstra on 16 June 2021, 15:41:26 UTC, committed by Steven Rostedt (VMware) on 18 June 2021, 13:09:17 UTC
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>
1 parent 3e08a9f
History
File Mode Size
Kconfig -rw-r--r-- 2.3 KB
Makefile -rw-r--r-- 248 bytes
compress.h -rw-r--r-- 2.5 KB
data.c -rw-r--r-- 7.5 KB
decompressor.c -rw-r--r-- 10.3 KB
dir.c -rw-r--r-- 3.4 KB
erofs_fs.h -rw-r--r-- 10.7 KB
inode.c -rw-r--r-- 9.3 KB
internal.h -rw-r--r-- 13.1 KB
namei.c -rw-r--r-- 5.8 KB
pcpubuf.c -rw-r--r-- 3.1 KB
super.c -rw-r--r-- 17.0 KB
tagptr.h -rw-r--r-- 3.0 KB
utils.c -rw-r--r-- 6.5 KB
xattr.c -rw-r--r-- 16.7 KB
xattr.h -rw-r--r-- 2.4 KB
zdata.c -rw-r--r-- 37.5 KB
zdata.h -rw-r--r-- 4.7 KB
zmap.c -rw-r--r-- 15.4 KB
zpvec.h -rw-r--r-- 3.5 KB

back to top