diff options
| author | Willem de Bruijn <[email protected]> | 2017-08-09 19:09:43 -0400 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-09 16:49:17 -0700 |
| commit | ccaffff182027078e9443d912b5af461850965f4 (patch) | |
| tree | 57ab395865cde825c912a20d91cb021beefca6b5 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | d5e7f827a6a20ca0c3545591dae7d24b2ccf1e70 (diff) | |
sock: fix zerocopy panic in mem accounting
Only call mm_unaccount_pinned_pages when releasing a struct ubuf_info
that has initialized its field uarg->mmp.
Before this patch, a vhost-net with experimental_zcopytx can crash in
mm_unaccount_pinned_pages
sock_zerocopy_put
skb_zcopy_clear
skb_release_data
Only sock_zerocopy_alloc initializes this field. Move the unaccount
call from generic sock_zerocopy_put to its specific callback
sock_zerocopy_callback.
Fixes: a91dbff551a6 ("sock: ulimit on MSG_ZEROCOPY pages")
Reported-by: David Ahern <[email protected]>
Signed-off-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions