Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\bpf_trace.c Create Date:2022-07-28 12:35:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:____bpf_probe_write_user

Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_probe_write_user(void *unsafe_ptr, const void *src, u32 size)

Type:u64

Parameter:

TypeParameterName
void *unsafe_ptr
const void *src
u32size
298  If Value for the false possibility is greater at compile time(in_interrupt() || flags & (I am a kernel thread | Getting shut down )) Then Return -EPERM
301  If Value for the false possibility is greater at compile time(uaccess_kernel()) Then Return -EPERM
303  If Value for the false possibility is greater at compile time(!Blindly accessing user memory from NMI context can be dangerous* if we're in the middle of switching the current user task or* switching the loaded mm. It can also be dangerous if we* interrupted some kernel code that was temporarily using a* different mm.) Then Return -EPERM
306  Return probe_user_write(): safely attempt to write to a location in user space*@dst: address to write to*@src: pointer to the data that shall be written*@size: size of the data chunk* Safely write to address @dst from the buffer at @src. If a kernel fault