Lines Matching refs:dynptr
128 /* Any dynptr initialized within a callback must have bpf_dynptr_put called */
137 /* Can't call bpf_ringbuf_submit/discard_dynptr on a non-initialized dynptr */
150 /* A dynptr can't be used after it has been invalidated */
152 __failure __msg("Expected an initialized dynptr as arg #2")
170 /* Can't call non-dynptr ringbuf APIs on a dynptr ringbuf sample */
185 /* invalid API use. need to use dynptr API to submit/discard */
193 /* Can't add a dynptr to a map */
211 /* Can't add a struct with an embedded dynptr to a map */
341 * This tests the case where the data slice tracks a dynptr (ptr2)
417 /* Can't pass in a dynptr as an arg to a helper function that doesn't take in a
418 * dynptr argument
434 /* A dynptr can't be passed into a helper function at a non-zero offset */
436 __failure __msg("cannot pass in dynptr at an offset=-8")
451 __failure __msg("Expected an initialized dynptr as arg #0")
470 * A bpf_dynptr can't be used as a dynptr if it has been written into at a fixed
474 __failure __msg("cannot overwrite referenced dynptr")
494 * A bpf_dynptr can't be used as a dynptr if it has been written into at a
498 __failure __msg("cannot overwrite referenced dynptr")
526 /* If the dynptr is written into in a callback function, it should
527 * be invalidated as a dynptr
530 __failure __msg("cannot overwrite referenced dynptr")
579 __failure __msg("cannot pass in dynptr at an offset")
636 /* Initializing a dynptr on an offset should fail */
638 __failure __msg("cannot pass in dynptr at an offset=0")
651 /* Can't release a dynptr twice */
676 /* Test that releasing a dynptr twice, where one of the releases happens
709 __failure __msg("cannot overwrite referenced dynptr") __log_level(2)
771 __failure __msg("cannot overwrite referenced dynptr") __log_level(2)
843 __failure __msg("dynptr has to be at a constant offset") __log_level(2)
883 __failure __msg("cannot overwrite referenced dynptr") __log_level(2)
948 /* Test that it is allowed to overwrite unreferenced dynptr. */
965 /* Test that slices are invalidated on reinitializing a dynptr. */
984 /* Invalidation of dynptr slices on destruction of dynptr should not miss
1004 /* Destruction of dynptr should also any slices obtained from it */
1031 * slices of another dynptr after destroying unrelated dynptr
1057 /* Overwriting referenced dynptr should be rejected */
1059 __failure __msg("cannot overwrite referenced dynptr")
1071 /* Reject writes to dynptr slot from bpf_dynptr_read */
1073 __failure __msg("potential write to dynptr at off=-16")
1517 /* Reject writes to dynptr slot for uninit arg */
1519 __failure __msg("potential write to dynptr at off=-16")
1596 /* If the dynptr is written into in a callback function, its data
1645 __failure __msg("Expected an initialized dynptr as arg #0")
1658 __failure __msg("Expected an initialized dynptr as arg #0")
1671 __failure __msg("Expected an initialized dynptr as arg #0")
1684 __failure __msg("Expected an initialized dynptr as arg #0")
1697 __failure __msg("Expected an initialized dynptr as arg #0")
1709 /* Can't overwrite an existing dynptr when cloning */
1711 __failure __msg("cannot overwrite referenced dynptr")
1729 /* Invalidating a dynptr should invalidate its clones */
1731 __failure __msg("Expected an initialized dynptr as arg #2")
1750 /* Invalidating a dynptr should invalidate its parent */
1752 __failure __msg("Expected an initialized dynptr as arg #2")
1771 /* Invalidating a dynptr should invalidate its siblings */
1773 __failure __msg("Expected an initialized dynptr as arg #2")
1795 /* Invalidating a dynptr should invalidate any data slices
1821 /* Invalidating a dynptr should invalidate any data slices
1847 /* Invalidating a dynptr should invalidate any data slices
1973 __noinline long global_call_bpf_dynptr(const struct bpf_dynptr *dynptr)