lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBAjXi04AwyCS94xFZkKNWv3ngKw=04Jw+Y9nNnMXjH-WQ@mail.gmail.com>
Date:	Tue, 20 Mar 2012 20:30:48 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	Andrea Arcangeli <aarcange@...hat.com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Hillf Danton <dhillf@...il.com>
Subject: [PATCH] autonuma: release page_table_lock in scanning pmd

Only for unlikely corner case, unlock is added to pair lock.

Signed-off-by: Hillf Danton <dhillf@...il.com>
---

--- a/mm/autonuma.c	Sat Mar 17 11:01:50 2012
+++ b/mm/autonuma.c	Tue Mar 20 19:58:44 2012
@@ -522,7 +522,8 @@ static int knumad_scan_pmd(struct mm_str
 				spin_unlock(&mm->page_table_lock);
 				goto out;
 			}
-		}
+		} else
+			spin_unlock(&mm->page_table_lock);
 	}

 	VM_BUG_ON(!pmd_present(*pmd));
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ