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

Eyal Birger
2022-11-07T06:09:55Z

Hi,

On Mon, Nov 7, 2022 at 5:27 AM Pengfei Xu <pengfei.xu@intel.com> 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/

Thanks,
Eyal.