From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbaEUFgS (ORCPT ); Wed, 21 May 2014 01:36:18 -0400 Received: from mail1.windriver.com ([147.11.146.13]:48590 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbaEUFgR (ORCPT ); Wed, 21 May 2014 01:36:17 -0400 From: Yong Zhang To: , CC: , Subject: [PATCH V2] MIPS: change type of asid_cache to unsigned long Date: Wed, 21 May 2014 13:36:03 +0800 Message-ID: <1400650563-1033-1-git-send-email-yong.zhang@windriver.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Yong Zhang --- 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