From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+30a19e01a97420719891@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [net?] WARNING in cleanup_net (4)
Date: Fri, 21 Feb 2025 20:16:51 +0800 [thread overview]
Message-ID: <20250221121653.2463-1-hdanton@sina.com> (raw)
In-Reply-To: <67b72aeb.050a0220.14d86d.0283.GAE@google.com>
On Thu, 20 Feb 2025 05:15:23 -0800
> syzbot found the following issue on:
>
> HEAD commit: 6537cfb395f3 Merge tag 'sound-6.14-rc4' of git://git.kerne..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13d89498580000
#syz test
--- x/include/net/net_namespace.h
+++ y/include/net/net_namespace.h
@@ -339,6 +339,7 @@ static inline void __netns_tracker_alloc
bool refcounted,
gfp_t gfp)
{
+ get_net(net);
#ifdef CONFIG_NET_NS_REFCNT_TRACKER
ref_tracker_alloc(refcounted ? &net->refcnt_tracker :
&net->notrefcnt_tracker,
@@ -360,6 +361,7 @@ static inline void __netns_tracker_free(
ref_tracker_free(refcounted ? &net->refcnt_tracker :
&net->notrefcnt_tracker, tracker);
#endif
+ put_net(net);
}
static inline struct net *get_net_track(struct net *net,
--
next prev parent reply other threads:[~2025-02-21 12:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 13:15 syzbot
2025-02-21 12:16 ` Hillf Danton [this message]
2025-02-21 12:44 ` syzbot
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=20250221121653.2463-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+30a19e01a97420719891@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/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®