diff options
author | Kohei Enju <enjuk@amazon.com> | 2025-03-22 07:52:56 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-03-22 16:19:09 +0300 |
commit | 5f3077d7fcd4d777b52473a7d8d6fd065a7deb20 (patch) | |
tree | 993a4903cf9b49124c6cea0c33739ce65d8f1072 /scripts/lib/abi/helpers.py | |
parent | c03bb2fa327e4c25d6c5360a8803a4b1cdc2d0b9 (diff) | |
download | linux-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