summaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorDavid S. Miller2017-10-10 21:30:17 +0200
committerDavid S. Miller2017-10-10 21:30:17 +0200
commit67174bb2336061d373bc83ea1c56a4337a40e20f (patch)
treef879063be29de0e6d7435759db62f0157c7773ff /net/core/skbuff.c
parentipv6: fix incorrect bitwise operator used on rt6i_flags (diff)
parentbpf: write back the verifier log buffer as it gets filled (diff)
downloadkernel-qcow2-linux-67174bb2336061d373bc83ea1c56a4337a40e20f.tar.gz
kernel-qcow2-linux-67174bb2336061d373bc83ea1c56a4337a40e20f.tar.xz
kernel-qcow2-linux-67174bb2336061d373bc83ea1c56a4337a40e20f.zip
Merge branch 'bpf-get-rid-of-global-verifier-state-and-reuse-instruction-printer'
Jakub Kicinski says: ==================== bpf: get rid of global verifier state and reuse instruction printer This set started off as simple extraction of eBPF verifier's instruction printer into a separate file but evolved into removal of global state. The purpose of moving instruction printing code is to be able to reuse it from the bpftool. As far as the global verifier lock goes, this set removes the global variables relating to the log buffer, makes the one-time init done by bpf_get_skb_set_tunnel_proto() not depend on any external locking, and performs verifier log writeback as data is produced removing the need for allocating a potentially large temporary buffer. The final step of actually removing the verifier lock is left to someone more competent and self-confident :) Note that struct bpf_verifier_env is just 40B under two pages now, we should probably switch to vzalloc() when it's expanded again... v2: - add a selftest; - use env buffer and flush on every print (Alexei); - handle kernel log allocation failures (Daniel); - put the env log members into a struct (Daniel). ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
0 files changed, 0 insertions, 0 deletions