linux-stable/drivers
Mahesh Bandewar d0a5359e5e macvlan: add cond_resched() during multicast processing
[ Upstream commit ce9a4186f9 ]

The Rx bound multicast packets are deferred to a workqueue and
macvlan can also suffer from the same attack that was discovered
by Syzbot for IPvlan. This solution is not as effective as in
IPvlan. IPvlan defers all (Tx and Rx) multicast packet processing
to a workqueue while macvlan does this way only for the Rx. This
fix should address the Rx codition to certain extent.

Tx is still suseptible. Tx multicast processing happens when
.ndo_start_xmit is called, hence we cannot add cond_resched().
However, it's not that severe since the user which is generating
 / flooding will be affected the most.

Fixes: 412ca1550c ("macvlan: Move broadcasts into a work queue")
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-20 10:54:13 +01:00
..
accessibility
acpi ACPI: watchdog: Fix gas->access_width usage 2020-03-11 18:02:48 +01:00
amba
android binder: Handle start==NULL in binder_update_page_range() 2019-12-17 20:38:57 +01:00
ata ata: ahci: Add shutdown to freeze hardware resources of ahci 2020-02-28 16:36:16 +01:00
atm fore200e: Fix incorrect checks of NULL pointer dereference 2020-02-28 16:36:00 +01:00
auxdisplay
base driver core: platform: fix u32 greater or equal to zero comparison 2020-02-28 16:36:06 +01:00
bcma bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA 2020-01-27 14:46:45 +01:00
block floppy: check FDC index for errors before assigning it 2020-02-28 16:36:10 +01:00
bluetooth Bluetooth: btusb: fix PM leak in error case of setup 2020-01-09 10:17:57 +01:00
bus
cdrom cdrom: respect device capabilities during opening action 2020-01-04 13:59:52 +01:00
char Revert "char/random: silence a lockdep splat with printk()" 2020-03-11 18:02:55 +01:00
clk clk: sunxi-ng: add mux and pll notifiers for A64 CPU clock 2020-02-28 16:36:02 +01:00
clocksource clocksource/drivers/bcm2835_timer: Fix memory leak of timer 2020-02-28 16:35:57 +01:00
connector
cpufreq cpufreq: brcmstb-avs-cpufreq: Fix types for voltage/frequency 2020-01-27 14:46:37 +01:00
cpuidle cpuidle: Do not unset the driver if it is there already 2019-12-17 20:39:33 +01:00
crypto crypto: atmel-sha - fix error handling when setting hmac key 2020-02-14 16:32:23 -05: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: coh901318: Fix a double lock bug in dma_tc_handle() 2020-03-11 18:03:08 +01:00
dma-buf dma-buf: Fix memory leak in sync_file_merge() 2019-12-21 10:47:50 +01:00
edac EDAC/amd64: Set grain per DIMM 2020-03-11 18:02:56 +01:00
eisa
extcon extcon: sm5502: Reset registers during initialization 2019-12-31 12:37:06 +01:00
firewire net: add annotations on hh->hh_len lockless accesses 2020-01-09 10:17:59 +01:00
firmware efi/gop: Fix memory leak in __gop_query32/64() 2020-01-12 12:11:51 +01:00
fmc
fpga
fsi fsi: core: Fix small accesses and unaligned offsets via sysfs 2019-12-31 12:37:35 +01:00
gpio gpio: gpio-grgpio: fix possible sleep-in-atomic-context bugs in grgpio_irq_map/unmap() 2020-02-28 16:35:56 +01:00
gpu drm/msm/dsi: save pll state before dsi host is powered off 2020-03-11 18:02:59 +01:00
hid HID: hiddev: Fix race in in hiddev_disconnect() 2020-03-11 18:02:50 +01:00
hsi
hv hv_balloon: Balloon up according to request page number 2020-02-14 16:32:12 -05:00
hwmon hwmon: (adt7462) Fix an error return in ADT7462_REG_VOLT() 2020-03-11 18:03:08 +01:00
hwspinlock
hwtracing coresight: tmc-etf: Do not call smp_processor_id from preemptible 2020-01-29 15:02:39 +01:00
i2c i2c: jz4780: silence log flood on txabrt 2020-03-11 18:02:51 +01:00
ide ide: serverworks: potential overflow in svwks_set_pio_mode() 2020-02-28 16:36:05 +01:00
idle
iio iio: dac: ad5380: fix incorrect assignment to val 2020-01-27 14:46:45 +01:00
infiniband IB/hfi1, qib: Ensure RCU is locked when accessing list 2020-03-11 18:03:07 +01:00
input Input: edt-ft5x06 - work around first register access error 2020-02-28 16:36:03 +01:00
iommu iommu/arm-smmu-v3: Use WRITE_ONCE() when changing validity of an STE 2020-02-28 16:36:04 +01:00
ipack
irqchip irqchip/gic-v3-its: Reference to its_invall_cmd descriptor when building INVALL 2020-02-28 16:36:08 +01:00
isdn staging: gigaset: add endpoint-type sanity check 2019-12-17 20:39:06 +01:00
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 macintosh/windfarm_smu_sat: Fix debug output 2019-12-01 09:13:39 +01:00
mailbox mailbox: mailbox-test: fix null pointer if no mmio 2019-12-05 15:38:31 +01:00
mcb
md dm integrity: fix a deadlock due to offloading to an incorrect workqueue 2020-03-11 18:03:08 +01:00
media media: sti: bdisp: fix a possible sleep-in-atomic-context bug in bdisp_device_run() 2020-02-28 16:35:56 +01:00
memory
memstick
message scsi: mptfusion: Fix double fetch bug in ioctl 2020-01-23 08:20:31 +01:00
mfd mfd: rn5t618: Mark ADC control register volatile 2020-02-14 16:32:18 -05:00
misc mic: avoid statically declaring a 'struct device'. 2020-01-27 14:46:40 +01:00
mmc mmc: sdhci-of-at91: fix memleak on clk_get failure 2020-02-14 16:32:11 -05:00
mtd ubi: Fix an error pointer dereference in error handling code 2020-02-14 16:32:18 -05:00
mux
net macvlan: add cond_resched() during multicast processing 2020-03-20 10:54:13 +01:00
nfc nfc: pn544: Fix occasional HW initialization failure 2020-03-11 18:02:47 +01:00
ntb NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks 2020-01-27 14:46:05 +01:00
nubus
nvdimm libnvdimm/btt: fix variable 'rc' set but not used 2020-01-04 13:59:46 +01:00
nvme nvme: Fix uninitialized-variable warning 2020-03-11 18:03:01 +01:00
nvmem nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing 2020-01-27 14:46:39 +01:00
of of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc 2020-02-14 16:32:13 -05:00
oprofile
parisc
parport parport: load lowlevel driver if ports not found 2019-12-31 12:37:39 +01:00
pci PCI/IOV: Fix memory leak in pci_iov_add_virtfn() 2020-02-28 16:35:59 +01:00
pcmcia
perf
phy phy: qualcomm: Adjust indentation in read_poll_timeout 2020-02-14 16:32:17 -05:00
pinctrl pinctrl: sh-pfc: sh7269: Fix CAN function GPIOs 2020-02-28 16:36:02 +01:00
platform platform/x86: intel_mid_powerbtn: Take a copy of ddata 2020-02-14 16:32:22 -05:00
pnp
power power: supply: ltc2941-battery-gauge: fix use-after-free 2020-02-14 16:32:12 -05:00
powercap
pps
ps3
ptp ptp: free ptp device pin descriptors properly 2020-01-23 08:20:35 +01:00
pwm pwm: Remove set but not set variable 'pwm' 2020-02-28 16:36:05 +01:00
rapidio drivers/rapidio/rio_cm.c: fix potential oops in riocm_ch_listen() 2020-01-27 14:46:25 +01:00
ras
regulator regulator: rk808: Lower log level on optional GPIOs being not available 2020-02-28 16:35:59 +01:00
remoteproc remoteproc: Initialize rproc_class before use 2020-02-28 16:36:06 +01:00
reset reset: Fix memory leak in reset_control_array_put() 2019-12-05 15:36:49 +01:00
rpmsg rpmsg: glink: Free pending deferred work on remove 2019-12-21 10:47:47 +01:00
rtc rtc: cmos: Stop using shared IRQ 2020-02-14 16:32:22 -05:00
s390 s390/cio: cio_ignore_proc_seq_next should increase position index 2020-03-11 18:03:00 +01:00
sbus
scsi scsi: iscsi: Don't destroy session if there are outstanding connections 2020-02-28 16:36:04 +01:00
sfi
sh
sn
soc soc/tegra: fuse: Correct straps' address for older Tegra124 device trees 2020-02-28 16:36:03 +01:00
spi spi: spi-dw: Add lock protect dw_spi rx/tx to prevent concurrent calls 2020-02-05 14:18:06 +00:00
spmi
ssb
staging staging: greybus: use after free in gb_audio_manager_remove_all() 2020-02-28 16:36:15 +01:00
target scsi: Revert "target: iscsi: Wait for all commands to finish before freeing a session" 2020-02-28 16:36:15 +01:00
tc
tee tee: optee: Fix compilation issue with nommu 2020-02-05 14:18:24 +00:00
thermal thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power 2020-01-27 14:46:34 +01:00
thunderbolt thunderbolt: Prevent crash if non-active NVMem file is read 2020-02-28 16:36:09 +01:00
tty vt: selection, push sel_lock up 2020-03-11 18:03:04 +01:00
uio uio: fix a sleep-in-atomic-context bug in uio_dmem_genirq_irqcontrol() 2020-02-28 16:35:57 +01:00
usb xhci: handle port status events for removed USB3 hcd 2020-03-11 18:03:09 +01:00
uwb
vfio vfio/mdev: Fix aborting mdev child device removal if one fails 2020-01-27 14:46:33 +01:00
vhost vhost: Check docket sk_family instead of call getname 2020-03-11 18:02:56 +01:00
video vgacon: Fix a UAF in vgacon_invert_region 2020-03-11 18:03:02 +01: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: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size). 2019-12-01 09:13:24 +01:00
watchdog watchdog: da9062: do not ping the hw during stop() 2020-03-11 18:03:00 +01:00
xen xen: Enable interrupts when calling _cond_resched() 2020-02-28 16:36:16 +01:00
zorro
Kconfig
Makefile