android_kernel_google_msm/net/openvswitch
Florian Westphal 812fbfa11d net: make skb_gso_segment error handling more robust
commit 330966e501 upstream.

skb_gso_segment has three possible return values:
1. a pointer to the first segmented skb
2. an errno value (IS_ERR())
3. NULL.  This can happen when GSO is used for header verification.

However, several callers currently test IS_ERR instead of IS_ERR_OR_NULL
and would oops when NULL is returned.

Note that these call sites should never actually see such a NULL return
value; all callers mask out the GSO bits in the feature argument.

However, there have been issues with some protocol handlers erronously not
respecting the specified feature mask in some cases.

It is preferable to get 'have to turn off hw offloading, else slow' reports
rather than 'kernel crashes'.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Ben Hutchings <ben@decadent.org.uk>
[lizf: Backported to 3.4: drop some hunks as there are fewer skb_gso_segment()
 users in 3.4]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-06-19 11:40:33 +08:00
..
actions.c
datapath.c net: make skb_gso_segment error handling more robust 2015-06-19 11:40:33 +08:00
datapath.h
dp_notify.c
flow.c openvswitch: Add length check when retrieving TCP flags. 2012-04-02 14:28:57 -07:00
flow.h
Kconfig
Makefile
vport-internal_dev.c openvswitch: Reset upper layer protocol info on internal devices. 2012-10-02 10:29:50 -07:00
vport-internal_dev.h
vport-netdev.c
vport-netdev.h
vport.c
vport.h