linux-stable/drivers/bluetooth
Kees Cook b62b1406bb Bluetooth: vhci: Avoid needless snprintf() calls
commit 875db86e1e upstream.

Avoid double-copying of string literals. Use a "const char *" for each
string instead of copying from .rodata into stack and then into the skb.
We can go directly from .rodata to the skb.

This also works around a Clang bug (that has since been fixed[1]).

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401250927.1poZERd6-lkp@intel.com/
Fixes: ab4e4380d4 ("Bluetooth: Add vhci devcoredump support")
Link: ea2e66aa8b [1]
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-25 10:47:51 +02:00
..
ath3k.c
bcm203x.c
bfusb.c
bluecard_cs.c
bpa10x.c
bt3c_cs.c
btbcm.c Bluetooth: btbcm: Fix NULL deref in btbcm_get_board_name() 2025-02-08 09:57:22 +01:00
btbcm.h
btintel_pcie.c Bluetooth: btintel_pcie: Add device id of Whale Peak 2025-04-20 10:15:21 +02:00
btintel_pcie.h
btintel.c
btintel.h
btmrvl_debugfs.c
btmrvl_drv.h
btmrvl_main.c
btmrvl_sdio.c
btmrvl_sdio.h
btmtk.c
btmtk.h
btmtksdio.c
btmtkuart.c
btnxpuart.c Bluetooth: btnxpuart: Fix glitches seen in dual A2DP streaming 2025-02-08 09:58:07 +01:00
btqca.c Bluetooth: qca: simplify WCN399x NVM loading 2025-04-20 10:15:22 +02:00
btqca.h
btqcomsmd.c
btrsi.c
btrtl.c Bluetooth: btrtl: Prevent potential NULL dereference 2025-04-25 10:47:41 +02:00
btrtl.h
btsdio.c
btusb.c Bluetooth: btusb: Add 2 HWIDs for MT7922 2025-04-20 10:15:22 +02:00
dtl1_cs.c
h4_recv.h
hci_ag6xx.c
hci_aml.c
hci_ath.c
hci_bcm4377.c
hci_bcm.c
hci_bcsp.c
hci_h4.c
hci_h5.c
hci_intel.c
hci_ldisc.c Bluetooth: hci_uart: Fix another race during initialization 2025-04-20 10:16:02 +02:00
hci_ll.c
hci_mrvl.c
hci_nokia.c
hci_qca.c Bluetooth: hci_qca: use the power sequencer for wcn6750 2025-04-20 10:15:22 +02:00
hci_serdev.c
hci_uart.h Bluetooth: hci_uart: Fix another race during initialization 2025-04-20 10:16:02 +02:00
hci_vhci.c Bluetooth: vhci: Avoid needless snprintf() calls 2025-04-25 10:47:51 +02:00
Kconfig
Makefile
virtio_bt.c