mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+683f8cb11b94b1824c77@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in skb_queue_purge_reason (2)
Date: Wed,  5 Feb 2025 19:05:27 +0800	[thread overview]
Message-ID: <20250205110528.1938-1-hdanton@sina.com> (raw)
In-Reply-To: <67a228ba.050a0220.d7c5a.00b9.GAE@google.com>

On Tue, 04 Feb 2025 06:48:26 -0800
> syzbot has found a reproducer for the following issue on:
> 
> HEAD commit:    40b8e93e17bf Add linux-next specific files for 20250204
> git tree:       linux-next
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=12f74f64580000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git  master

--- x/drivers/bluetooth/hci_mrvl.c
+++ y/drivers/bluetooth/hci_mrvl.c
@@ -97,11 +97,14 @@ static int mrvl_close(struct hci_uart *h
 	if (hu->serdev)
 		serdev_device_close(hu->serdev);
 
+	if (!mrvl)
+		goto out;
 	skb_queue_purge(&mrvl->txq);
 	skb_queue_purge(&mrvl->rawq);
 	kfree_skb(mrvl->rx_skb);
 	kfree(mrvl);
 
+out:
 	hu->priv = NULL;
 	return 0;
 }
--

  reply	other threads:[~2025-02-05 11:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-17  8:44 syzbot
2025-02-04 14:48 ` syzbot
2025-02-05 11:05   ` Hillf Danton [this message]
2025-02-05 11:31     ` syzbot
2025-02-10 11:26 ` syzbot
2025-02-11 14:16   ` [DMARC error] " Arseniy Krasnov
2025-02-11 16:22     ` Arseniy Krasnov
2025-02-11 16:51       ` Luiz Augusto von Dentz
2025-02-12  6:05         ` Arseniy Krasnov
2025-02-12  6:49 ` [syzbot] " syzbot
     [not found] <0cc53c2e-a7cc-74ea-a5f0-928af997ecf7@salutedevices.com>
2025-02-12  7:14 ` 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=20250205110528.1938-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+683f8cb11b94b1824c77@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®