From: David S. Miller Date: Fri, 18 May 2018 03:33:52 +0000 (-0400) Subject: Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf X-Git-Tag: v5.4.17~6023^2~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6caf9fb3bda17df59de4ed6ed4950c43ca1361e3;p=arm%2Flinux.git Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf Daniel Borkmann says: ==================== pull-request: bpf 2018-05-18 The following pull-request contains BPF updates for your *net* tree. The main changes are: 1) Fix two bugs in sockmap, a use after free in sockmap's error path from sock_map_ctx_update_elem() where we mistakenly drop a reference we didn't take prior to that, and in the same function fix a race in bpf_prog_inc_not_zero() where we didn't use the progs from prior READ_ONCE(), from John. 2) Reject program expansions once we figure out that their jump target which crosses patchlet boundaries could otherwise get truncated in insn->off space, from Daniel. 3) Check the return value of fopen() in BPF selftest's test_verifier where we determine whether unpriv BPF is disabled, and iff we do fail there then just assume it is disabled. This fixes a segfault when used with older kernels, from Jesper. ==================== Signed-off-by: David S. Miller --- 6caf9fb3bda17df59de4ed6ed4950c43ca1361e3