From: Kuniyuki Iwashima <kuniyu@amazon.com>
To: <edumazet@google.com>
Cc: <bpf@vger.kernel.org>, <davem@davemloft.net>,
<dsahern@kernel.org>, <kuba@kernel.org>,
<linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
<pabeni@redhat.com>, <threeearcat@gmail.com>,
<yoshfuji@linux-ipv6.org>, <kuniyu@amazon.com>
Subject: Re: KASAN: use-after-free Read in tcp_write_timer_handler
Date: Wed, 5 Apr 2023 12:41:43 -0700 [thread overview]
Message-ID: <20230405194143.15708-1-kuniyu@amazon.com> (raw)
In-Reply-To: <CANn89iKn4rpqj_8fYt0UMMgAq5L_2PNoY0Ev70ck8u4t4FC_=g@mail.gmail.com>
From: Eric Dumazet <edumazet@google.com>
Date: Wed, 5 Apr 2023 13:28:16 +0200
> On Wed, Apr 5, 2023 at 12:41 PM Dae R. Jeong <threeearcat@gmail.com> wrote:
> >
> > Hi,
> >
> > We observed an issue "KASAN: use-after-free Read in tcp_write_timer_handler" during fuzzing.
> >
> > Unfortunately, we have not found a reproducer for the crash yet. We
> > will inform you if we have any update on this crash. Detailed crash
> > information is attached below.
> >
>
> Thanks for the report.
>
> I have dozens of similar syzbot reports, with no repro.
>
> I usually hold them, because otherwise it is just noise to mailing lists.
>
> Normally, all user TCP sockets hold a reference on the netns
>
> In all these cases, we see a netns being dismantled while there is at
> least one socket with a live timer.
>
> This is therefore a kernel TCP socket, for which we do not have yet
> debugging infra ( REF_TRACKER )
>
> CONFIG_NET_DEV_REFCNT_TRACKER=y is helping to detect too many dev_put(),
> we need something tracking the "kernel sockets" as well.
Maybe I missed something, but we track kernel sockets with netns
by notrefcnt_tracker ?
I thought now CONFIG_NET_NS_REFCNT_TRACKER can catch the case.
>
> Otherwise bugs in subsystems not properly dismantling their kernel
> socket at netns dismantle are next to impossible to track and fix.
>
> If anyone has time to implement this, feel free to submit patches.
>
> Thanks.
next prev parent reply other threads:[~2023-04-05 19:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-05 10:41 Dae R. Jeong
2023-04-05 11:28 ` Eric Dumazet
2023-04-05 19:41 ` Kuniyuki Iwashima [this message]
2023-04-05 19:47 ` Eric Dumazet
2023-04-05 22:17 ` Dae R. Jeong
-- strict thread matches above, loose matches on Subject: below --
2021-09-22 1:43 Hao Sun
2021-09-22 1:56 ` Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230405194143.15708-1-kuniyu@amazon.com \
--to=kuniyu@amazon.com \
--cc=bpf@vger.kernel.org \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=threeearcat@gmail.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®