linux-stable/include
Soenke Huster aa1ca580e3 Bluetooth: hci_event: Ignore multiple conn complete events
[ Upstream commit d5ebaa7c5f ]

When one of the three connection complete events is received multiple
times for the same handle, the device is registered multiple times which
leads to memory corruptions. Therefore, consequent events for a single
connection are ignored.

The conn->state can hold different values, therefore HCI_CONN_HANDLE_UNSET
is introduced to identify new connections. To make sure the events do not
contain this or another invalid handle HCI_CONN_HANDLE_MAX and checks
are introduced.

Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=215497
Signed-off-by: Soenke Huster <soenke.huster@eknoes.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 19:27:08 +02:00
..
acpi
asm-generic
clocksource
crypto lib/crypto: blake2s: avoid indirect calls to compression function for Clang CFI 2022-02-04 19:22:32 +01:00
drm drm/connector: Fix typo in documentation 2022-04-08 13:58:58 +02:00
dt-bindings Fixes for omaps 2022-02-07 17:42:44 +01:00
keys
kunit
kvm
linux coredump: Use the vma snapshot in fill_files_note 2022-04-08 13:59:04 +02:00
math-emu
media
memory
misc
net Bluetooth: hci_event: Ignore multiple conn complete events 2022-04-13 19:27:08 +02:00
pcmcia
ras
rdma
scsi scsi: core: sd: Add silence_suspend flag to suppress some PM messages 2022-04-08 13:57:20 +02:00
soc soc: fsl: Replace kernel.h with the necessary inclusions 2022-02-18 17:11:17 -06:00
sound ALSA: intel-nhlt: add helper to detect SSP link mask 2022-04-08 13:58:46 +02:00
target
trace rxrpc: Fix call timer start racing with call destruction 2022-04-08 13:58:55 +02:00
uapi bpf: Fix comment for helper bpf_current_task_under_cgroup() 2022-04-08 13:59:00 +02:00
vdso
video
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-07 09:48:55 +01:00