diff options
author | Eduard Zingerman <eddyz87@gmail.com> | 2024-09-24 14:08:44 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-10-01 17:19:04 +0200 |
commit | a41b3828ec056a631ad22413d4560017fed5c3bd (patch) | |
tree | b3515f5e853b9d52181baad893184849c2a182a7 /scripts/generate_rust_analyzer.py | |
parent | e9bd9c498cb0f5843996dbe5cbce7a1836a83c70 (diff) | |
download | linux-a41b3828ec056a631ad22413d4560017fed5c3bd.tar.gz linux-a41b3828ec056a631ad22413d4560017fed5c3bd.tar.bz2 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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions