The patch titled Subject: prctl_set_mm-refactor-checks-from-validate_prctl_map-checkpatch-fixes has been added to the -mm tree. Its filename is prctl_set_mm-refactor-checks-from-validate_prctl_map-checkpatch-fixes.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/prctl_set_mm-refactor-checks-from-validate_prctl_map-checkpatch-fixes.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/prctl_set_mm-refactor-checks-from-validate_prctl_map-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-refactor-checks-from-validate_prctl_map-checkpatch-fixes WARNING: line over 80 characters #85: FILE: kernel/sys.c:1987: + if (!prctl_map.auxv || prctl_map.auxv_size > sizeof(mm->saved_auxv)) WARNING: line over 80 characters #111: FILE: kernel/sys.c:2097: + struct prctl_mm_map prctl_map = { .auxv = NULL, .auxv_size = 0, .exe_fd = -1 }; total: 0 errors, 2 warnings, 97 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-refactor-checks-from-validate_prctl_map.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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/kernel/sys.c~prctl_set_mm-refactor-checks-from-validate_prctl_map-checkpatch-fixes +++ a/kernel/sys.c @@ -1984,7 +1984,8 @@ static int prctl_set_mm_map(int opt, con /* * Someone is trying to cheat the auxv vector. */ - if (!prctl_map.auxv || prctl_map.auxv_size > sizeof(mm->saved_auxv)) + if (!prctl_map.auxv || + prctl_map.auxv_size > sizeof(mm->saved_auxv)) return -EINVAL; memset(user_auxv, 0, sizeof(user_auxv)); @@ -2094,7 +2095,11 @@ static int prctl_set_mm(int opt, unsigne unsigned long arg4, unsigned long arg5) { struct mm_struct *mm = current->mm; - struct prctl_mm_map prctl_map = { .auxv = NULL, .auxv_size = 0, .exe_fd = -1 }; + struct prctl_mm_map prctl_map = { + .auxv = NULL, + .auxv_size = 0, + .exe_fd = -1, + }; struct vm_area_struct *vma; int error; _ 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 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