Linus Lüssing
ba5ea61462
bridge: simplify ip_mc_check_igmp() and ipv6_mc_check_mld() calls
...
This patch refactors ip_mc_check_igmp(), ipv6_mc_check_mld() and
their callers (more precisely, the Linux bridge) to not rely on
the skb_trimmed parameter anymore.
An skb with its tail trimmed to the IP packet length was initially
introduced for the following three reasons:
1) To be able to verify the ICMPv6 checksum.
2) To be able to distinguish the version of an IGMP or MLD query.
They are distinguishable only by their size.
3) To avoid parsing data for an IGMPv3 or MLDv2 report that is
beyond the IP packet but still within the skb.
The first case still uses a cloned and potentially trimmed skb to
verfiy. However, there is no need to propagate it to the caller.
For the second and third case explicit IP packet length checks were
added.
This hopefully makes ip_mc_check_igmp() and ipv6_mc_check_mld() easier
to read and verfiy, as well as easier to use.
Signed-off-by: Linus Lüssing <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2019-01-22 17:18:08 -08:00
..
6lowpan
6lowpan: convert to DEFINE_SHOW_ATTRIBUTE
2018-12-19 00:28:05 +01:00
9p
9p/net: put a lower bound on msize
2018-12-25 17:07:49 +09:00
802
8021q
net: core: dev: Add extack argument to dev_change_flags()
2018-12-06 13:26:07 -08:00
appletalk
atm
ax25
ax25: fix a use-after-free in ax25_fillin_cb()
2018-12-30 14:07:54 -08:00
batman-adv
bridge: simplify ip_mc_check_igmp() and ipv6_mc_check_mld() calls
2019-01-22 17:18:08 -08:00
bluetooth
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2018-12-27 13:53:32 -08:00
bpf
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
2018-12-10 18:00:43 -08:00
bpfilter
net: bpfilter: change section name of bpfilter UMH blob.
2019-01-16 15:46:46 -08:00
bridge
bridge: simplify ip_mc_check_igmp() and ipv6_mc_check_mld() calls
2019-01-22 17:18:08 -08:00
caif
can
can: gw: ensure DLC boundaries after CAN frame modification
2019-01-07 05:17:51 -08:00
ceph
libceph: allow setting abort_on_full for rbd
2019-01-07 22:47:48 +01:00
core
net: introduce a knob to control whether to inherit devconf config
2019-01-22 11:07:21 -08:00
dcb
dccp
mm: convert totalram_pages and totalhigh_pages variables to atomic
2018-12-28 12:11:47 -08:00
decnet
net, decnet: use struct_size() in kzalloc()
2019-01-16 13:22:10 -08:00
dns_resolver
dsa
switchdev: Add extack argument to call_switchdev_notifiers()
2019-01-17 15:18:47 -08:00
ethernet
net: ethernet: provide nvmem_get_mac_address()
2018-12-03 15:40:30 -08:00
hsr
ieee802154
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-12-24 16:19:56 -08:00
ife
ipv4
bridge: simplify ip_mc_check_igmp() and ipv6_mc_check_mld() calls
2019-01-22 17:18:08 -08:00
ipv6
bridge: simplify ip_mc_check_igmp() and ipv6_mc_check_mld() calls
2019-01-22 17:18:08 -08:00
iucv
kcm
key
l2tp
ppp: Move PFC decompression to PPP generic layer
2018-12-20 16:49:30 -08:00
l3mdev
l3mdev: add function to retreive upper master
2018-12-03 14:15:26 -08:00
lapb
llc
mac80211
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2018-12-27 13:53:32 -08:00
mac802154
mpls
net: mpls: netconf: perform strict checks also for doit handlers
2019-01-19 10:09:59 -08:00
ncsi
net/ncsi: Add NCSI Mellanox OEM command
2018-11-27 16:37:20 -08:00
netfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
2019-01-15 13:31:46 -08:00
netlabel
netlink
net: netlink: add helper to retrieve NETLINK_F_STRICT_CHK
2019-01-19 10:09:58 -08:00
netrom
netrom: fix locking in nr_find_socket()
2018-12-30 20:24:16 -08:00
nfc
net: Revert recent Spectre-v1 patches.
2018-12-23 16:01:35 -08:00
nsh
openvswitch
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2019-01-21 14:41:32 -08:00
packet
af_packet: fix raw sockets over 6in4 tunnel
2019-01-17 15:54:45 -08:00
phonet
net: Revert recent Spectre-v1 patches.
2018-12-23 16:01:35 -08:00
psample
qrtr
rds
rds: use DIV_ROUND_UP instead of ceil
2019-01-07 07:22:36 -08:00
rfkill
rfkill: gpio: Remove unused include
2018-12-18 13:13:56 +01:00
rose
rxrpc
Revert "rxrpc: Allow failed client calls to be retried"
2019-01-15 21:33:36 -08:00
sched
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2019-01-21 14:41:32 -08:00
sctp
sctp: allocate sctp_sockaddr_entry with kzalloc
2019-01-16 13:38:06 -08:00
smc
smc: move unhash as early as possible in smc_release()
2019-01-07 14:40:27 -05:00
strparser
sunrpc
SUNRPC: Address Kerberos performance/behavior regression
2019-01-15 15:36:41 -05:00
switchdev
switchdev: Add extack argument to call_switchdev_notifiers()
2019-01-17 15:18:47 -08:00
tipc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2019-01-21 14:41:32 -08:00
tls
net/tls: free ctx in sock destruct
2019-01-22 11:30:54 -08:00
unix
vmw_vsock
Fix ERROR:do not initialise statics to 0 in af_vsock.c
2019-01-15 20:38:29 -08:00
wimax
wireless
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2018-12-27 13:53:32 -08:00
x25
net/x25: handle call collisions
2018-11-29 14:25:36 -08:00
xdp
xsk: export xdp_get_umem_from_qid
2019-01-22 06:57:04 -08:00
xfrm
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-12-20 11:53:36 -08:00
compat.c
Remove 'type' argument from access_ok() function
2019-01-03 18:57:57 -08:00
Kconfig
net: convert bridge_nf to use skb extension infrastructure
2018-12-19 11:21:37 -08:00
Makefile
socket.c
y2038: more syscalls and cleanups
2018-12-28 12:45:04 -08:00
sysctl_net.c