|
@@ -115,11 +115,11 @@ fn test_verifier_err_no_exit_backward_jump() {
|
|
|
}
|
|
|
|
|
|
#[test]
|
|
|
-#[should_panic(expected = "[Verifier] Error: eBPF program length limited to 4096, here 4097")]
|
|
|
+#[should_panic(expected = "[Verifier] Error: eBPF program length limited to 1000000, here 1000001")]
|
|
|
fn test_verifier_err_too_many_instructions() {
|
|
|
// uBPF uses 65637 instructions, because it sets its limit at 65636.
|
|
|
// We use the classic 4096 limit from kernel, so no need to produce as many instructions.
|
|
|
- let mut prog = (0..(4096 * ebpf::INSN_SIZE)).map( |x| match x % 8 {
|
|
|
+ let mut prog = (0..(1_000_000 * ebpf::INSN_SIZE)).map( |x| match x % 8 {
|
|
|
0 => 0xb7,
|
|
|
1 => 0x01,
|
|
|
_ => 0
|