The patch titled Subject: prctl_set_mm-downgrade-mmap_sem-to-read-lock-checkpatch-fixes has been added to the -mm tree. Its filename is prctl_set_mm-downgrade-mmap_sem-to-read-lock-checkpatch-fixes.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/prctl_set_mm-downgrade-mmap_sem-to-read-lock-checkpatch-fixes.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/prctl_set_mm-downgrade-mmap_sem-to-read-lock-checkpatch-fixes.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: prctl_set_mm-downgrade-mmap_sem-to-read-lock-checkpatch-fixes WARNING: Co-developed-by: must be immediately followed by Signed-off-by: #23: Co-developed-by: Laurent Dufour <ldufour@xxxxxxxxxxxxx> Reviewed-by: Cyrill Gorcunov <gorcunov@xxxxxxxxx> WARNING: line over 80 characters #45: FILE: kernel/sys.c:2126: + * arg_lock protects concurent updates of arg boundaries, we need mmap_sem for total: 0 errors, 2 warnings, 38 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/prctl_set_mm-downgrade-mmap_sem-to-read-lock.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Michal Koutný <mkoutny@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sys.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/kernel/sys.c~prctl_set_mm-downgrade-mmap_sem-to-read-lock-checkpatch-fixes +++ a/kernel/sys.c @@ -2128,8 +2128,9 @@ static int prctl_set_mm(int opt, unsigne error = -EINVAL; /* - * arg_lock protects concurent updates of arg boundaries, we need mmap_sem for - * a) concurrent sys_brk, b) finding VMA for addr validation. + * arg_lock protects concurent updates of arg boundaries, we need + * mmap_sem for a) concurrent sys_brk, b) finding VMA for addr + * validation. */ down_read(&mm->mmap_sem); vma = find_vma(mm, addr); _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-vmallocc-fix-typo-in-comment.patch mm-mmu_gather-remove-__tlb_reset_range-for-force-flush-checkpatch-fixes.patch prctl_set_mm-refactor-checks-from-validate_prctl_map-checkpatch-fixes.patch prctl_set_mm-downgrade-mmap_sem-to-read-lock-checkpatch-fixes.patch scripts-spellingtxt-drop-sepc-from-the-misspelling-list-fix.patch ocfs2-clear-zero-in-unaligned-direct-io-checkpatch-fixes.patch mm.patch mm-kasan-print-frame-description-for-stack-bugs-fix.patch include-linux-pfn_th-remove-pfn_t_to_virt.patch mm-add-probe_user_read-fix.patch byteorder-sanity-check-toolchain-vs-kernel-endianess-checkpatch-fixes.patch linux-next-rejects.patch kernel-forkc-export-kernel_thread-to-modules.patch