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
preload
Kconfig -rw-r--r-- 2.6 KB
Makefile -rw-r--r-- 1.5 KB
arraymap.c -rw-r--r-- 35.0 KB
bpf_inode_storage.c -rw-r--r-- 6.9 KB
bpf_iter.c -rw-r--r-- 15.5 KB
bpf_local_storage.c -rw-r--r-- 16.8 KB
bpf_lru_list.c -rw-r--r-- 17.4 KB
bpf_lru_list.h -rw-r--r-- 2.1 KB
bpf_lsm.c -rw-r--r-- 6.5 KB
bpf_struct_ops.c -rw-r--r-- 16.0 KB
bpf_struct_ops_types.h -rw-r--r-- 202 bytes
bpf_task_storage.c -rw-r--r-- 8.2 KB
btf.c -rw-r--r-- 156.1 KB
cgroup.c -rw-r--r-- 50.5 KB
core.c -rw-r--r-- 60.7 KB
cpumap.c -rw-r--r-- 18.9 KB
devmap.c -rw-r--r-- 23.1 KB
disasm.c -rw-r--r-- 9.0 KB
disasm.h -rw-r--r-- 1.0 KB
dispatcher.c -rw-r--r-- 3.6 KB
hashtab.c -rw-r--r-- 58.1 KB
helpers.c -rw-r--r-- 25.3 KB
inode.c -rw-r--r-- 17.3 KB
local_storage.c -rw-r--r-- 14.3 KB
lpm_trie.c -rw-r--r-- 20.9 KB
map_in_map.c -rw-r--r-- 2.7 KB
map_in_map.h -rw-r--r-- 461 bytes
map_iter.c -rw-r--r-- 4.5 KB
net_namespace.c -rw-r--r-- 13.0 KB
offload.c -rw-r--r-- 16.3 KB
percpu_freelist.c -rw-r--r-- 4.7 KB
percpu_freelist.h -rw-r--r-- 1.1 KB
prog_iter.c -rw-r--r-- 2.4 KB
queue_stack_maps.c -rw-r--r-- 6.6 KB
reuseport_array.c -rw-r--r-- 8.6 KB
ringbuf.c -rw-r--r-- 12.7 KB
stackmap.c -rw-r--r-- 18.5 KB
syscall.c -rw-r--r-- 106.6 KB
sysfs_btf.c -rw-r--r-- 1.1 KB
task_iter.c -rw-r--r-- 14.7 KB
tnum.c -rw-r--r-- 4.6 KB
trampoline.c -rw-r--r-- 15.9 KB
verifier.c -rw-r--r-- 384.7 KB

back to top