We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 884c3a1 commit 973cb13Copy full SHA for 973cb13
tools/testing/selftests/bpf/progs/verifier_array_access.c
@@ -713,4 +713,19 @@ unsigned int non_stack_key_lookup(void)
713
return val->index;
714
}
715
716
+SEC("socket")
717
+__description("doesn't reject UINT64_MAX as s64 for irrelevant maps")
718
+__success __retval(42)
719
+unsigned int doesnt_reject_irrelevant_maps(void)
720
+{
721
+ __u64 key = 0xFFFFFFFFFFFFFFFF;
722
+ struct test_val *val;
723
+
724
+ val = bpf_map_lookup_elem(&map_hash_48b, &key);
725
+ if (val)
726
+ return val->index;
727
728
+ return 42;
729
+}
730
731
char _license[] SEC("license") = "GPL";
0 commit comments