Re: [syzbot] [net?] KASAN: slab-use-after-free Read in unix_stream_read_actor (2)

From: Eric Dumazet
Date: Thu Sep 05 2024 - 04:04:39 EST


On Thu, Sep 5, 2024 at 9:35 AM Shoaib Rao <rao.shoaib@xxxxxxxxxx> wrote:
>

> >
> Hi All,
>
> I am not able to reproduce the issue. I have run the C program at least
> 100 times in a loop. In the I do get an EFAULT, not sure if that is
> intentional or not but no panic. Should I be doing something
> differently? The kernel version I am using is
> v6.11-rc6-70-gc763c4339688. Later I can try with the exact version.


Have you selected ASAN in your kernel build ?

CONFIG_KASAN=y
CONFIG_CC_HAS_KASAN_MEMINTRINSIC_PREFIX=y
CONFIG_KASAN_GENERIC=y
CONFIG_KASAN_INLINE=y
CONFIG_KASAN_STACK=y
CONFIG_KASAN_VMALLOC=y

>
> [rshoaib@turbo-2 debug_pnic]$ gcc cause_panic.c -o panic_sys
> [rshoaib@turbo-2 debug_pnic]$ strace -f ./panic_sys
> execve("./panic_sys", ["./panic_sys"], 0x7ffe7d271d38 /* 63 vars */) = 0
> brk(NULL) = 0x18104000