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>] [day] [month] [year] [list]
Message-ID: <bbfba7a0-c9c1-4002-9368-9049d7312ffc@zimbra>
Date:	Tue, 08 Oct 2013 10:53:30 -0500 (CDT)
From:	Aaron Sierra <asierra@...-inc.com>
To:	Kumar Gala <galak@...nel.crashing.org>
Cc:	LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 1/2] powerpc/fsl-booke: Allow use of all CAMs

CONFIG_LOWMEM_CAM_NUM was unnecessarily restricted to one fewer than
NUM_TLBCAMS. However, all comparisons to CONFIG_LOWMEM_CAM_NUM are
"less than" tests, so comparing 0-based CAM indexes to the maximum
number of CAMs is safe.

Signed-off-by: Aaron Sierra <asierra@...-inc.com>
---
 arch/powerpc/mm/fsl_booke_mmu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/mm/fsl_booke_mmu.c b/arch/powerpc/mm/fsl_booke_mmu.c
index 07ba45b..92685d8 100644
--- a/arch/powerpc/mm/fsl_booke_mmu.c
+++ b/arch/powerpc/mm/fsl_booke_mmu.c
@@ -197,8 +197,8 @@ unsigned long map_mem_in_cams(unsigned long ram, int max_cam_idx)
 
 #ifdef CONFIG_PPC32
 
-#if defined(CONFIG_LOWMEM_CAM_NUM_BOOL) && (CONFIG_LOWMEM_CAM_NUM >= NUM_TLBCAMS)
-#error "LOWMEM_CAM_NUM must be less than NUM_TLBCAMS"
+#if defined(CONFIG_LOWMEM_CAM_NUM_BOOL) && (CONFIG_LOWMEM_CAM_NUM > NUM_TLBCAMS)
+#error "LOWMEM_CAM_NUM must not exceed NUM_TLBCAMS"
 #endif
 
 unsigned long __init mmu_mapin_ram(unsigned long top)
-- 
1.7.9.5

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