mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+1741b56d54536f4ec349@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [atm?] general protection fault in atmtcp_c_send
Date: Thu, 21 Aug 2025 12:03:49 +0800	[thread overview]
Message-ID: <20250821040350.5170-1-hdanton@sina.com> (raw)
In-Reply-To: <68a6767c.050a0220.3d78fd.0011.GAE@google.com>

> Date: Wed, 20 Aug 2025 18:29:32 -0700	[thread overview]
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    bab3ce404553 Merge branch '100GbE' of git://git.kernel.org..
> git tree:       net-next
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=164893a2580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=412ee2f8b704a5e6
> dashboard link: https://syzkaller.appspot.com/bug?extid=1741b56d54536f4ec349
> compiler:       Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1769faf0580000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=100eaba2580000

#syz test

--- x/drivers/atm/atmtcp.c
+++ y/drivers/atm/atmtcp.c
@@ -294,6 +294,8 @@ static int atmtcp_c_send(struct atm_vcc
 	dev = vcc->dev_data;
 	hdr = (struct atmtcp_hdr *) skb->data;
 	if (hdr->length == ATMTCP_HDR_MAGIC) {
+		if (skb->len < sizeof(struct atmtcp_control))
+			goto done;
 		result = atmtcp_recv_control(
 		    (struct atmtcp_control *) skb->data);
 		goto done;
--

  reply	other threads:[~2025-08-21  4:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-21  1:29 syzbot
2025-08-21  4:03 ` Hillf Danton [this message]
2025-08-21  4:32   ` 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=20250821040350.5170-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+1741b56d54536f4ec349@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®