Hi,
I have never written a selftest before. I wrote a simple POC to demonstrate this bug. This POC can crash the Linux kernel 6.6.50. I think the ebpf code in the POC will be helpful for writing a selftest.
Thanks,
Lonial Con
Eduard Zingerman <eddyz87@xxxxxxxxx> 于2024年9月11日周三 22:54写道:
On Wed, 2024-09-11 at 14:52 +0800, lonial con wrote:
> In find_equal_scalars(), it should not copy the reg->subreg_def, otherwise a bug will occur when the program flag has BPF_F_TEST_RND_HI32.
>
> Reported-by: Lonial Con <kongln9170@xxxxxxxxx>
> Signed-off-by: Lonial Con <kongln9170@xxxxxxxxx>
> ---
Hello,
could you please write a selftest for this fix?
(please let me know if you need some intro on BPF selftests).
[...]
Attachment:
poc.tar.gz
Description: GNU Zip compressed data