From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0CEDCB7C5F for ; Tue, 12 Jan 2010 19:44:25 +1100 (EST) Subject: Re: [PATCH] 8xx: fix user space TLB walk in dcbX fixup From: Benjamin Herrenschmidt To: Joakim Tjernlund In-Reply-To: References: <1262969186-18462-1-git-send-email-Joakim.Tjernlund@transmode.se> <1263264045.724.183.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Date: Tue, 12 Jan 2010 19:44:09 +1100 Message-ID: <1263285849.724.199.camel@pasglop> Mime-Version: 1.0 Cc: Scott Wood , "linuxppc-dev@ozlabs.org" , Rex Feany List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2010-01-12 at 08:07 +0100, Joakim Tjernlund wrote: > Benjamin Herrenschmidt wrote on 12/01/2010 03:40:45: > > > > On Fri, 2010-01-08 at 17:46 +0100, Joakim Tjernlund wrote: > > > The newly added fixup for buggy dcbX insn's has > > > a bug that always trigger a kernel TLB walk so a user space > > > dcbX insn will cause a Kernel Machine Check if it hits DTLB error. > > > > > > Signed-off-by: Joakim Tjernlund > > > --- > > > > > > I found this problem in 2.4 and forward ported it to 2.6. I > > > cannot test it so I cannot be 100% sure I got it right. > > > > > > arch/powerpc/kernel/head_8xx.S | 4 ++-- > > > 1 files changed, 2 insertions(+), 2 deletions(-) > > > > Do you have something to make sure that TASK_SIZE is never bigger than > > 2G ? Else userspace could be all the way to 0xbfffffff ... > > No, but this is 8xx :) The TLB handlers has the same "limitation" and has always > been so. You should send a patch to express that limitation in KConfig :-) Cheers, Ben.