diff options
| author | Jann Horn <[email protected]> | 2017-12-19 04:12:01 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2017-12-21 01:15:41 +0000 |
| commit | 2255f8d520b0a318fc6d387d0940854b2f522a7f (patch) | |
| tree | 117e4805d7777db771898351ebdc71994371d9e3 /lib/timerqueue.c | |
| parent | bpf: fix integer overflows (diff) | |
| download | kernel-2255f8d520b0a318fc6d387d0940854b2f522a7f.tar.gz kernel-2255f8d520b0a318fc6d387d0940854b2f522a7f.zip | |
selftests/bpf: add tests for recent bugfixes
These tests should cover the following cases:
- MOV with both zero-extended and sign-extended immediates
- implicit truncation of register contents via ALU32/MOV32
- implicit 32-bit truncation of ALU32 output
- oversized register source operand for ALU32 shift
- right-shift of a number that could be positive or negative
- map access where adding the operation size to the offset causes signed
32-bit overflow
- direct stack access at a ~4GiB offset
Also remove the F_LOAD_WITH_STRICT_ALIGNMENT flag from a bunch of tests
that should fail independent of what flags userspace passes.
Signed-off-by: Jann Horn <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
