https://github.com/torvalds/linux
Revision 6d715e301e950e3314d590bdbabf0c26e4fed94b authored by Nicolas Schichan on 21 July 2015, 12:14:13 UTC, committed by David S. Miller on 22 July 2015, 05:19:55 UTC
Previously, the JIT would reject negative offsets known during code
generation and mishandle negative offsets provided at runtime.

Fix that by calling bpf_internal_load_pointer_neg_helper()
appropriately in the jit_get_skb_{b,h,w} slow path helpers and by forcing
the execution flow to the slow path helpers when the offset is
negative.

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7aed35c
History
Tip revision: 6d715e301e950e3314d590bdbabf0c26e4fed94b authored by Nicolas Schichan on 21 July 2015, 12:14:13 UTC
ARM: net: handle negative offsets in BPF JIT.
Tip revision: 6d715e3
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.7 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 313.0 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top