linux-stable/drivers
Ciara Loftus 6e2af3fbac ixgbe: protect ring accesses with READ- and WRITE_ONCE
[ Upstream commit f140ad9fe2 ]

READ_ONCE should be used when reading rings prior to accessing the
statistics pointer. Introduce this as well as the corresponding WRITE_ONCE
usage when allocating and freeing the rings, to ensure protected access.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-07-22 09:22:16 +02:00
..
accessibility
acpi ACPI: sysfs: Fix pm_profile_attr type 2020-06-30 15:38:07 -04:00
amba
android binder: take read mode of mmap_sem in binder_alloc_free_page() 2020-05-02 17:24:39 +02:00
ata ata/libata: Fix usage of page address by page_address in ata_scsi_mode_select_xlat function 2020-06-30 15:38:06 -04:00
atm fore200e: Fix incorrect checks of NULL pointer dereference 2020-02-28 16:36:00 +01:00
auxdisplay
base drivers: base: Fix NULL pointer exception in __platform_driver_probe() if a driver developer is foolish 2020-06-25 15:41:51 +02:00
bcma bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA 2020-01-27 14:46:45 +01:00
block virtio-blk: free vblk-vqs in error path of virtblk_probe() 2020-07-09 09:36:31 +02:00
bluetooth Bluetooth: btusb: fix PM leak in error case of setup 2020-01-09 10:17:57 +01:00
bus bus: sunxi-rsb: Return correct data when mixing 16-bit and 8-bit reads 2020-04-24 08:00:23 +02:00
cdrom cdrom: respect device capabilities during opening action 2020-01-04 13:59:52 +01:00
char agp/intel: Reinforce the barrier after GTT updates 2020-06-20 10:25:06 +02:00
clk clk: bcm2835: Fix return type of bcm2835_register_gate 2020-06-25 15:41:55 +02:00
clocksource clocksource: dw_apb_timer_of: Fix missing clockevent timers 2020-06-20 10:25:08 +02:00
connector
cpufreq cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once 2020-05-20 08:17:06 +02:00
cpuidle cpuidle: Fix three reference count leaks 2020-06-20 10:25:14 +02:00
crypto crypto: omap-sham - add proper load balancing support for multicore 2020-06-25 15:41:56 +02:00
dax
dca
devfreq Revert "PM / devfreq: Modify the device name as devfreq(X) for sysfs" 2020-03-11 18:02:50 +01:00
dio
dma dmaengine: tegra210-adma: Fix an error handling path in 'tegra_adma_probe()' 2020-05-27 16:43:07 +02:00
dma-buf
edac EDAC/amd64: Read back the scrub rate PCI register on F15h 2020-07-09 09:36:30 +02:00
eisa
extcon extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()' 2020-06-25 15:41:55 +02:00
firewire net: add annotations on hh->hh_len lockless accesses 2020-01-09 10:17:59 +01:00
firmware efi: Make it possible to disable efivar_ssdt entirely 2020-07-09 09:36:33 +02:00
fmc
fpga
fsi fsi: core: Fix small accesses and unaligned offsets via sysfs 2019-12-31 12:37:35 +01:00
gpio gpio: exar: Fix bad handling for ida_simple_get error path 2020-06-03 08:17:59 +02:00
gpu gpu: host1x: Detach driver on unregister 2020-07-22 09:22:15 +02:00
hid HID: i2c-hid: add Schneider SCL142ALM to descriptor override 2020-06-11 09:22:58 +02:00
hsi
hv hv_balloon: Balloon up according to request page number 2020-02-14 16:32:12 -05:00
hwmon hwmon: (acpi_power_meter) Fix potential memory leak in acpi_power_meter_add() 2020-07-09 09:36:31 +02:00
hwspinlock
hwtracing intel_th: pci: Add Elkhart Lake CPU support 2020-04-02 16:34:18 +02:00
i2c i2c: algo-pca: Add 0x78 as SCL stuck low status for PCA9665 2020-07-09 09:36:31 +02:00
ide ide: serverworks: potential overflow in svwks_set_pio_mode() 2020-02-28 16:36:05 +01:00
idle
iio iio: bmp280: fix compensation of humidity 2020-06-25 15:41:48 +02:00
infiniband RDMA/mad: Fix possible memory leak in ib_mad_post_receive_mads() 2020-06-30 15:38:04 -04:00
input Input: synaptics - add a second working PNP_ID for Lenovo T470s 2020-06-20 10:24:59 +02:00
iommu iommu: Fix reference count leak in iommu_group_alloc. 2020-06-03 08:18:03 +02:00
ipack
irqchip irqchip/gic: Atomically update affinity 2020-07-09 09:36:32 +02:00
isdn
leds leds: pca963x: Fix open-drain initialization 2020-02-28 16:35:55 +01:00
lightnvm lightnvm: pblk: fix lock order in pblk_rb_tear_down_check 2020-01-27 14:46:32 +01:00
macintosh drivers/macintosh: Fix memleak in windfarm_pm112 driver 2020-06-20 10:25:19 +02:00
mailbox
mcb
md dm zoned: assign max_io_len correctly 2020-07-09 09:36:33 +02:00
media media: ov5640: fix use of destroyed mutex 2020-06-20 10:25:18 +02:00
memory
memstick
message scsi: mptfusion: Fix double fetch bug in ioctl 2020-01-23 08:20:31 +01:00
mfd mfd: wm8994: Fix driver operation if loaded as modules 2020-06-25 15:41:49 +02:00
misc mei: release me_cl object reference 2020-05-27 16:43:11 +02:00
mmc mmc: sdhci-esdhc-imx: fix the mask for tuning start point 2020-06-20 10:25:14 +02:00
mtd mtd: rawnand: tmio: Fix the probe error path 2020-06-25 15:42:01 +02:00
mux
net ixgbe: protect ring accesses with READ- and WRITE_ONCE 2020-07-22 09:22:16 +02:00
nfc NFC: st21nfca: add missed kfree_skb() in an error path 2020-06-11 09:22:59 +02:00
ntb NTB: Fix the default port and peer numbers for legacy drivers 2020-06-25 15:41:50 +02:00
nubus
nvdimm libnvdimm: Fix endian conversion issues 2020-06-11 09:22:55 +02:00
nvme nvme: refine the Qemu Identify CNS quirk 2020-06-20 10:25:11 +02:00
nvmem nvmem: qfprom: remove incorrect write support 2020-06-11 09:23:01 +02:00
of of: unittest: kmemleak in of_unittest_platform_populate() 2020-04-24 08:01:17 +02:00
oprofile
parisc
parport parport: load lowlevel driver if ports not found 2019-12-31 12:37:39 +01:00
pci PCI/PTM: Inherit Switch Downstream Port PTM settings from Upstream Port 2020-06-25 15:41:54 +02:00
pcmcia
perf drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer 2020-04-02 16:34:14 +02:00
phy phy: qualcomm: Adjust indentation in read_poll_timeout 2020-02-14 16:32:17 -05:00
pinctrl pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()' 2020-06-25 15:41:56 +02:00
platform platform/x86: hp-wmi: Convert simple_strtoul() to kstrtou32() 2020-06-20 10:25:14 +02:00
pnp
power power: supply: smb347-charger: IRQSTAT_D is volatile 2020-06-25 15:41:52 +02:00
powercap
pps
ps3
ptp ptp: free ptp device pin descriptors properly 2020-01-23 08:20:35 +01:00
pwm pwm: bcm2835: Dynamically allocate base 2020-05-02 17:24:15 +02:00
rapidio rapidio: fix an error in get_user_pages_fast() error handling 2020-05-27 16:43:12 +02:00
ras
regulator regulator: rk808: Lower log level on optional GPIOs being not available 2020-02-28 16:35:59 +01:00
remoteproc remoteproc: Fix IDR initialisation in rproc_alloc() 2020-06-25 15:41:47 +02:00
reset
rpmsg rpmsg: glink: smem: Ensure ordering during tx 2020-04-24 08:01:06 +02:00
rtc rtc: 88pm860x: fix possible race condition 2020-04-24 08:01:18 +02:00
s390 s390/qdio: put thinint indicator after early error 2020-06-25 15:41:51 +02:00
sbus
scsi scsi: scsi_devinfo: handle non-terminated strings 2020-06-30 15:37:57 -04:00
sfi
sh
sn
soc soc: imx: gpc: fix power up sequencing 2020-04-24 08:01:18 +02:00
spi spi: spidev: fix a potential use-after-free in spidev_release() 2020-07-22 09:22:16 +02:00
spmi
ssb
staging Staging: rtl8723bs: prevent buffer overflow in update_sta_support_rate() 2020-06-30 15:38:09 -04:00
target scsi: target/iblock: fix WRITE SAME zeroing 2020-05-05 19:15:52 +02:00
tc
tee tee: optee: Fix compilation issue with nommu 2020-02-05 14:18:24 +00:00
thermal thermal/drivers/ti-soc-thermal: Avoid dereferencing ERR_PTR 2020-06-25 15:41:51 +02:00
thunderbolt thunderbolt: Prevent crash if non-active NVMem file is read 2020-02-28 16:36:09 +01:00
tty Revert "tty: hvc: Fix data abort due to race in hvc_open" 2020-06-30 15:38:10 -04:00
uio uio: fix a sleep-in-atomic-context bug in uio_dmem_genirq_irqcontrol() 2020-02-28 16:35:57 +01:00
usb usb: usbtest: fix missing kfree(dev->buf) in usbtest_disconnect 2020-07-09 09:36:30 +02:00
uwb
vfio vfio/mdev: Fix reference count leak in add_mdev_supported_type 2020-06-25 15:41:56 +02:00
vhost vhost/vsock: fix packet delivery order to monitoring devices 2020-05-27 16:42:56 +02:00
video backlight: lp855x: Ensure regulators are disabled on probe failure 2020-06-25 15:41:47 +02:00
virt
virtio virtio_balloon: prevent pfn array overflow 2020-02-28 16:36:09 +01:00
vlynq
vme vme: bridges: reduce stack usage 2020-02-28 16:36:04 +01:00
w1 w1: omap-hdq: cleanup to add missing newline for some dev_dbg 2020-06-20 10:25:20 +02:00
watchdog watchdog: da9062: No need to ping manually before setting timeout 2020-06-25 15:41:54 +02:00
xen xen/pvcalls-back: test for errors when calling backend_connect() 2020-06-20 10:25:06 +02:00
zorro
Kconfig
Makefile