Searched refs:dynptr (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | user_ringbuf_fail.c | 22 bad_access1(struct bpf_dynptr *dynptr, void *context) in bad_access1() argument 26 sample = bpf_dynptr_data(dynptr - 1, 0, sizeof(*sample)); in bad_access1() 27 bpf_printk("Was able to pass bad pointer %lx\n", (__u64)dynptr - 1); in bad_access1() 44 bad_access2(struct bpf_dynptr *dynptr, void *context) in bad_access2() argument 48 sample = bpf_dynptr_data(dynptr + 1, 0, sizeof(*sample)); in bad_access2() 49 bpf_printk("Was able to pass bad pointer %lx\n", (__u64)dynptr + 1); in bad_access2() 66 write_forbidden(struct bpf_dynptr *dynptr, void *context) in write_forbidden() argument 68 *((long *)dynptr) = 0; in write_forbidden() 85 null_context_write(struct bpf_dynptr *dynptr, void *context) in null_context_write() argument 104 null_context_read(struct bpf_dynptr *dynptr, void *context) in null_context_read() argument [all …]
|
D | user_ringbuf_success.c | 38 record_sample(struct bpf_dynptr *dynptr, void *context) in record_sample() argument 46 status = bpf_dynptr_read(&stack_sample, sizeof(stack_sample), dynptr, 0, 0); in record_sample() 53 sample = bpf_dynptr_data(dynptr, 0, sizeof(*sample)); in record_sample() 89 read_protocol_msg(struct bpf_dynptr *dynptr, void *context) in read_protocol_msg() argument 93 msg = bpf_dynptr_data(dynptr, 0, sizeof(*msg)); in read_protocol_msg() 199 do_nothing_cb(struct bpf_dynptr *dynptr, void *context) in do_nothing_cb() argument
|
/linux-6.1.9/kernel/bpf/ |
D | ringbuf.c | 734 struct bpf_dynptr_kern dynptr; in BPF_CALL_4() local 749 bpf_dynptr_init(&dynptr, sample, BPF_DYNPTR_TYPE_LOCAL, 0, size); in BPF_CALL_4() 750 ret = callback((uintptr_t)&dynptr, (uintptr_t)callback_ctx, 0, 0, 0); in BPF_CALL_4()
|
D | verifier.c | 721 state->stack[spi].spilled_ptr.dynptr.first_slot = true; in mark_stack_slots_dynptr() 722 state->stack[spi].spilled_ptr.dynptr.type = type; in mark_stack_slots_dynptr() 723 state->stack[spi - 1].spilled_ptr.dynptr.type = type; in mark_stack_slots_dynptr() 754 if (dynptr_type_refcounted(state->stack[spi].spilled_ptr.dynptr.type)) { in unmark_stack_slots_dynptr() 760 state->stack[spi].spilled_ptr.dynptr.first_slot = false; in unmark_stack_slots_dynptr() 761 state->stack[spi].spilled_ptr.dynptr.type = 0; in unmark_stack_slots_dynptr() 762 state->stack[spi - 1].spilled_ptr.dynptr.type = 0; in unmark_stack_slots_dynptr() 793 !state->stack[spi].spilled_ptr.dynptr.first_slot) in is_dynptr_reg_valid_init() 819 return state->stack[spi].spilled_ptr.dynptr.type == dynptr_type; in is_dynptr_type_expected()
|
/linux-6.1.9/include/linux/ |
D | bpf_verifier.h | 85 } dynptr; member
|