linux-stable/net/core
Miaohe Lin c823c7f330 net: handle the return value of pskb_carve_frag_list() correctly
commit eabe861881 upstream.

pskb_carve_frag_list() may return -ENOMEM in pskb_carve_inside_nonlinear().
we should handle this correctly or we would get wrong sk_buff.

Fixes: 6fa01ccd88 ("skbuff: Add pskb_extract() helper function")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-09-23 10:46:33 +02:00
..
datagram.c net: use skb_queue_empty_lockless() in busy poll contexts 2019-11-10 11:25:35 +01:00
dev.c net: disable netpoll on fresh napis 2020-09-12 13:39:12 +02:00
dev_addr_lists.c
dev_ioctl.c
devlink.c
drop_monitor.c drop_monitor: work around gcc-10 stringop-overflow warning 2020-05-20 08:17:05 +02:00
dst.c
dst_cache.c
ethtool.c ethtool: reduce stack usage with clang 2020-01-17 19:45:40 +01:00
fib_notifier.c
fib_rules.c net: fib_rules: Correctly set table field when table number exceeds 8 bits 2020-03-11 18:02:46 +01:00
filter.c tcp: fix tcp_set_congestion_control() use from bpf hook 2019-07-31 07:28:46 +02:00
flow_dissector.c net: dsa: fix flow dissection on Tx path 2019-12-21 10:47:31 +01:00
gen_estimator.c
gen_stats.c
gro_cells.c gro_cells: make sure device is up in gro_cells_receive() 2019-03-19 13:13:21 +01:00
hwbm.c
link_watch.c
lwt_bpf.c bpf: in __bpf_redirect_no_mac pull mac only if present 2019-01-23 08:09:50 +01:00
lwtunnel.c
Makefile
neighbour.c net: neigh: use long type to store jiffies delta 2020-01-27 14:46:51 +01:00
net-procfs.c
net-sysfs.c net-sysfs: add a newline when printing 'tx_timeout' by sysfs 2020-07-31 16:44:44 +02:00
net-sysfs.h
net-traces.c
net_namespace.c net/net_namespace: Check the return value of register_pernet_subsys() 2019-12-05 15:37:48 +01:00
netclassid_cgroup.c cgroup, netclassid: remove double cond_resched 2020-05-10 10:29:03 +02:00
netevent.c
netpoll.c net: disable netpoll on fresh napis 2020-09-12 13:39:12 +02:00
netprio_cgroup.c netprio_cgroup: Fix unlimited memory leak of v2 cgroups 2020-05-20 08:17:13 +02:00
pktgen.c pktgen: do not sleep with the thread lock held. 2019-06-11 12:21:45 +02:00
ptp_classifier.c
request_sock.c
rtnetlink.c rtnetlink: Fix memory(net_device) leak when ->newlink fails 2020-07-31 16:44:45 +02:00
scm.c
secure_seq.c
skbuff.c net: handle the return value of pskb_carve_frag_list() correctly 2020-09-23 10:46:33 +02:00
sock.c net/compat: Add missing sock updates for SCM_RIGHTS 2020-08-21 09:48:18 +02:00
sock_diag.c
sock_reuseport.c
stream.c tcp: make sure EPOLLOUT wont be missed 2019-09-06 10:20:50 +02:00
sysctl_net_core.c net, sysctl: Fix compiler warning when only cBPF is present 2020-01-04 13:59:59 +01:00
timestamping.c
tso.c
utils.c net: Fix skb->csum update in inet_proto_csum_replace16(). 2020-02-05 14:18:28 +00:00