Re: [syzkaller] There is "lwtunnel_valid_encap_type" WARNING in 6.1-rc3 mainline kernel

From: Pengfei Xu
Date: Mon Nov 07 2022 - 03:16:10 EST


Hi Eyal,

On 2022-11-07 at 08:09:39 +0200, Eyal Birger wrote:
> Hi,
>
> On Mon, Nov 7, 2022 at 5:27 AM Pengfei Xu <pengfei.xu@xxxxxxxxx> wrote:
> >
> > Hi Birger and net expert,
> >
> > Greeting!
> >
> > There is "lwtunnel_valid_encap_type" WARNING in 6.1-rc3 mainline kernel in syzkaller test in guest:
>
> <snip>
>
> >
> > Bisect and found the first bad commit is 2c2493b9da9166478fe072e3054f8a5741dadb02.
> > "xfrm: lwtunnel: add lwtunnel support for xfrm interfaces in collect_md mode"
> > And revert this commit, this issue could not be reproduced.
> >
> > All bisect and test dmesg log, kconfig, repro.c and repro binary are in link:
> > https://github.com/xupengfe/syzkaller_logs/tree/main/221103_152117_lwtunnel_valid_encap_type
> >
> > Kconfig, repro.c are in attached.
> >
> > If you fix this issue, thanks to add the Reported tag.
> >
> > Resend the email due to previous large attachment.
>
> Thanks for the report.
>
> A fix was submitted to the IPsec tree:
> https://lore.kernel.org/netdev/Y0UwqMZQ6n+G%2F%2FaD@shredder/
>
Ah, thanks for your information of fixed patch, please ignore this email.

Thanks!
BR.

> Thanks,
> Eyal.