summaryrefslogtreecommitdiff
path: root/include/media/i2c-addr.h
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2019-11-02 00:17:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-12 11:45:29 +0200
commitf43434ee0f9c38214739e7d1f552cf9885d4cc71 (patch)
treecc8e212f752f8b6d887586184cdbc1bf4dd92b92 /include/media/i2c-addr.h
parent36fd2e474b0b66b1f091ac9438578381807e26e2 (diff)
uaccess: Add non-pagefault user-space write function
[ Upstream commit 1d1585ca0f48fe7ed95c3571f3e4a82b2b5045dc ] 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 <daniel@iogearbox.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Link: https://lore.kernel.org/bpf/9df2542e68141bfa3addde631441ee45503856a8.1572649915.git.daniel@iogearbox.net Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/media/i2c-addr.h')
0 files changed, 0 insertions, 0 deletions