kernel_samsung_a53x/drivers/bluetooth
Lee, Chun-Yi f3ff53065c Bluetooth: hci_ldisc: check HCI_UART_PROTO_READY flag in HCIUARTGETPROTO
commit 9c33663af9ad115f90c076a1828129a3fbadea98 upstream.

This patch adds code to check HCI_UART_PROTO_READY flag before
accessing hci_uart->proto. It fixes the race condition in
hci_uart_tty_ioctl() between HCIUARTSETPROTO and HCIUARTGETPROTO.
This issue bug found by Yu Hao and Weiteng Chen:

BUG: general protection fault in hci_uart_tty_ioctl [1]

The information of C reproducer can also reference the link [2]

Reported-by: Yu Hao <yhao016@ucr.edu>
Closes: https://lore.kernel.org/all/CA+UBctC3p49aTgzbVgkSZ2+TQcqq4fPDO7yZitFT5uBPDeCO2g@mail.gmail.com/ [1]
Reported-by: Weiteng Chen <wchen130@ucr.edu>
Closes: https://lore.kernel.org/lkml/CA+UBctDPEvHdkHMwD340=n02rh+jNRJNNQ5LBZNA+Wm4Keh2ow@mail.gmail.com/T/ [2]
Signed-off-by: "Lee, Chun-Yi" <jlee@suse.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-19 15:00:26 +01:00
..
ath3k.c Bluetooth: ath3k: Fix multiple issues reported by checkpatch.pl 2024-11-19 14:19:06 +01:00
bcm43xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm203x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bfusb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bluecard_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpa10x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bt3c_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btbcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btbcm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btintel.c Bluetooth: btintel: Fixe build regression 2024-11-19 09:23:15 +01:00
btintel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_sdio.c Revert "Bluetooth: btmrvl: Use IRQF_NO_AUTOEN flag in request_irq()" 2024-11-24 00:23:12 +01:00
btmrvl_sdio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmtksdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmtkuart.c Bluetooth: btmtkuart: fix recv_buf() return value 2024-11-18 12:12:38 +01:00
btpower.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btqca.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btqca.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btqcomsmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrtl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrtl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btsdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btusb.c Bluetooth: btusb: Add RTL8852BE device 0489:e123 to device tables 2024-12-17 13:24:31 +01:00
btwilink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dtl1_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
h4_recv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_ag6xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_ath.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_bcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_bcsp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_h4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_h5.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_intel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_ldisc.c Bluetooth: hci_ldisc: check HCI_UART_PROTO_READY flag in HCIUARTGETPROTO 2025-01-19 15:00:26 +01:00
hci_ll.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_mrvl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_nokia.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_qca.c Bluetooth: qca: Fix BT enable failure again for QCA6390 after warm reboot 2024-11-19 14:19:42 +01:00
hci_serdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_uart.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_vhci.c Bluetooth: vhci: Fix race when opening vhci device 2024-11-08 11:26:08 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00