From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wT6Xj4wrYzDqbW for ; Thu, 18 May 2017 20:16:21 +1000 (AEST) From: Michael Ellerman To: Kees Cook Cc: Breno Leitao , "linuxppc-dev\@lists.ozlabs.org" , Laura Abbott , gromero@br.ibm.com, Anshuman Khandual , Balbir Singh Subject: Re: kernel BUG at mm/usercopy.c:72! In-Reply-To: References: <20170515191949.GA13641@gmail.com> <878tlxoy62.fsf@concordia.ellerman.id.au> Date: Thu, 18 May 2017 20:16:17 +1000 Message-ID: <8737c2lbbi.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Kees Cook writes: > On Tue, May 16, 2017 at 4:09 AM, Michael Ellerman wrote: >> Yeah it looks like powerpc also suffers from the same bug that arm64 >> used to, ie. virt_addr_valid() will return true for some vmalloc >> addresses. >> >> virt_addr_valid() is used pretty widely, I'm not sure if we can just fix >> it without other fallout. I'll dig a bit more tomorrow if no one beats >> me to it. >> >> Kees, depending on how that turns out we may ask you to revert >> 517e1fbeb65f ("mm/usercopy: Drop extra is_vmalloc_or_module() check"). > > That's fine by me. Let me know what you think would be best. Oh man, what a mess. I think we can do a small fix for this in powerpc code for 4.12, will post it soon for Breno to test - I still can't reproduce locally. cheers