Re: [syzbot] Re: KASAN: use-after-free Read in netdev_unregister_kobject
From: syzbot
Date: Fri Nov 01 2024 - 07:59:52 EST
For archival purposes, forwarding an incoming command email to
linux-kernel@xxxxxxxxxxxxxxx, syzkaller-bugs@xxxxxxxxxxxxxxxx.
***
Subject: Re: KASAN: use-after-free Read in netdev_unregister_kobject
Author: dmantipov@xxxxxxxxx
#syz test git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next dff8a64238a3f951dbf0930bac915eec7cae8200
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index 367e32fe30eb..80ac537fa500 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -73,6 +73,8 @@ void hci_conn_del_sysfs(struct hci_conn *conn)
return;
}
+ device_move(&conn->dev, NULL, DPM_ORDER_DEV_LAST);
+
while (1) {
struct device *dev;
--
2.47.0