diff options
author | Edward Cree <[email protected]> | 2018-07-09 18:09:54 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-07-09 14:55:53 -0700 |
commit | 8c057efaebb557b60ba514b5e39e8000a1eab0f1 (patch) | |
tree | 9e179eec6b8563653162dc8c5d933b454e21dcfc /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | c47078d6a33fd78d882200cdaacbcfcd63318234 (diff) |
net: core: fix uses-after-free in list processing
In netif_receive_skb_list_internal(), all of skb_defer_rx_timestamp(),
do_xdp_generic() and enqueue_to_backlog() can lead to kfree(skb). Thus,
we cannot wait until after they return to remove the skb from the list;
instead, we remove it first and, in the pass case, add it to a sublist
afterwards.
In the case of enqueue_to_backlog() we have already decided not to pass
when we call the function, so we do not need a sublist.
Fixes: 7da517a3bc52 ("net: core: Another step of skb receive list processing")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Edward Cree <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions