]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix modifier skipping logic
authorAlexei Starovoitov <ast@kernel.org>
Sat, 1 Feb 2020 00:03:14 +0000 (16:03 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 3 Feb 2020 23:06:07 +0000 (00:06 +0100)
commit1bf381d42dc9500051b528aa2d9e5579203ae4d7
tree2f7453642cf117d0550a4af58b15a1ae312d1139
parent99066512d5d5e4daf791f957bd3526c084f396eb
bpf: Fix modifier skipping logic

Fix the way modifiers are skipped while walking pointers. Otherwise second
level dereferences of 'const struct foo *' will be rejected by the verifier.

Fixes: 83b990fc8504 ("bpf: Implement accurate raw_tp context access via BTF")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200201000314.261392-1-ast@kernel.org
kernel/bpf/btf.c