summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorAnkit Khushwaha <ankitkhushwaha.linux@gmail.com>2025-10-08 20:25:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-12 14:01:04 +0300
commitf125c1cfa11a92209b84bfde9a405a31c9f76195 (patch)
tree0e171052d0d61ff637a8efb47af3b48c00ef905b /scripts/lib/kdoc/kdoc_files.py
parent3a062a5c55adc5507600b9ae6d911e247e2f1d6e (diff)
downloadlinux-f125c1cfa11a92209b84bfde9a405a31c9f76195.tar.xz
ring buffer: Propagate __rb_map_vma return value to caller
commit de4cbd704731778a2dc833ce5a24b38e5d672c05 upstream. The return value from `__rb_map_vma()`, which rejects writable or executable mappings (VM_WRITE, VM_EXEC, or !VM_MAYSHARE), was being ignored. As a result the caller of `__rb_map_vma` always returned 0 even when the mapping had actually failed, allowing it to proceed with an invalid VMA. Cc: stable@vger.kernel.org Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/20251008172516.20697-1-ankitkhushwaha.linux@gmail.com Fixes: 117c39200d9d7 ("ring-buffer: Introducing ring-buffer mapping functions") Reported-by: syzbot+ddc001b92c083dbf2b97@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?id=194151be8eaebd826005329b2e123aecae714bdb Signed-off-by: Ankit Khushwaha <ankitkhushwaha.linux@gmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions