]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: reference may_access_skb() from __bpf_prog_run()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 11 Apr 2017 10:10:58 +0000 (12:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Apr 2017 14:54:27 +0000 (10:54 -0400)
commitf78e53d412390e37ee67d36144807f2b7352a604
treef0c49877450c2ac6c37b91ab930916a5c65752d0
parent95dae7aed0549a92fa62bd014196188a4b4e09e6
bpf: reference may_access_skb() from __bpf_prog_run()

It took me quite some time to figure out how this was linked,
so in order to save the next person the effort of finding it
add a comment in __bpf_prog_run() that indicates what exactly
determines that a program can access the ctx == skb.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/core.c