Skip to content

Commit

Permalink
ARM: net: bpf: remove is_on_stack() and sstk/dstk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Daniel Borkmann committed Jul 12, 2018
1 parent 1c35ba1 commit 47b9c3b
Showing 1 changed file with 160 additions and 176 deletions.
Loading

0 comments on commit 47b9c3b

Please sign in to comment.