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

From: Hillf Danton
Date: Mon Feb 10 2025 - 06:09:25 EST


On Sun, 09 Feb 2025 07:45:19 -0800
> syzbot found the following issue on:
>
> HEAD commit: ed58d103e6da Add linux-next specific files for 20250207
> git tree: linux-next
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=137f2bdf980000

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

--- x/drivers/bluetooth/hci_ldisc.c
+++ y/drivers/bluetooth/hci_ldisc.c
@@ -711,6 +711,7 @@ static int hci_uart_set_proto(struct hci

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

--