Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2045959img; Wed, 27 Feb 2019 09:31:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ9aK+9LIIEaHC5a6AcrGn7iYLLuyzlK+rjb9/lP9wNLc7dXaiEBkTbDJMTISbeKT+X74hq X-Received: by 2002:a17:902:7202:: with SMTP id ba2mr3205278plb.147.1551288705583; Wed, 27 Feb 2019 09:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551288705; cv=none; d=google.com; s=arc-20160816; b=Ef8fQORYPiaMbaAgFXpM3koMDkg6D/wOXp8vu20+izKqgCu/gkWHeyqcHPTDeGTMvL 7DBDD9E1zu2qmk3wR4z0nsWEc8mlugOBkyT3yqCMeO7bUog/3K5nZmEU2My+UOGEpE78 jbxLG7Sl3F9xkW99fy1ZgBH61b3lCmUnAGjo1aDc6Phaz5VuWKJStOw6X0k1nD5bGoEj Ml2mTVDuRE6Eju1tTiq+dfd0XcDHlgXLPuZtzAiKPOqHGzKpXhR4dKXyV93wkQokyYzH 6EeBVmzD1S955M2REmv3JUaCMORxnjt/qA4siBLptaNxHCZtMsj0QwWe6ugUKcUxjzSi Ysxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6+ogArHtVGPuIbgTIJjF3G9WgFr8MFiqT754au0NmR4=; b=kK3lbLT9/PYrB5QR2ukbSAOjBnDCMe9Arc1EkhUuQqyZSo4oOMdDrP3VwoKHYOhAxX zn3/BXsi2OItlEeti669208dfjjDvSdxVUOppBOYZKxMRTLew2G2zCPTp5tsLs0i2VQv 9E/wr4+zkk7d/D7QDQkYTHZFkllDct7owL7163+9m9xwY4P+ziiAyb9h4Dp5FQbpdCyi XSvcA5CGm4R0IocCzdDxcs9lvPC3lTHwoFXgjKNXPrbQtoXE8wDPXWxhMfcVjrFxwvEg uurhAQdsh2Ri54OeuXPXn34p1tTI0ItWr+/mSn/mBhdf2rrVBWPTTg2K2lORQiJ3y2FQ zGNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="3luxs/c9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k69si5188767pgd.135.2019.02.27.09.31.31; Wed, 27 Feb 2019 09:31:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="3luxs/c9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729953AbfB0Ra6 (ORCPT + 99 others); Wed, 27 Feb 2019 12:30:58 -0500 Received: from merlin.infradead.org ([205.233.59.134]:36994 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbfB0Ra5 (ORCPT ); Wed, 27 Feb 2019 12:30:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6+ogArHtVGPuIbgTIJjF3G9WgFr8MFiqT754au0NmR4=; b=3luxs/c9wdQ5vU3yHCdTTu4tg 1eBLvR6O9vCm3kzDCmrKyFFOYtzuBo3FUitTxC3TJnY70vUbXwmwy5MAYcmpIUoN7M/n/X/pklLOp HChHBp/UjQu/Ry2NtCVmnVEVN5HGGmvZLZlcIn6ERKCy8/oBol2KyZfncnqqoZXO+2fHx9fDxiEHv UI2GqIO5FgbEZCzFEQ+mbVeuBm8lvhvGas26AhZJRXMDPHoUGaqGZTeAK0eQZhoxn3w9h3I1Y+JHR RBY7ddUmEkrXFlWxg7DyV0P+E3RdKpKZrDRZKPgRDvuE0D3dPPGTw/AcbGgfpalEysZsKPszS4VYF NW7hOklNQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gz32d-0005xS-J6; Wed, 27 Feb 2019 17:30:47 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0C8B128523BB2; Wed, 27 Feb 2019 18:30:46 +0100 (CET) Date: Wed, 27 Feb 2019 18:30:46 +0100 From: Peter Zijlstra To: Linus Torvalds Cc: Thomas Gleixner , Peter Anvin , Julien Thierry , Will Deacon , Andy Lutomirski , Ingo Molnar , Catalin Marinas , James Morse , valentin.schneider@arm.com, Brian Gerst , Josh Poimboeuf , Andrew Lutomirski , Borislav Petkov , Denys Vlasenko , Linux List Kernel Mailing , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov Subject: Re: [PATCH 5/6] objtool: Add UACCESS validation Message-ID: <20190227173046.GU32494@hirez.programming.kicks-ass.net> References: <20190225124330.613028745@infradead.org> <20190225125232.191698923@infradead.org> <20190227140830.GP32494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 27, 2019 at 08:18:21AM -0800, Linus Torvalds wrote: > So the whole "run with AC on" thing isn't a big deal, apart from the > scheduling case. > > And we know how to fix the scheduling case by just doing the > save/restore thing.. Right, but I was hoping to avoid having to do that; and I think we can do that if we push all of kasan_report into an exception, like that 'patch' I just posted. If I'm not mistaken the regular kasan house-keeping crud just prods at the shadow memory with simple code and should be perfectly safe.