aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorLee, Chun-Yi <joeyli.kernel@gmail.com>2023-07-10 23:17:23 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-08-11 11:48:01 -0700
commit9c33663af9ad115f90c076a1828129a3fbadea98 (patch)
treed78f687eae08153a850dacbe287d57d230d1b689 /tools/perf/scripts/python/bin
parentBluetooth: hci_debugfs: Use kstrtobool() instead of strtobool() (diff)
downloadlinux-9c33663af9ad115f90c076a1828129a3fbadea98.tar.gz
linux-9c33663af9ad115f90c076a1828129a3fbadea98.zip
Bluetooth: hci_ldisc: check HCI_UART_PROTO_READY flag in HCIUARTGETPROTO
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>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions