ARM: net: bpf: remove is_on_stack() and sstk/dstk
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 11 Jul 2018 09:31:47 +0000 (10:31 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 12 Jul 2018 18:45:22 +0000 (20:45 +0200)
commit47b9c3bf416d80515901469f05aef2870b37c010
treead5221fba5b13271aad9f1e8e1b3cad3f555e7ce
parent1c35ba122d4a4eb32c3f8d63a445c1ebfd66d7bc
ARM: net: bpf: remove is_on_stack() and sstk/dstk

The decision about whether a BPF register is on the stack or in a CPU
register is detected at the top BPF insn processing level, and then
percolated throughout the remainder of the code.  Since we now use
negative register values to represent stacked registers, we can detect
where a BPF register is stored without restoring to carrying this
additional metadata through all code paths.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
arch/arm/net/bpf_jit_32.c