aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/sock_map.c
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2024-09-24 14:08:44 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2024-10-01 17:19:04 +0200
commita41b3828ec056a631ad22413d4560017fed5c3bd (patch)
treeb3515f5e853b9d52181baad893184849c2a182a7 /net/core/sock_map.c
parentbpf: sync_linked_regs() must preserve subreg_def (diff)
downloadwireguard-linux-a41b3828ec056a631ad22413d4560017fed5c3bd.tar.xz
wireguard-linux-a41b3828ec056a631ad22413d4560017fed5c3bd.zip
selftests/bpf: Verify that sync_linked_regs preserves subreg_def
This test was added because of a bug in verifier.c:sync_linked_regs(), upon range propagation it destroyed subreg_def marks for registers. The test is written in a way to return an upper half of a register that is affected by range propagation and must have it's subreg_def preserved. This gives a return value of 0 and leads to undefined return value if subreg_def mark is not preserved. Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20240924210844.1758441-2-eddyz87@gmail.com
Diffstat (limited to 'net/core/sock_map.c')
0 files changed, 0 insertions, 0 deletions