kernel-fxtec-pro1x/drivers
Maxim Mikityanskiy 041b3224e8 net/mlx5e: Fix use-after-free after xdp_return_frame
[ Upstream commit 12fc512f5741443a03adde2ead20724da8ad550a ]

xdp_return_frame releases the frame. It leads to releasing the page, so
it's not allowed to access xdpi.xdpf->len after that, because xdpi.xdpf
is at xdp->data_hard_start after convert_to_xdp_frame. This patch moves
the memory access to precede the return of the frame.

Fixes: 58b99ee3e3 ("net/mlx5e: Add support for XDP_REDIRECT in device-out side")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-02 09:59:01 +02:00
..
accessibility
acpi
amba
android binder: fix handling of misaligned binder object 2019-05-02 09:58:56 +02:00
ata
atm
auxdisplay
base
bcma
block zram: pass down the bvec we need to read into in the work struct 2019-05-02 09:58:53 +02:00
bluetooth
bus
cdrom
char
clk
clocksource
connector
cpufreq
cpuidle
crypto
dax
dca
devfreq
dio
dma dmaengine: sh: rcar-dmac: Fix glitch in dmaengine_tx_status 2019-05-02 09:58:55 +02:00
dma-buf
edac
eisa
extcon
firewire
firmware
fmc
fpga
fsi
gnss
gpio gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC 2019-05-02 09:58:53 +02:00
gpu drm/vc4: Fix compilation error reported by kbuild test bot 2019-05-02 09:58:56 +02:00
hid
hsi
hv
hwmon
hwspinlock
hwtracing intel_th: gth: Fix an off-by-one in output unassigning 2019-05-02 09:58:56 +02:00
i2c
ide
idle
iio
infiniband RDMA/mlx5: Do not allow the user to write to the clock page 2019-05-02 09:58:54 +02:00
input Input: synaptics-rmi4 - write config register values to the right offset 2019-05-02 09:58:55 +02:00
iommu
ipack
irqchip
isdn
leds
lightnvm
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc
mtd
mux
net net/mlx5e: Fix use-after-free after xdp_return_frame 2019-05-02 09:59:01 +02:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
oprofile
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi
sfi
sh
siox
slimbus
sn
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
uio
usb USB: Consolidate LPM checks to avoid enabling LPM twice 2019-05-02 09:58:56 +02:00
uwb
vfio vfio/type1: Limit DMA mappings per container 2019-05-02 09:58:55 +02:00
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile