Daniel Borkmann
82bbe13331
selftests/bpf: Add test for passing in uninit mtu_len
Add a small test to pass an uninitialized mtu_len to the bpf_check_mtu()
helper to probe whether the verifier rejects it under !CAP_PERFMON.
# ./vmtest.sh -- ./test_progs -t verifier_mtu
[...]
./test_progs -t verifier_mtu
[ 1.414712] tsc: Refined TSC clocksource calibration: 3407.993 MHz
[ 1.415327] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x311fcd52370, max_idle_ns: 440795242006 ns
[ 1.416463] clocksource: Switched to clocksource tsc
[ 1.429842] bpf_testmod: loading out-of-tree module taints kernel.
[ 1.430283] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
#510/1 verifier_mtu/uninit/mtu: write rejected:OK
#510 verifier_mtu:OK
Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241021152809.33343-5-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2024-10-22 15:42:56 -07:00
..
2024-10-11 16:12:45 -07:00
2024-09-10 11:40:55 -07:00
2024-10-02 18:21:49 -03:00
2024-08-30 18:22:30 +08:00
2024-09-02 12:27:35 +02:00
2024-09-19 08:15:30 +02:00
2024-09-05 19:27:13 +01:00
2024-10-18 16:27:14 -07:00
2024-09-25 11:35:19 -07:00
2024-09-13 23:56:44 -07:00
2024-09-21 08:20:50 -07:00
2024-09-23 12:01:45 -07:00
2024-09-27 10:14:35 -07:00
2024-09-13 22:37:06 +00:00
2024-10-08 10:43:22 -07:00
2024-09-24 12:57:46 -07:00
2024-07-29 07:39:32 +05:30
2024-10-07 10:16:18 -10:00
2024-08-23 11:03:00 +01:00
2024-09-04 16:50:33 +01:00
2024-10-22 15:42:56 -07:00
2024-10-03 16:43:22 -04:00
2024-09-03 09:57:08 +02:00
2024-09-10 02:51:48 -04:00