aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/bpf/ringbuf.c
diff options
context:
space:
mode:
authorHao Luo <haoluo@google.com>2021-12-16 16:31:48 -0800
committerAlexei Starovoitov <ast@kernel.org>2021-12-18 13:27:41 -0800
commit20b2aff4bc15bda809f994761d5719827d66c0b4 (patch)
tree56ef53fccf3a9be91909c3dc2cd36068043acc68 /kernel/bpf/ringbuf.c
parentbpf: Replace PTR_TO_XXX_OR_NULL with PTR_TO_XXX | PTR_MAYBE_NULL (diff)
downloadwireguard-linux-20b2aff4bc15bda809f994761d5719827d66c0b4.tar.xz
wireguard-linux-20b2aff4bc15bda809f994761d5719827d66c0b4.zip
bpf: Introduce MEM_RDONLY flag
This patch introduce a flag MEM_RDONLY to tag a reg value pointing to read-only memory. It makes the following changes: 1. PTR_TO_RDWR_BUF -> PTR_TO_BUF 2. PTR_TO_RDONLY_BUF -> PTR_TO_BUF | MEM_RDONLY Signed-off-by: Hao Luo <haoluo@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211217003152.48334-6-haoluo@google.com
Diffstat (limited to 'kernel/bpf/ringbuf.c')
0 files changed, 0 insertions, 0 deletions