android_kernel_sony_sdm845/include/net/bluetooth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Itay Iellin b104109c9f Bluetooth: Fix the creation of hdev->name
commit 103a2f3255a95991252f8f13375c3a96a75011cd upstream.

Set a size limit of 8 bytes of the written buffer to "hdev->name"
including the terminating null byte, as the size of "hdev->name" is 8
bytes. If an id value which is greater than 9999 is allocated,
then the "snprintf(hdev->name, sizeof(hdev->name), "hci%d", id)"
function call would lead to a truncation of the id value in decimal
notation.

Set an explicit maximum id parameter in the id allocation function call.
The id allocation function defines the maximum allocated id value as the
maximum id parameter value minus one. Therefore, HCI_MAX_ID is defined
as 10000.

Signed-off-by: Itay Iellin <ieitayie@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-15 19:39:17 +02:00
..
bluetooth.h Bluetooth: Increase the subsystem minor version number 2016-09-19 20:19:34 +02:00
hci.h Bluetooth: Add framework for Extended Controller Information 2016-09-19 20:19:34 +02:00
hci_core.h Bluetooth: Fix the creation of hdev->name 2022-05-15 19:39:17 +02:00
hci_mon.h Bluetooth: Add support for sending MGMT commands and events to monitor 2016-09-19 20:19:34 +02:00
hci_sock.h Bluetooth: Add support for controller specific logging 2015-11-19 17:50:28 +01:00
l2cap.h Bluetooth: L2CAP: Fix calling sk_filter on non-socket based channel 2020-10-17 11:02:19 +02:00
mgmt.h Bluetooth: Add support for appearance in scan rsp 2016-09-19 20:19:34 +02:00
rfcomm.h Bluetooth: Remove duplicate constant for RFCOMM PSM 2014-12-20 19:55:04 +02:00
sco.h Bluetooth: Move SCO timeout constants into net/bluetooth/sco.c 2014-07-11 13:58:58 +03:00