android_kernel_sony_sdm845/drivers/net/bonding
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Cong Wang 227f0246c7 bonding: validate ip header before check IPPROTO_IGMP
[ Upstream commit 9d1bc24b52fb8c5d859f9a47084bf1179470e04c ]

bond_xmit_roundrobin() checks for IGMP packets but it parses
the IP header even before checking skb->protocol.

We should validate the IP header with pskb_may_pull() before
using iph->protocol.

Reported-and-tested-by: syzbot+e5be16aa39ad6e755391@syzkaller.appspotmail.com
Fixes: a2fd940f4c ("bonding: fix broken multicast with round-robin mode")
Cc: Jay Vosburgh <j.vosburgh@gmail.com>
Cc: Veaceslav Falico <vfalico@gmail.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-04 09:33:35 +02:00
..
bond_3ad.c bonding: fix 802.3ad state sent to partner when unbinding slave 2018-12-21 14:11:36 +01:00
bond_alb.c bonding: send learning packets for vlans on slave 2018-05-19 10:26:59 +02:00
bond_debugfs.c net: Move bonding headers under include/net 2014-11-10 13:27:49 -05:00
bond_main.c bonding: validate ip header before check IPPROTO_IGMP 2019-08-04 09:33:35 +02:00
bond_netlink.c bonding: fix length of actor system 2018-11-10 07:42:59 -08:00
bond_options.c bonding: fix arp_validate toggling in active-backup mode 2019-05-16 19:43:46 +02:00
bond_procfs.c bonding: Display LACP info only to CAP_NET_ADMIN capable user 2015-06-23 03:11:52 -07:00
bond_sysfs.c bonding: make mii_status sysfs node consistent 2016-01-11 17:14:42 -05:00
bond_sysfs_slave.c bonding: show full hw address in sysfs for slave entries 2019-05-08 07:19:09 +02:00
bonding_priv.h net/bonding: Make DRV macros private 2015-04-26 22:59:53 -04:00
Makefile