linux/arch
Daniel Borkmann 9d876e79df bpf: fix unlocking of jited image when module ronx not set
Eric and Willem reported that they recently saw random crashes when
JIT was in use and bisected this to 74451e66d5 ("bpf: make jited
programs visible in traces"). Issue was that the consolidation part
added bpf_jit_binary_unlock_ro() that would unlock previously made
read-only memory back to read-write. However, DEBUG_SET_MODULE_RONX
cannot be used for this to test for presence of set_memory_*()
functions. We need to use ARCH_HAS_SET_MEMORY instead to fix this;
also add the corresponding bpf_jit_binary_lock_ro() to filter.h.

Fixes: 74451e66d5 ("bpf: make jited programs visible in traces")
Reported-by: Eric Dumazet <edumazet@google.com>
Reported-by: Willem de Bruijn <willemb@google.com>
Bisected-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-21 13:30:14 -05:00
..
alpha
arc ARC: [arcompact] brown paper bag bug in unaligned access delay slot fixup 2017-02-07 10:02:01 -08:00
arm arch: add ARCH_HAS_SET_MEMORY config 2017-02-21 13:30:13 -05:00
arm64 bpf: fix unlocking of jited image when module ronx not set 2017-02-21 13:30:14 -05:00
avr32
blackfin
c6x
cris
frv frv: add missing atomic64 operations 2017-01-24 16:26:14 -08:00
h8300
hexagon
ia64
m32r
m68k
metag
microblaze
mips MIPS: Octeon: Remove unnecessary MODULE_*() 2017-02-10 13:51:03 -05:00
mn10300 mn10300: fix build error of missing fpu_save() 2017-01-24 16:26:14 -08:00
nios2
openrisc
parisc parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header 2017-01-28 21:54:23 +01:00
powerpc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-19 11:18:46 -05:00
s390 bpf: fix unlocking of jited image when module ronx not set 2017-02-21 13:30:14 -05:00
score
sh
sparc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-02 16:54:00 -05:00
tile
um
unicore32
x86 bpf: fix unlocking of jited image when module ronx not set 2017-02-21 13:30:14 -05:00
xtensa Xtensa fix for v4.10-rc7: 2017-02-02 12:39:10 -08:00
.gitignore
Kconfig arch: add ARCH_HAS_SET_MEMORY config 2017-02-21 13:30:13 -05:00