Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5240120imb; Thu, 7 Mar 2019 10:50:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyPY/wKCd/0dZcYqGOYDFPVPoF5dq2CJh///fK4SQj7pF3Tw23jKOvF1NcKVPqaPNnISp8J X-Received: by 2002:a63:d5f:: with SMTP id 31mr12661746pgn.274.1551984600739; Thu, 07 Mar 2019 10:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551984600; cv=none; d=google.com; s=arc-20160816; b=N4zZLBESHpn1V1JMJkiEUiz+haEh/aHPKfXvybTL8MreIAOtaU984m4DldhlcAj9F0 19MBZsFzhttHrHki96ga0OfEMachS6lT0g2jiG2PsNpAvqKCIoV/unZvXhhQnW4RWMeq uOYG+PLyoZt0p4p51KjOE+DEg4Sqn6mjIjZbpPYAthOxTEMAwpjwZYA8Ff3gmyME1BNi imrzmZrV3KMspv96gU2/mX1K1YoRgrOzWdn21j/mQAFpOnP+PMiAB10MNLDut8oA+rjI qftoxxDa3twQLgUAJLEHgyavRadYaqzfigEGiLcHEvUKVYHyfnKt1QkCKHNAC4c+6V7f EU2g== 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=wE1scT41lGtBH9l0UQsxcqywNitQszd2Aj4cYZf7vPI=; b=poChA7pwm2Sq9+OSboWPP2d/rLoTqz8YUXS5KXX5a2JICInUZhFjYr7LuETWSpr5Cs RvztAyCKWqIsfJThnmG82HEtKKUTfj4TE7lG5K7avqvnvLrUXXeABFrbqL+31e04Ugdy OPNAjtj2yj+l8t+vKe1UBmSuOi5kVPR7LU+m0sAiOQFO+2l32zSwhh0SjPXQAbcezOnD 9aFpW6+Nccn5OmethLeSUq4QzXTJbQaOwUSjG4HkRxOwl+yUEVNdN03vTC1TknIzrlh7 YVJlnXUfvE/iieuQKT/mkj7TTSmu4StY8EJXqZpPO6yemryf33mAxl52W+xLhDrecrCk UoMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Fh7MAytp; 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 p186si4826516pfp.85.2019.03.07.10.49.45; Thu, 07 Mar 2019 10:50:00 -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=bombadil.20170209 header.b=Fh7MAytp; 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 S1726313AbfCGSsa (ORCPT + 99 others); Thu, 7 Mar 2019 13:48:30 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:44444 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbfCGSsa (ORCPT ); Thu, 7 Mar 2019 13:48:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=wE1scT41lGtBH9l0UQsxcqywNitQszd2Aj4cYZf7vPI=; b=Fh7MAytpk67zm69D3egREHZM9 9q3JW8o3kEHkTAC5DJEexlCzbbYFooXQvFOWrlR+5ZenBzcvNDthne7pQunghodMrVk7xo7JsIYHZ SwXr4+YJhwvbrMjOs+jNxfd41KViogzezxN2M4QYGLTMAdjBvpj8BBoYSyT16rNb94IK+wWWuLJ92 YmuTCK3WIh2yghuRc6oJiHYScA1/J5gb9Co1ByGvURxH7UY9tJfG192E2nCW5s1G3Qiue1m79GiUp UumSQjYZOGmhUB7c1r0kBYUBe5cH59Wh0b2LcqVqy/fKLenGUd++saSXB5qvC8HPxtReR5argjy3c LXqQZA3kg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1y40-00033X-Pl; Thu, 07 Mar 2019 18:48:16 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id F407A202A2A1F; Thu, 7 Mar 2019 19:48:13 +0100 (CET) Date: Thu, 7 Mar 2019 19:48:13 +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 , Dmitry Vyukov , Steven Rostedt Subject: Re: [PATCH 18/20] objtool: Add UACCESS validation Message-ID: <20190307184813.GL32477@hirez.programming.kicks-ass.net> References: <20190307114511.870090179@infradead.org> <20190307115200.697533978@infradead.org> <20190307174135.GJ32477@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 Thu, Mar 07, 2019 at 09:54:14AM -0800, Linus Torvalds wrote: > On Thu, Mar 7, 2019 at 9:41 AM Peter Zijlstra wrote: > > > > > > What's the call site that made you go "just add __memset() to the list"? > > > > __asan_{,un}poinson_stack_memory() > > kasan_{,un}poison_shadow() > > __memset() > > Ugh. I think I almost just agree with your decision to just let that > memset go unchecked. > > I'm not saying it's right, but it doesn't seem to be a fight worth fighting. One think I could do; is add a filter to each function and only allow __memset from the kasan code, and not from anywhere else. Another thing I need to look at is why objtool only found memset_orig (from __memset) but not memset_erms, which if I read the code right, is a possible alternative there. > Because AC vs KASAN in general ends up smelling like "not a fight > worth fighting" to me. You've done a herculean job, but.. I know,.. I've been so close to doing that so many times, but it seems like defeat, esp. since I'm so close now :-)