summaryrefslogtreecommitdiff
path: root/scripts/lib/abi/helpers.py
diff options
context:
space:
mode:
authorKohei Enju <enjuk@amazon.com>2025-03-22 07:52:56 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-03-22 16:19:09 +0300
commit5f3077d7fcd4d777b52473a7d8d6fd065a7deb20 (patch)
tree993a4903cf9b49124c6cea0c33739ce65d8f1072 /scripts/lib/abi/helpers.py
parentc03bb2fa327e4c25d6c5360a8803a4b1cdc2d0b9 (diff)
downloadlinux-5f3077d7fcd4d777b52473a7d8d6fd065a7deb20.tar.xz
selftests/bpf: Add selftests for load-acquire/store-release when register number is invalid
syzbot reported out-of-bounds read in check_atomic_load/store() when the register number is invalid in this context: https://syzkaller.appspot.com/bug?extid=a5964227adc0f904549c To avoid the issue from now on, let's add tests where the register number is invalid for load-acquire/store-release. After discussion with Eduard, I decided to use R15 as invalid register because the actual slab-out-of-bounds read issue occurs when the register number is R12 or larger. Signed-off-by: Kohei Enju <enjuk@amazon.com> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/r/20250322045340.18010-6-enjuk@amazon.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/lib/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions