[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250423112029.189032-1-contact@arnaud-lcm.com>
Date: Wed, 23 Apr 2025 13:20:29 +0200
From: Arnaud Lecomte <contact@...aud-lcm.com>
To: syzbot+ac3c79181f6aecc5120c@...kaller.appspotmail.com
Cc: johan.hedberg@...il.com,
linux-bluetooth@...r.kernel.org,
linux-kernel@...r.kernel.org,
luiz.dentz@...il.com,
marcel@...tmann.org,
syzkaller-bugs@...glegroups.com
Subject: syz test
#syz test
--- a/net/bluetooth/coredump.c
+++ b/net/bluetooth/coredump.c
@@ -249,6 +249,11 @@ static void hci_devcd_dump(struct hci_dev *hdev)
size = hdev->dump.tail - hdev->dump.head;
+ if (size >SKB_MAX_ALLOC) {
+ bt_dev_err(hdev, "Dump too large (%u bytes)", size);
+ return;
+ }
+
/* Emit a devcoredump with the available data */
dev_coredumpv(&hdev->dev, hdev->dump.head, size, GFP_KERNEL);
--
Powered by blists - more mailing lists