summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorAndrey Ignatov <rdna@fb.com>2019-04-03 23:22:40 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-04-05 16:50:08 +0200
commit2c6927dbdc3fbd41207e671212f53a98bbebf6ba (patch)
treefead722fca639d9f3aef274e4a207acf3e6faf82 /certs
parent088ec26d9c2da9d879ab73e3f4117f9df6c566ee (diff)
selftests/bpf: Test indirect var_off stack access in unpriv mode
Test that verifier rejects indirect stack access with variable offset in unprivileged mode and accepts same code in privileged mode. Since pointer arithmetics is prohibited in unprivileged mode verifier should reject the program even before it gets to helper call that uses variable offset, at the time when that variable offset is trying to be constructed. Example of output: # ./test_verifier ... #859/u indirect variable-offset stack access, priv vs unpriv OK #859/p indirect variable-offset stack access, priv vs unpriv OK Signed-off-by: Andrey Ignatov <rdna@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions