diff options
| author | Tushar Dave <[email protected]> | 2018-09-12 20:15:29 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-09-12 21:47:28 +0000 |
| commit | 4c3d795cb012a378855543a775408fba1ccff6f2 (patch) | |
| tree | 05b7ab8eac84d394f4c9688a7e2ced12af525b25 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | bpf/verifier: disallow pointer subtraction (diff) | |
| download | kernel-4c3d795cb012a378855543a775408fba1ccff6f2.tar.gz kernel-4c3d795cb012a378855543a775408fba1ccff6f2.zip | |
bpf: use __GFP_COMP while allocating page
Helper bpg_msg_pull_data() can allocate multiple pages while
linearizing multiple scatterlist elements into one shared page.
However, if the shared page has size > PAGE_SIZE, using
copy_page_to_iter() causes below warning.
e.g.
[ 6367.019832] WARNING: CPU: 2 PID: 7410 at lib/iov_iter.c:825
page_copy_sane.part.8+0x0/0x8
To avoid above warning, use __GFP_COMP while allocating multiple
contiguous pages.
Fixes: 015632bb30da ("bpf: sk_msg program helper bpf_sk_msg_pull_data")
Signed-off-by: Tushar Dave <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
