- prevent-null-pointer-deref-in-grab_swap_token.patch removed from -mm tree

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

 



The patch titled
     Prevent NULL pointer deref in grab_swap_token
has been removed from the -mm tree.  Its filename was
     prevent-null-pointer-deref-in-grab_swap_token.patch

This patch was dropped because it is obsolete

------------------------------------------------------
Subject: Prevent NULL pointer deref in grab_swap_token
From: Dean Roe <roe@xxxxxxx>


grab_swap_token() assumes that the current process has an mm struct, which
is not true for kernel threads invoking get_user_pages().  Since this
should be extremely rare, just return from grab_swap_token() without doing
anything.

Signed-off-by: Dean Roe <roe@xxxxxxx>
Cc: Rik van Riel <riel@xxxxxxxxxx>
Cc: <stable@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 mm/thrash.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN mm/thrash.c~prevent-null-pointer-deref-in-grab_swap_token mm/thrash.c
--- devel/mm/thrash.c~prevent-null-pointer-deref-in-grab_swap_token	2006-03-07 13:22:53.000000000 -0800
+++ devel-akpm/mm/thrash.c	2006-03-07 13:22:53.000000000 -0800
@@ -54,6 +54,9 @@ void grab_swap_token(void)
 	struct mm_struct *mm;
 	int reason;
 
+	if (current->mm == NULL)
+		return;
+
 	/* We have the token. Let others know we still need it. */
 	if (has_swap_token(current->mm)) {
 		current->mm->recent_pagein = 1;
_

Patches currently in -mm which might be from roe@xxxxxxx are


-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

  Powered by Linux