[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1400650563-1033-1-git-send-email-yong.zhang@windriver.com>
Date: Wed, 21 May 2014 13:36:03 +0800
From: Yong Zhang <yong.zhang@...driver.com>
To: <ralf@...ux-mips.org>, <huawei.libin@...wei.com>
CC: <linux-mips@...ux-mips.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH V2] MIPS: change type of asid_cache to unsigned long
asid_cache must be unsigned long otherwise on 64bit system
it will become 0 if the value in get_new_mmu_context()
reaches 0xffffffff and in the end the assumption of
ASID_FIRST_VERSION is not true anymore thus leads to
more dangerous things.
Reported-by: libin <huawei.libin@...wei.com>
Signed-off-by: Yong Zhang <yong.zhang@...driver.com>
---
V2<-V1: Add the reporter.
arch/mips/include/asm/cpu-info.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/cpu-info.h b/arch/mips/include/asm/cpu-info.h
index f6299be..ebcc2ed 100644
--- a/arch/mips/include/asm/cpu-info.h
+++ b/arch/mips/include/asm/cpu-info.h
@@ -40,7 +40,7 @@ struct cache_desc {
struct cpuinfo_mips {
unsigned int udelay_val;
- unsigned int asid_cache;
+ unsigned long asid_cache;
/*
* Capability and feature descriptor structure for MIPS CPU
--
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