linux-stable/drivers
Leon Romanovsky 309690d99f RDMA/hfi1: Workaround truncation compilation error
[ Upstream commit d4b2d16571 ]

Increase name array to be large enough to overcome the following
compilation error.

drivers/infiniband/hw/hfi1/efivar.c: In function ‘read_hfi1_efi_var’:
drivers/infiniband/hw/hfi1/efivar.c:124:44: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
  124 |         snprintf(name, sizeof(name), "%s-%s", prefix_name, kind);
      |                                            ^
drivers/infiniband/hw/hfi1/efivar.c:124:9: note: ‘snprintf’ output 2 or more bytes (assuming 65) into a destination of size 64
  124 |         snprintf(name, sizeof(name), "%s-%s", prefix_name, kind);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/hfi1/efivar.c:133:52: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
  133 |                 snprintf(name, sizeof(name), "%s-%s", prefix_name, kind);
      |                                                    ^
drivers/infiniband/hw/hfi1/efivar.c:133:17: note: ‘snprintf’ output 2 or more bytes (assuming 65) into a destination of size 64
  133 |                 snprintf(name, sizeof(name), "%s-%s", prefix_name, kind);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:243: drivers/infiniband/hw/hfi1/efivar.o] Error 1

Fixes: c03c08d50b ("IB/hfi1: Check upper-case EFI variables")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/238fa39a8fd60e87a5ad7e1ca6584fcdf32e9519.1698159993.git.leonro@nvidia.com
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 10:27:34 +01:00
..
accessibility
acpi ACPI: sysfs: Fix create_pnp_modalias() and create_of_modalias() 2023-11-20 10:27:33 +01:00
amba amba: bus: fix refcount leak 2023-09-23 10:46:59 +02:00
android binder: fix memory leak in binder_init() 2023-08-30 16:35:13 +02:00
ata ata: ahci: fix enum constants for gcc-13 2023-11-08 11:21:09 +01:00
atm treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
auxdisplay
base driver: platform: Add helper for safer setting of driver_override 2023-11-08 11:21:07 +01:00
bcma
block remove the sx8 block driver 2023-11-08 11:21:09 +01:00
bluetooth Bluetooth: vhci: Fix race when opening vhci device 2023-10-25 11:13:31 +02:00
bus
cdrom
char hwrng: geode - fix accessing registers 2023-11-20 10:27:34 +01:00
clk clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data 2023-11-20 10:27:33 +01:00
clocksource
connector
cpufreq cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit() 2023-09-23 10:46:54 +02:00
cpuidle
crypto crypto: stm32 - fix loop iterating through scatterlist for DMA 2023-09-23 10:47:01 +02:00
dax
dca
devfreq PM / devfreq: Fix leak in devfreq_dev_release() 2023-09-23 10:46:59 +02:00
dio
dma dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe 2023-11-08 11:21:08 +01:00
dma-buf dma-buf/sw_sync: Avoid recursive lock during fence signal 2023-08-30 16:35:16 +02:00
edac
eisa
extcon extcon: Fix kernel doc of property capability fields to avoid warnings 2023-08-11 11:33:39 +02:00
firewire treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
firmware firmware: ti_sci: Mark driver as non removable 2023-11-20 10:27:34 +01:00
fmc
fpga
fsi
gpio gpio: vf610: set value before the direction to avoid a glitch 2023-10-25 11:13:33 +02:00
gpu drm/rockchip: cdn-dp: Fix some error handling paths in cdn_dp_probe() 2023-11-20 10:27:34 +01:00
hid HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event 2023-10-25 11:13:32 +02:00
hsi
hv Drivers: hv: vmbus: Fix vmbus_wait_for_unload() to scan present CPUs 2023-06-28 10:14:19 +02:00
hwmon hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled 2023-08-11 11:33:53 +02:00
hwspinlock
hwtracing coresight-etm4: Fix for() loop drvdata->nr_addr_cmp range bug 2023-04-20 12:02:12 +02:00
i2c i2c: muxes: i2c-demux-pinctrl: Use of_get_i2c_adapter_by_node() 2023-11-08 11:21:06 +01:00
ide treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
idle
iio iio: pressure: ms5611: ms5611_prom_is_valid false negative bug 2023-10-25 11:13:30 +02:00
infiniband RDMA/hfi1: Workaround truncation compilation error 2023-11-20 10:27:34 +01:00
input Input: synaptics-rmi4 - handle reset delay when using SMBus trsnsport 2023-11-08 11:21:08 +01:00
iommu
ipack
irqchip irqchip/stm32-exti: add missing DT IRQ flag translation 2023-11-08 11:21:08 +01:00
isdn
leds
lightnvm
macintosh macintosh: via-pmu-led: requires ATA to be set 2023-05-17 11:11:44 +02:00
mailbox mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0 2023-08-11 11:33:40 +02:00
mcb mcb-lpc: Reallocate memory region to avoid memory overlapping 2023-11-08 11:21:05 +01:00
md md/raid1: fix error: ISO C90 forbids mixed declarations 2023-09-23 10:47:05 +02:00
media media: dvb: symbol fixup for dvb_attach() - again 2023-10-10 21:43:40 +02:00
memory
memstick memstick r592: make memstick_debug_get_tpc_name() static 2023-08-11 11:33:34 +02:00
message scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition 2023-05-30 12:38:35 +01:00
mfd mfd: stmpe: Only disable the regulators if they are enabled 2023-08-11 11:33:40 +02:00
misc misc: pci_endpoint_test: Re-init completion for every test 2023-08-11 11:33:45 +02:00
mmc mmc: core: Capture correct oemid-bits for eMMC cards 2023-10-25 11:13:33 +02:00
mtd ubi: Refuse attaching if mtd's erasesize is 0 2023-10-10 21:43:41 +02:00
mux
net wifi: rtlwifi: fix EDCA limit set by BT coexistence 2023-11-20 10:27:33 +01:00
nfc nfcsim.c: Fix error checking for debugfs_create_dir 2023-06-28 10:14:20 +02:00
ntb ntb: Fix calculation ntb_transport_tx_free_entry() 2023-09-23 10:47:00 +02:00
nubus
nvdimm
nvme nvmet: avoid potential UAF in nvmet_req_complete() 2023-03-22 13:26:14 +01:00
nvmem
of of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name() 2023-09-23 10:46:56 +02:00
oprofile
parisc parisc: iosapic.c: Fix sparse warnings 2023-10-10 21:43:39 +02:00
parport
pci PCI: Prevent xHCI driver from claiming AMD VanGogh USB3 DRD device 2023-11-08 11:21:10 +01:00
pcmcia pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db() 2023-08-30 16:35:11 +02:00
perf
phy phy: st: miphy28lp: use _poll_timeout functions for waits 2023-05-30 12:38:36 +01:00
pinctrl Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()" 2023-10-25 11:13:33 +02:00
platform platform/x86: wmi: Fix probe failure when failing to register WMI devices 2023-11-20 10:27:33 +01:00
pnp
power power: supply: Fix logic checking if system is running from battery 2023-06-21 15:38:57 +02:00
powercap
pps
ps3
ptp
pwm pwm: lpc32xx: Remove handling of PWM channels 2023-09-23 10:47:02 +02:00
rapidio
ras
regulator regulator: Fix error checking for debugfs_create_dir 2023-06-21 15:38:57 +02:00
remoteproc
reset
rpmsg rpmsg: Fix possible refcount leak in rpmsg_register_device_override() 2023-11-08 11:21:08 +01:00
rtc rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff 2023-09-23 10:46:52 +02:00
s390 scsi: zfcp: Fix a double put in zfcp_port_enqueue() 2023-10-10 21:43:40 +02:00
sbus
scsi scsi: mpt3sas: Fix in error path 2023-11-08 11:21:09 +01:00
sfi
sh
sn
soc soc/fsl/qe: fix usb.c build errors 2023-08-11 11:33:37 +02:00
spi spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_probe() 2023-09-23 10:46:54 +02:00
spmi spmi: Add a check for remove callback when removing a SPMI driver 2023-05-17 11:11:44 +02:00
ssb treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
staging staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext() 2023-08-11 11:33:53 +02:00
target scsi: target: core: Fix deadlock due to recursive locking 2023-10-10 21:43:41 +02:00
tc
tee
thermal thermal: core: prevent potential string overflow 2023-11-20 10:27:33 +01:00
thunderbolt thunderbolt: Use const qualifier for ring_interrupt_index 2023-04-05 11:14:16 +02:00
tty tty: 8250: Add support for Intashield IS-100 2023-11-08 11:21:10 +01:00
uio
usb usb: storage: set 1.50 as the lower bcdDevice for older "Super Top" compatibility 2023-11-08 11:21:10 +01:00
uwb
vfio
vhost treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
video fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit() 2023-11-08 11:21:09 +01:00
virt
virtio virtio_balloon: Fix endless deflation and inflation on arm64 2023-11-08 11:21:05 +01:00
vlynq
vme
w1 w1: fix loop in w1_fini() 2023-08-11 11:33:38 +02:00
watchdog watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already running 2023-10-10 21:43:39 +02:00
xen xen/events: replace evtchn_rwlock with RCU 2023-10-10 21:43:42 +02:00
zorro
Kconfig
Makefile