aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorStefano Brivio <[email protected]>2018-07-13 13:21:07 +0200
committerDavid S. Miller <[email protected]>2018-07-13 14:27:39 -0700
commite78bfb0751d4e312699106ba7efbed2bab1a53ca (patch)
tree34c8a46c15226408d5d7c2a8023f0d5bdfc0ca3d /tools/perf/scripts/python/call-graph-from-sql.py
parent8f19f12bdcc612bf39d0dbae6d0509a4939aaac3 (diff)
skbuff: Unconditionally copy pfmemalloc in __skb_clone()
Commit 8b7008620b84 ("net: Don't copy pfmemalloc flag in __copy_skb_header()") introduced a different handling for the pfmemalloc flag in copy and clone paths. In __skb_clone(), now, the flag is set only if it was set in the original skb, but not cleared if it wasn't. This is wrong and might lead to socket buffers being flagged with pfmemalloc even if the skb data wasn't allocated from pfmemalloc reserves. Copy the flag instead of ORing it. Reported-by: Sabrina Dubroca <[email protected]> Fixes: 8b7008620b84 ("net: Don't copy pfmemalloc flag in __copy_skb_header()") Signed-off-by: Stefano Brivio <[email protected]> Tested-by: Sabrina Dubroca <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions