We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f513c36 commit 19b6dbcCopy full SHA for 19b6dbc
tools/testing/selftests/bpf/progs/verifier_spill_fill.c
@@ -1262,4 +1262,21 @@ __naked void stack_noperfmon_reject_invalid_read(void)
1262
" ::: __clobber_all);
1263
}
1264
1265
+SEC("socket")
1266
+__description("stack_noperfmon: narrow spill onto 64-bit scalar spilled slots")
1267
+__success
1268
+__caps_unpriv(CAP_BPF)
1269
+__success_unpriv
1270
+__naked void stack_noperfmon_spill_32bit_onto_64bit_slot(void)
1271
+{
1272
+ asm volatile(" \
1273
+ r0 = 0; \
1274
+ *(u64 *)(r10 - 8) = r0; \
1275
+ *(u32 *)(r10 - 8) = r0; \
1276
+ exit; \
1277
+" :
1278
+ :
1279
+ : __clobber_all);
1280
+}
1281
+
1282
char _license[] SEC("license") = "GPL";
0 commit comments