Re: [Syzkaller] There is inet_csk_get_port WARNING in v6.1-rc4 kernel

From: Pengfei Xu
Date: Fri Nov 11 2022 - 00:49:05 EST


Hi Joanne Koong,

On 2022-11-10 at 10:37:36 -0800, Joanne Koong wrote:
> On Wed, Nov 9, 2022 at 7:38 PM Pengfei Xu <pengfei.xu@xxxxxxxxx> wrote:
> >
> > Hi Joanne Koong and net developer,
> >
> > Greeting!
> >
> > Soft remind: "WARNING inet_csk_get_port" is found in v6.1-rc4 kernel.
> >
> > And first bad commit is: 28044fc1d4953b07acec0da4d2fc4784c57ea6fb
> > "net: Add a bhash2 table hashed by port and address"
> >
> > Reproduce code from syzkaller, kconfig and bisect info are in attached.
> > Full information is in the link:
> > https://github.com/xupengfe/syzkaller_logs/tree/main/221108_215733_inet_csk_get_port
> >
> > Thanks!
> > BR.
>
> Thanks for your email. This has the same root cause (handling the
> error case when connect() fails) as the issue discussed in this thread
> https://lore.kernel.org/netdev/20221029001249.86337-1-kuniyu@xxxxxxxxxx/.
> After consensus is reached in this thread, I'll submit a follow-up
> fix; I'm hoping to submit it by the end of next week at the latest.

Great! Thanks for your link!
And hope the repro.c and above info is helpful.

Thanks!
BR.