[folded-merged] prctl_set_mm-refactor-checks-from-validate_prctl_map-checkpatch-fixes.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: prctl_set_mm-refactor-checks-from-validate_prctl_map-checkpatch-fixes
has been removed from the -mm tree.  Its filename was
     prctl_set_mm-refactor-checks-from-validate_prctl_map-checkpatch-fixes.patch

This patch was dropped because it was folded into prctl_set_mm-refactor-checks-from-validate_prctl_map.patch

------------------------------------------------------
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

drivers-crypto-ux500-cryp-makefile-fix.patch
mm-vmallocc-fix-typo-in-comment.patch
prctl_set_mm-refactor-checks-from-validate_prctl_map.patch
prctl_set_mm-downgrade-mmap_sem-to-read-lock-checkpatch-fixes.patch
mm-mmu_gather-remove-__tlb_reset_range-for-force-flush-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
include-linux-pfn_th-remove-pfn_t_to_virt.patch
mm-swap-use-rbtree-for-swap_extent-fix.patch
proc-sysctl-add-shared-variables-for-range-check-fix.patch
vmcore-add-a-kernel-parameter-novmcoredd-fix.patch
vmcore-add-a-kernel-parameter-novmcoredd-fix-fix.patch
byteorder-sanity-check-toolchain-vs-kernel-endianess-checkpatch-fixes.patch
selftests-ptrace-add-a-test-case-for-ptrace_get_syscall_info-checkpatch-fixes.patch
linux-next-rejects.patch
linux-next-git-rejects.patch
kernel-forkc-export-kernel_thread-to-modules.patch





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux