Home
last modified time | relevance | path

Searched refs:unsafe_ptr (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/kernel/trace/
Dbpf_trace.c174 bpf_probe_read_user_common(void *dst, u32 size, const void __user *unsafe_ptr) in bpf_probe_read_user_common() argument
178 ret = copy_from_user_nofault(dst, unsafe_ptr, size); in bpf_probe_read_user_common()
185 const void __user *, unsafe_ptr) in BPF_CALL_3() argument
187 return bpf_probe_read_user_common(dst, size, unsafe_ptr); in BPF_CALL_3()
201 const void __user *unsafe_ptr) in bpf_probe_read_user_str_common() argument
215 ret = strncpy_from_user_nofault(dst, unsafe_ptr, size); in bpf_probe_read_user_str_common()
222 const void __user *, unsafe_ptr) in BPF_CALL_3() argument
224 return bpf_probe_read_user_str_common(dst, size, unsafe_ptr); in BPF_CALL_3()
237 const void *, unsafe_ptr) in BPF_CALL_3() argument
239 return bpf_probe_read_kernel_common(dst, size, unsafe_ptr); in BPF_CALL_3()
[all …]
/linux-6.12.1/kernel/bpf/
Dhelpers.c741 static int bpf_trace_copy_string(char *buf, void *unsafe_ptr, char fmt_ptype, in bpf_trace_copy_string() argument
744 void __user *user_ptr = (__force void __user *)unsafe_ptr; in bpf_trace_copy_string()
751 if ((unsigned long)unsafe_ptr < TASK_SIZE) in bpf_trace_copy_string()
756 return strncpy_from_kernel_nofault(buf, unsafe_ptr, bufsz); in bpf_trace_copy_string()
823 char *unsafe_ptr = NULL, *tmp_buf = NULL, *tmp_buf_end, *fmt_end; in bpf_bprintf_prepare() local
934 unsafe_ptr = (char *)(long)raw_args[num_spec]; in bpf_bprintf_prepare()
935 err = copy_from_kernel_nofault(cur_ip, unsafe_ptr, in bpf_bprintf_prepare()
971 unsafe_ptr = (char *)(long)raw_args[num_spec]; in bpf_bprintf_prepare()
972 err = bpf_trace_copy_string(tmp_buf, unsafe_ptr, in bpf_bprintf_prepare()
/linux-6.12.1/include/linux/
Dbpf.h2963 bpf_probe_read_kernel_common(void *dst, u32 size, const void *unsafe_ptr) in bpf_probe_read_kernel_common() argument
2968 ret = copy_from_kernel_nofault(dst, unsafe_ptr, size); in bpf_probe_read_kernel_common()