mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+a43f81e0646c5bbd2b88@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [io-uring?] [net?] WARNING: refcount bug in zcrx_unregister_user
Date: Wed, 12 Aug 2026 12:42:20 +0800	[thread overview]
Message-ID: <tencent_A3696643AC645AB76E577BE6CD137EE36405@qq.com> (raw)
In-Reply-To: <6a7bbccb.ac361c09.22ff0a.0048.GAE@google.com>

#syz test

diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index f1464ea8ca64..2dbddf80244d 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -567,11 +567,10 @@ static void io_close_queue(struct io_zcrx_ifq *ifq)
 		.mp_priv = ifq,
 	};
 
-	scoped_guard(mutex, &ifq->pp_lock) {
-		netdev = ifq->netdev;
-		netdev_tracker = ifq->netdev_tracker;
-		ifq->netdev = NULL;
-	}
+	guard(mutex)(&ifq->pp_lock);
+	netdev = ifq->netdev;
+	netdev_tracker = ifq->netdev_tracker;
+	ifq->netdev = NULL;
 
 	if (netdev) {
 		if (ifq->if_rxq != -1) {


  reply	other threads:[~2026-08-12  4:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-12  0:22 syzbot
2026-08-12  4:42 ` Edward Adam Davis [this message]
2026-08-12  5:23   ` syzbot
2026-08-12  9:33 ` Edward Adam Davis
2026-08-12 10:36   ` 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=tencent_A3696643AC645AB76E577BE6CD137EE36405@qq.com \
    --to=eadavis@qq.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+a43f81e0646c5bbd2b88@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®