Re: BUG: KASAN: use-after-free in page_to_skb.isra.0+0x300/0x418

From: Naresh Kamboju
Date: Tue Apr 20 2021 - 13:32:30 EST


On Tue, 20 Apr 2021 at 19:47, Eric Dumazet <edumazet@xxxxxxxxxx> wrote:
>
> On Tue, Apr 20, 2021 at 3:45 PM Naresh Kamboju
> <naresh.kamboju@xxxxxxxxxx> wrote:
> >
> > Following kernel BUG reported on qemu-arm64 running linux next 20210420
> > the config is enabled with KASAN.
> >
> > steps to reproduce:
> > ----------------------------
> > - Build the arm64 kernel with KASAN enabled.
> > - boot it with below command and you will notice
> > /usr/bin/qemu-system-aarch64 -cpu host -machine virt,accel=kvm
> > -nographic -net nic,model=virtio,macaddr=BA:DD:AD:CC:09:10 -net tap -m
> > 1024 -monitor none -kernel kernel/Image.gz --append "console=ttyAMA0
> > root=/dev/vda rw" -hda
> > rootfs/rpb-console-image-lkft-juno-20210414125244-133.rootfs.ext4 -m
> > 4096 -smp 4 -nographic
> >
> >
> > crash log:
> > -------------
> >
>
> This is the fifth report, have you tried the proposed fix ?
>
> https://patchwork.kernel.org/project/netdevbpf/patch/20210420094341.3259328-1-eric.dumazet@xxxxxxxxx/

I have tested your patch now and the reported issue got fixed.

Tested-by: Naresh Kamboju <naresh.kamboju@xxxxxxxxxx>

Tested log link,
https://lkft.validation.linaro.org/scheduler/job/2555544#L208

- Naresh