linux/drivers/bluetooth
Kees Cook 875db86e1e Bluetooth: vhci: Avoid needless snprintf() calls
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>
2025-04-16 16:50:47 -04:00
..
ath3k.c
bcm203x.c
bfusb.c Bluetooth: Fix code style warning 2025-03-25 12:31:27 -04:00
bluecard_cs.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
bpa10x.c
bt3c_cs.c
btbcm.c
btbcm.h
btintel.c Bluetooth: btintel: Add support to configure TX power 2025-03-25 12:51:42 -04:00
btintel.h t blameBluetooth: btintel: Fix leading white space 2025-03-25 12:52:00 -04:00
btintel_pcie.c t blameBluetooth: btintel: Fix leading white space 2025-03-25 12:52:00 -04:00
btintel_pcie.h Bluetooth: btintel_pcie: Add support for device coredump 2025-03-25 12:44:48 -04:00
btmrvl_debugfs.c
btmrvl_drv.h
btmrvl_main.c
btmrvl_sdio.c
btmrvl_sdio.h
btmtk.c Bluetooth: btmtk: Remove the resetting step before downloading the fw 2025-03-25 12:51:10 -04:00
btmtk.h
btmtksdio.c Bluetooth: btmtksdio: Prevent enabling interrupts after IRQ handler removal 2025-03-25 12:51:26 -04:00
btmtkuart.c
btnxpuart.c Bluetooth: btnxpuart: Add an error message if FW dump trigger fails 2025-04-10 13:09:36 -04:00
btqca.c Bluetooth: qca: fix NV variant for one of WCN3950 SoCs 2025-04-10 13:09:20 -04:00
btqca.h Bluetooth: qca: add WCN3950 support 2025-03-25 12:42:35 -04:00
btqcomsmd.c
btrsi.c
btrtl.c Bluetooth: btrtl: Prevent potential NULL dereference 2025-04-10 13:09:16 -04:00
btrtl.h
btsdio.c
btusb.c Bluetooth: btusb: Fix regression in the initialization of fake Bluetooth controllers 2025-03-25 12:44:32 -04:00
dtl1_cs.c
h4_recv.h
hci_ag6xx.c
hci_aml.c
hci_ath.c
hci_bcm.c
hci_bcm4377.c
hci_bcsp.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
hci_h4.c
hci_h5.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
hci_intel.c
hci_ldisc.c Bluetooth: hci_uart: Fix another race during initialization 2025-03-25 12:32:15 -04:00
hci_ll.c
hci_mrvl.c
hci_nokia.c
hci_qca.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
hci_serdev.c
hci_uart.h Bluetooth: hci_uart: Fix another race during initialization 2025-03-25 12:32:15 -04:00
hci_vhci.c Bluetooth: vhci: Avoid needless snprintf() calls 2025-04-16 16:50:47 -04:00
Kconfig Bluetooth: btusb: Configure altsetting for HCI_USER_CHANNEL 2025-03-07 12:43:27 -05:00
Makefile
virtio_bt.c