Searched refs:unsafe_ptr (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/kernel/trace/ |
D | bpf_trace.c | 171 bpf_probe_read_user_common(void *dst, u32 size, const void __user *unsafe_ptr) in bpf_probe_read_user_common() argument 175 ret = copy_from_user_nofault(dst, unsafe_ptr, size); in bpf_probe_read_user_common() 182 const void __user *, unsafe_ptr) in BPF_CALL_3() argument 184 return bpf_probe_read_user_common(dst, size, unsafe_ptr); in BPF_CALL_3() 198 const void __user *unsafe_ptr) in bpf_probe_read_user_str_common() argument 212 ret = strncpy_from_user_nofault(dst, unsafe_ptr, size); in bpf_probe_read_user_str_common() 219 const void __user *, unsafe_ptr) in BPF_CALL_3() argument 221 return bpf_probe_read_user_str_common(dst, size, unsafe_ptr); in BPF_CALL_3() 234 const void *, unsafe_ptr) in BPF_CALL_3() argument 236 return bpf_probe_read_kernel_common(dst, size, unsafe_ptr); in BPF_CALL_3() [all …]
|
/linux-6.6.21/kernel/bpf/ |
D | helpers.c | 739 static int bpf_trace_copy_string(char *buf, void *unsafe_ptr, char fmt_ptype, in bpf_trace_copy_string() argument 742 void __user *user_ptr = (__force void __user *)unsafe_ptr; in bpf_trace_copy_string() 749 if ((unsigned long)unsafe_ptr < TASK_SIZE) in bpf_trace_copy_string() 754 return strncpy_from_kernel_nofault(buf, unsafe_ptr, bufsz); in bpf_trace_copy_string() 821 char *unsafe_ptr = NULL, *tmp_buf = NULL, *tmp_buf_end, *fmt_end; in bpf_bprintf_prepare() local 932 unsafe_ptr = (char *)(long)raw_args[num_spec]; in bpf_bprintf_prepare() 933 err = copy_from_kernel_nofault(cur_ip, unsafe_ptr, in bpf_bprintf_prepare() 969 unsafe_ptr = (char *)(long)raw_args[num_spec]; in bpf_bprintf_prepare() 970 err = bpf_trace_copy_string(tmp_buf, unsafe_ptr, in bpf_bprintf_prepare()
|
/linux-6.6.21/include/linux/ |
D | bpf.h | 2735 bpf_probe_read_kernel_common(void *dst, u32 size, const void *unsafe_ptr) in bpf_probe_read_kernel_common() argument 2740 ret = copy_from_kernel_nofault(dst, unsafe_ptr, size); in bpf_probe_read_kernel_common()
|