aboutsummaryrefslogtreecommitdiff
path: root/lib/syscall.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2019-11-02 00:17:56 +0100
committerAlexei Starovoitov <[email protected]>2019-11-02 12:39:12 -0700
commit1d1585ca0f48fe7ed95c3571f3e4a82b2b5045dc (patch)
tree0e36ebafa09168d30407e3b5fb06905647f91262 /lib/syscall.c
parente1cb7d2d60d536baf24d2f0fd58786324ce92331 (diff)
uaccess: Add non-pagefault user-space write function
Commit 3d7081822f7f ("uaccess: Add non-pagefault user-space read functions") missed to add probe write function, therefore factor out a probe_write_common() helper with most logic of probe_kernel_write() except setting KERNEL_DS, and add a new probe_user_write() helper so it can be used from BPF side. Again, on some archs, the user address space and kernel address space can co-exist and be overlapping, so in such case, setting KERNEL_DS would mean that the given address is treated as being in kernel address space. Signed-off-by: Daniel Borkmann <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Cc: Masami Hiramatsu <[email protected]> Link: https://lore.kernel.org/bpf/9df2542e68141bfa3addde631441ee45503856a8.1572649915.git.daniel@iogearbox.net
Diffstat (limited to 'lib/syscall.c')
0 files changed, 0 insertions, 0 deletions