]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Unify data extension operation of jited_ksyms and jited_linfo
authorPu Lehui <pulehui@huawei.com>
Mon, 30 May 2022 09:28:10 +0000 (17:28 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Jun 2022 23:25:57 +0000 (16:25 -0700)
commit687dc2a6653c0667c0dce4f92859c8e1174f7584
treef51f86d7deecd218b8c3a109892787d2de0fab5e
parent4ee15fd974acdf1e0cf697b25288ebea54b8e3ec
bpf: Unify data extension operation of jited_ksyms and jited_linfo

We found that 32-bit environment can not print BPF line info due to a data
inconsistency between jited_ksyms[0] and jited_linfo[0].

For example:

  jited_kyms[0] = 0xb800067c, jited_linfo[0] = 0xffffffffb800067c

We know that both of them store BPF func address, but due to the different
data extension operations when extended to u64, they may not be the same.
We need to unify the data extension operations of them.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/CAEf4BzZ-eDcdJZgJ+Np7Y=V-TVjDDvOMqPwzKjyWrh=i5juv4w@mail.gmail.com
Link: https://lore.kernel.org/bpf/20220530092815.1112406-2-pulehui@huawei.com
kernel/bpf/syscall.c