Re: [PATCH bpf-next v2] bpf: use VM_MAP instead of VM_ALLOC for ringbuf

From
patchwork-bot+netdevbpf@kernel.org
Date
2022-02-03 07:30:12
Also in
bpf
Reply to
Hou Tao, 2022-02-02
Hello:

This patch was applied to bpf/bpf.git (master)
by Andrii Nakryiko [off-list ref]:

On Wed,  2 Feb 2022 14:01:58 +0800 you wrote:
After commit 2fd3fb0be1d1 ("kasan, vmalloc: unpoison VM_ALLOC pages
after mapping"), non-VM_ALLOC mappings will be marked as accessible
in __get_vm_area_node() when KASAN is enabled. But now the flag for
ringbuf area is VM_ALLOC, so KASAN will complain out-of-bound access
after vmap() returns. Because the ringbuf area is created by mapping
allocated pages, so use VM_MAP instead.

[...]
Here is the summary with links:
  - [bpf-next,v2] bpf: use VM_MAP instead of VM_ALLOC for ringbuf
    https://git.kernel.org/bpf/bpf/c/b293dcc473d2

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Thread (5 messages) 5 messages, 4 authors, last reply 2022-02-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help