diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2017-08-11 19:31:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-12 00:59:24 +0300 |
commit | 2ed46ce45ec02f6b2188419acdf372a144e06fb5 (patch) | |
tree | e73ac37a02171305e0efbaae972b38ef0a998a22 /net/sunrpc/auth_unix.c | |
parent | e4dde4127396f0c8f1c2e11b3ecc5baf4f8628bf (diff) | |
download | linux-2ed46ce45ec02f6b2188419acdf372a144e06fb5.tar.xz |
bpf: fix two missing target_size settings in bpf_convert_ctx_access
When CONFIG_NET_SCHED or CONFIG_NET_RX_BUSY_POLL is /not/ set and
we try a narrow __sk_buff load of tc_index or napi_id, respectively,
then verifier rightfully complains that it's misconfigured, because
we need to set target_size in each of the two cases. The rewrite
for the ctx access is just a dummy op, but needs to pass, so fix
this up.
Fixes: f96da09473b5 ("bpf: simplify narrower ctx access")
Reported-by: Shubham Bansal <illusionist.neo@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/auth_unix.c')
0 files changed, 0 insertions, 0 deletions