linux-stable/drivers
Arnd Bergmann 02dc68829e net: qed: use correct strncpy() size
commit 11f711081a upstream.

passing the strlen() of the source string as the destination
length is pointless, and gcc-8 now warns about it:

drivers/net/ethernet/qlogic/qed/qed_debug.c: In function 'qed_grc_dump':
include/linux/string.h:253: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]

This changes qed_grc_dump_big_ram() to instead uses the length of
the destination buffer, and use strscpy() to guarantee nul-termination.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-08 13:03:41 +01:00
..
accessibility
acpi ACPI / platform: Add SMB0001 HID to forbidden_id_list 2018-11-27 16:10:51 +01:00
amba
android binder: fix race that allows malicious free of live buffer 2018-12-05 19:41:26 +01:00
ata ata: ftide010: Add a quirk for SQ201 2018-10-03 17:00:59 -07:00
atm
auxdisplay
base driver core: Move device_links_purge() after bus_remove_device() 2018-12-01 09:42:59 +01:00
bcma
block floppy: fix race condition in __floppy_read_block_0() 2018-12-01 09:42:53 +01:00
bluetooth Bluetooth: btbcm: Add entry for BCM4335C0 UART bluetooth 2018-11-13 11:14:54 -08:00
bus bus: arm-cci: remove unnecessary unreachable() 2018-12-01 09:42:49 +01:00
cdrom cdrom: fix improper type cast, which can leat to information leak. 2018-11-21 09:24:04 +01:00
char tpm: Restore functionality to xen vtpm driver. 2018-11-13 11:15:02 -08:00
clk clk: samsung: exynos5250: Add missing clocks for FIMC LITE SYSMMU devices 2018-12-01 09:42:58 +01:00
clocksource clockevents/drivers/i8253: Add support for PIT shutdown quirk 2018-11-21 09:24:11 +01:00
connector
cpufreq cpufreq: imx6q: add return value check for voltage scale 2018-12-01 09:42:53 +01:00
cpuidle
crypto crypto: caam - fix implicit casts in endianness helpers 2018-11-13 11:14:59 -08:00
dax
dca
devfreq
dio
dma dmaengine: at_hdmac: fix module unloading 2018-12-05 19:41:25 +01:00
dma-buf
edac EDAC, skx_edac: Fix logical channel intermediate decoding 2018-11-13 11:15:06 -08:00
eisa
extcon
firewire
firmware efi/arm: Revert deferred unmap of early memmap mapping 2018-12-01 09:42:54 +01:00
fmc
fpga
fsi
gpio gpio: don't free unallocated ida on gpiochip_add_data_with_key() error path 2018-12-01 09:42:50 +01:00
gpu drm/msm: fix OF child-node lookup 2018-12-08 13:03:38 +01:00
hid HID: uhid: forbid UHID_CREATE under KERNEL_DS or elevated privileges 2018-11-27 16:10:51 +01:00
hsi
hv Drivers: hv: vmbus: check the creation_status in vmbus_establish_gpadl() 2018-12-05 19:41:26 +01:00
hwmon hwmon: (ibmpowernv) Remove bogus __init annotations 2018-11-27 16:10:48 +01:00
hwspinlock
hwtracing coresight: etb10: Fix handling of perf mode 2018-11-13 11:14:59 -08:00
i2c i2c: rcar: cleanup DMA for all kinds of failure 2018-11-13 11:14:51 -08:00
ide
idle
iio iio:st_magn: Fix enable device after trigger 2018-12-05 19:41:26 +01:00
infiniband IB/mlx5: Avoid load failure due to unknown link width 2018-12-08 13:03:37 +01:00
input Input: elan_i2c - add support for ELAN0621 touchpad 2018-12-08 13:03:39 +01:00
iommu iommu/arm-smmu: Ensure that page-table updates are visible before TLBI 2018-11-13 11:15:10 -08:00
ipack
irqchip irqchip/bcm7038-l1: Hide cpu offline callback when building for !SMP 2018-09-15 09:45:29 +02:00
isdn
leds
lightnvm lightnvm: pblk: fix two sleep-in-atomic-context bugs 2018-11-13 11:14:52 -08:00
macintosh macintosh/via-pmu: Add missing mmio accessors 2018-09-19 22:43:41 +02:00
mailbox
mcb
md MD: fix invalid stored role for a disk - try2 2018-11-13 11:15:18 -08:00
media media: em28xx: Fix use-after-free when disconnecting 2018-12-05 19:41:09 +01:00
memory
memstick
message
mfd mfd: menelaus: Fix possible race condition and leak 2018-11-13 11:15:00 -08:00
misc misc: mic/scif: fix copy-paste error in scif_create_remote_lookup 2018-12-05 19:41:26 +01:00
mmc mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL 2018-12-01 09:42:50 +01:00
mtd ubi: Initialize Fastmap checkmapping correctly 2018-12-05 19:41:09 +01:00
mux
net net: qed: use correct strncpy() size 2018-12-08 13:03:41 +01:00
nfc NFC: nfcmrvl_uart: fix OF child-node lookup 2018-12-01 09:42:54 +01:00
ntb
nubus
nvdimm libnvdimm, region: Fail badblocks listing for inactive regions 2018-11-13 11:15:05 -08:00
nvme nvme-loop: fix kernel oops in case of unhandled command 2018-11-21 09:24:17 +01:00
nvmem
of of: add helper to lookup compatible child node 2018-12-01 09:42:54 +01:00
oprofile
parisc
parport parport: sunbpp: fix error return code 2018-09-26 08:38:12 +02:00
pci PCI: layerscape: Fix wrong invocation of outbound window disable accessor 2018-12-05 19:41:23 +01:00
pcmcia pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges 2018-11-13 11:14:46 -08:00
perf arm64: perf: Reject stand-alone CHAIN events for PMUv3 2018-10-18 09:16:24 +02:00
phy
pinctrl pinctrl: meson: fix pinconf bias disable 2018-12-01 09:42:53 +01:00
platform platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307 2018-11-27 16:10:47 +01:00
pnp
power power: supply: twl4030-charger: fix OF sibling-node lookup 2018-12-01 09:42:55 +01:00
powercap
pps
ps3
ptp ptp: fix Spectre v1 vulnerability 2018-11-10 07:48:34 -08:00
pwm pwm: meson: Fix mux clock names 2018-09-15 09:45:27 +02:00
rapidio
ras
regulator regulator: fix crash caused by null driver data 2018-10-03 17:00:55 -07:00
remoteproc
reset reset: make device_reset_optional() really optional 2018-12-08 13:03:40 +01:00
rpmsg rpmsg: smd: fix memory leak on channel create 2018-11-13 11:15:12 -08:00
rtc rtc: omap: fix error path when pinctrl_register fails 2018-12-01 09:42:58 +01:00
s390 s390/qeth: fix length check in SNMP processing 2018-12-05 19:41:17 +01:00
sbus
scsi scsi: scsi_devinfo: cleanly zero-pad devinfo strings 2018-12-08 13:03:38 +01:00
sfi
sh
sn
soc soc: ti: QMSS: Fix usage of irq_set_affinity_hint 2018-11-21 09:24:09 +01:00
spi spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare} 2018-11-13 11:14:52 -08:00
spmi
ssb
staging staging: rts5208: fix gcc-8 logic error warning 2018-12-08 13:03:35 +01:00
target scsi: iscsi: target: Don't use stack buffer for scatterlist 2018-10-18 09:16:21 +02:00
tc TC: Set DMA masks for devices 2018-11-13 11:15:11 -08:00
tee
thermal thermal/drivers/hisi: Remove costly sensor inspection 2018-12-08 13:03:40 +01:00
thunderbolt
tty kgdboc: Fix warning with module build 2018-12-08 13:03:38 +01:00
uio uio: Fix an Oops on load 2018-11-27 16:10:51 +01:00
usb Revert "usb: dwc3: gadget: skip Set/Clear Halt when invalid" 2018-12-05 19:41:26 +01:00
uwb uwb: hwa-rc: fix memory leak at probe 2018-10-03 17:00:46 -07:00
vfio
vhost vhost/scsi: truncate T10 PI iov_iter to prot_bytes 2018-11-21 09:24:08 +01:00
video mach64: fix image corruption due to reading accelerator registers 2018-11-21 09:24:08 +01:00
virt
virtio virtio_balloon: fix increment of vb->num_pfns in fill_balloon() 2018-10-13 09:27:30 +02:00
vlynq
vme
w1 w1: omap-hdq: fix missing bus unregister at removal 2018-11-13 11:15:09 -08:00
watchdog
xen xen/balloon: Support xend-based toolstack 2018-11-13 11:15:02 -08:00
zorro
Kconfig
Makefile