Hello: This series was applied to bpf/bpf.git (master) by Alexei Starovoitov <ast@xxxxxxxxxx>: On Tue, 28 Jan 2025 17:22:45 -0800 you wrote: > For all BPF maps we ensure that VM_MAYWRITE is cleared when > memory-mapping BPF map contents as initially read-only VMA. This is > because in some cases BPF verifier relies on the underlying data to not > be modified afterwards by user space, so once something is mapped > read-only, it shouldn't be re-mmap'ed as read-write. > > As such, it's not necessary to check VM_MAYWRITE in bpf_map_mmap() and > map->ops->map_mmap() callbacks: VM_WRITE should be consistently set for > read-write mappings, and if VM_WRITE is not set, there is no way for > user space to upgrade read-only mapping to read-write one. > > [...] Here is the summary with links: - [v2,bpf-next,1/2] bpf: unify VM_WRITE vs VM_MAYWRITE use in BPF map mmaping logic https://git.kernel.org/bpf/bpf/c/98671a0fd1f1 - [v2,bpf-next,2/2] bpf: avoid holding freeze_mutex during mmap operation https://git.kernel.org/bpf/bpf/c/bc27c52eea18 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html