From: syzbot <syzbot+b4c65e7d749285a82467@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: [syzbot] [kernel?] general protection fault in put_ipc_ns
Date: Tue, 18 Nov 2025 09:13:00 -0800 [thread overview]
Message-ID: <691ca91c.a70a0220.3124cb.00d2.GAE@google.com> (raw)
In-Reply-To: <691b044b.a70a0220.3124cb.009d.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: [syzbot] [kernel?] general protection fault in put_ipc_ns
Author: hellouser819@gmail.com
#syz test
diff --git a/ipc/namespace.c b/ipc/namespace.c
index 535f16e..ea3015c 100644
--- a/ipc/namespace.c
+++ b/ipc/namespace.c
@@ -201,7 +201,7 @@ static void free_ipc(struct work_struct *unused)
*/
void put_ipc_ns(struct ipc_namespace *ns)
{
- if (ns_ref_put_and_lock(ns, &mq_lock)) {
+ if (ns != NULL && ns_ref_put_and_lock(ns, &mq_lock)) {
mq_clear_sbinfo(ns);
spin_unlock(&mq_lock);
prev parent reply other threads:[~2025-11-18 17:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-17 11:17 [syzbot] [kernel?] general protection fault in put_ipc_ns syzbot
2025-11-18 0:20 ` Hillf Danton
2025-11-18 3:03 ` syzbot
2025-11-18 15:52 ` Forwarded: " syzbot
2025-11-18 17:13 ` syzbot [this message]
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=691ca91c.a70a0220.3124cb.00d2.GAE@google.com \
--to=syzbot+b4c65e7d749285a82467@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
--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