Re: [syzbot] Re: [syzbot] [bluetooth?] general protection fault in bcsp_close

syzbot
2025-02-21T01:00:28Z

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

***

Subject: Re: [syzbot] [bluetooth?] general protection fault in bcsp_close
Author: lizhi.xu@windriver.com

#syz test

diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index acba83156de9..18793c485319 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -716,6 +716,7 @@ static int hci_uart_set_proto(struct hci_uart *hu, int id)

err = hci_uart_register_dev(hu);
if (err) {
+ clear_bit(HCI_UART_PROTO_INIT, &hu->flags);
return err;
}