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: <20070428192048.GX3468@stusta.de>
Date:	Sat, 28 Apr 2007 21:20:48 +0200
From:	Adrian Bunk <bunk@...sta.de>
To:	avi@...ranet.com
Cc:	kvm-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: [2.6 patch] drivers/kvm/mmu.c: fix an if() condition

It might have worked in this case since PT_PRESENT_MASK is 1, but let's 
express this correctly.

Signed-off-by: Adrian Bunk <bunk@...sta.de>

---
--- linux-2.6.21-rc7-mm2/drivers/kvm/mmu.c.old	2007-04-28 18:05:13.000000000 +0200
+++ linux-2.6.21-rc7-mm2/drivers/kvm/mmu.c	2007-04-28 18:05:54.000000000 +0200
@@ -1408,7 +1408,7 @@ static void audit_mappings_page(struct k
 	for (i = 0; i < PT64_ENT_PER_PAGE; ++i, va += va_delta) {
 		u64 ent = pt[i];
 
-		if (!ent & PT_PRESENT_MASK)
+		if (!(ent & PT_PRESENT_MASK))
 			continue;
 
 		va = canonicalize(va);
-
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