All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+b3c0e6a240078433c42b@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: BUG:[syzbot] [net?] kernel BUG in pn_socket_autobind
Date: Sun, 26 Apr 2026 00:50:25 -0700	[thread overview]
Message-ID: <69edc3c1.a00a0220.7773.0023.GAE@google.com> (raw)
In-Reply-To: <69e79944.a00a0220.17a17.001a.GAE@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.

***

Subject: BUG:[syzbot] [net?] kernel BUG in pn_socket_autobind
Author: suresh.k.chandrappa@gmail.com

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
master

diff --git a/net/phonet/socket.c b/net/phonet/socket.c
index c4af26357144..522512094b13 100644
--- a/net/phonet/socket.c
+++ b/net/phonet/socket.c
@@ -210,7 +210,8 @@ static int pn_socket_autobind(struct socket *sock)
                             sizeof(struct sockaddr_pn));
        if (err != -EINVAL)
                return err;
-       BUG_ON(!pn_port(pn_sk(sock->sk)->sobject));
+       if (!pn_port(pn_sk(sock->sk)->sobject))
+               return -ENOBUFS;
        return 0; /* socket was already bound */
 }

  parent reply	other threads:[~2026-04-26  7:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-21 15:35 [syzbot] [net?] kernel BUG in pn_socket_autobind syzbot
2026-04-22 11:16 ` syzbot
2026-04-26  7:50 ` syzbot [this message]
2026-05-08 12:08 ` Helen Koike

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=69edc3c1.a00a0220.7773.0023.GAE@google.com \
    --to=syzbot+b3c0e6a240078433c42b@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.