linux_dsm_epyc7002/drivers
Mahesh Bandewar 92ff426450 ipvlan: add L2 check for packets arriving via virtual devices
Packets that don't have dest mac as the mac of the master device should
not be entertained by the IPvlan rx-handler. This is mostly true as the
packet path mostly takes care of that, except when the master device is
a virtual device. As demonstrated in the following case -

  ip netns add ns1
  ip link add ve1 type veth peer name ve2
  ip link add link ve2 name iv1 type ipvlan mode l2
  ip link set dev iv1 netns ns1
  ip link set ve1 up
  ip link set ve2 up
  ip -n ns1 link set iv1 up
  ip addr add 192.168.10.1/24 dev ve1
  ip -n ns1 addr 192.168.10.2/24 dev iv1
  ping -c2 192.168.10.2
  <Works!>
  ip neigh show dev ve1
  ip neigh show 192.168.10.2 lladdr <random> dev ve1
  ping -c2 192.168.10.2
  <Still works! Wrong!!>

This patch adds that missing check in the IPvlan rx-handler.

Reported-by: Amit Sikka <amit.sikka@ericsson.com>
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-11 11:14:23 -05:00
..
accessibility
acpi ACPI / CPPC: Fix KASAN global out of bounds warning 2017-12-05 23:25:49 +01:00
amba
android
ata
atm
auxdisplay
base Power management fix for v4.15-rc3 2017-12-08 09:58:10 -08:00
bcma
block
bluetooth
bus
cdrom
char
clk
clocksource
connector
cpufreq
cpuidle
crypto
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware efi: Add comment to avoid future expanding of sysfs systab 2017-12-06 19:32:23 +01:00
fmc
fpga
fsi
gpio gpio: pca953x: fix vendor prefix for PCA9654 2017-12-02 22:41:43 +01:00
gpu Merge tag 'drm-misc-fixes-2017-12-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes 2017-12-08 08:17:53 +10:00
hid
hsi
hv Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-12-09 22:09:55 -05:00
hwmon
hwspinlock
hwtracing
i2c
ide
idle
iio iio: health: max30102: Temperature should be in milli Celsius 2017-12-02 11:15:14 +00:00
infiniband Here is the first rc pull request for RDMA. This includes an important core 2017-12-05 10:10:15 -08:00
input
iommu IOMMU fixes for Linux v4.15-rc3 2017-12-06 10:53:02 -08:00
ipack
irqchip
isdn
leds
lightnvm
macintosh
mailbox
mcb
md md/raid1/10: add missed blk plug 2017-12-01 12:19:48 -08:00
media media fixes for v4.15-rc3 2017-12-08 13:18:47 -08:00
memory
memstick
message
mfd
misc Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2017-12-03 10:48:24 -05:00
mmc
mtd
mux
net ipvlan: add L2 check for packets arriving via virtual devices 2017-12-11 11:14:23 -05:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of of: overlay: Make node skipping in init_overlay_changeset() clearer 2017-12-08 09:32:18 -06:00
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 s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
sbus
scsi SCSI fixes on 20171205 2017-12-05 10:31:32 -08:00
sfi
sh
sn
soc
spi
spmi
ssb
staging Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-12-08 13:32:44 -08:00
target
tc
tee
thermal
thunderbolt
tty
uio
usb
uwb
vfio
vhost vhost: fix skb leak in handle_rx() 2017-12-02 21:31:03 -05:00
video
virt
virtio virtio_mmio: add cleanup for virtio_mmio_remove 2017-12-07 18:30:50 +02:00
vlynq
vme
w1
watchdog
xen xen: fixes for 4.15-rc3 2017-12-08 12:53:43 -08:00
zorro
Kconfig
Makefile