Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5136087yba; Wed, 10 Apr 2019 12:09:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlvymPxCjadOdKN7omjEdMRJJnzVwU/cf6UYDVUJuTbKh+rMxNUkXihYgyu8LsT/7hbpeQ X-Received: by 2002:a63:711d:: with SMTP id m29mr43046829pgc.109.1554923357266; Wed, 10 Apr 2019 12:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554923357; cv=none; d=google.com; s=arc-20160816; b=SQuAjwlLizLO+AvGGdnFMUr/FG4cG8HdcGPaH+lOEmnDRpio8EquWZpfdaW8EPeG7+ kc6ZM/zJxzFOI4fAycUoXbjQs79IMnlwKDIAa6EahyfNqGpd7tlcBz0s1ja3STTh/hpj RwddLmw7R/VIUPYAReUh/9ReG7p4PVM8GqRpUa9fThHv04vt9QDE80ywZ5WU3RYHkce+ ESTYr8ajjZnJ8A3kGOhJjTXTj2ZgF+aUQ9GtjeW9e2QNHZJ1XPUlKJn3OIe0WNpASPby CJ5NPMJcwPcqBUejAN8w1DnMgGwuFL8lUeSQw+Fz7LDJ9VnV43iw+WCorGm65HaFqKLi TpLA== 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; bh=3+Kh3aug/nNLDPBgqmhczhDdefF8LW6+zF2x2nXtjec=; b=pIGWjhZK8dJHXwqx9js3tiM69mwgLOAYT1SKiGDnn3I67WHCKfdbz9q4coR5nNo1QE hgIRmCM2l1u0T0mN84ZMMPR7lUvAREpTl4/vc0qGFlu+zgswYbG1JKFwx0UD6FdLgCh3 VSEa15KW3VJQyZjf9aiDwafU5QPBV1HMrrK4VxeKkNMzNLXPxd45GDPzyjMfDJKqno3x LjovG6fNB/ldY69bPOOG2aPl6dMJae1vGzvFw7/Ymk2vYuvrwk/u12K7ZLya5l0a38gj wlZqOVScvDnNra09FWt9nF6TkLAWJtXk0QHk4/FdXTpKtc4jhlXhuNv6OoIktf+Jayuh ueAA== ARC-Authentication-Results: i=1; mx.google.com; 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 f18si33065746pgj.188.2019.04.10.12.09.01; Wed, 10 Apr 2019 12:09:17 -0700 (PDT) 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; 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 S1731331AbfDJSLm (ORCPT + 99 others); Wed, 10 Apr 2019 14:11:42 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:40958 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727431AbfDJSLl (ORCPT ); Wed, 10 Apr 2019 14:11:41 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hEHh9-00005Z-G1; Wed, 10 Apr 2019 18:11:35 +0000 Date: Wed, 10 Apr 2019 19:11:35 +0100 From: Al Viro To: Linus Torvalds Cc: syzbot , Alexei Starovoitov , Daniel Borkmann , linux-fsdevel , Linux List Kernel Mailing , syzkaller-bugs , James Morris , linux-security-module@vger.kernel.org Subject: Re: KASAN: use-after-free Read in path_lookupat Message-ID: <20190410181135.GA32071@ZenIV.linux.org.uk> References: <0000000000006946d2057bbd0eef@google.com> <20190325045744.GK2217@ZenIV.linux.org.uk> <20190325211405.GP2217@ZenIV.linux.org.uk> <20190325233731.GS2217@ZenIV.linux.org.uk> <20190326014552.GY2217@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190326014552.GY2217@ZenIV.linux.org.uk> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 01:45:52AM +0000, Al Viro wrote: > On Mon, Mar 25, 2019 at 11:37:32PM +0000, Al Viro wrote: > > > For debugfs it's clearly "use default ->evict_inode(), have explicit > > ->destroy_inode() using free_inode_nonrcu()" - there we have nothing > > else done in ->evict_inode() and kfree is obviously safe in softirq. > > I'll post that (or push to vfs.git#fixes), along with minimal fixes > > for other 3. If bpf_any_put() is softirq-safe, we'll have the full > > set for -stable and the rest could be done on top of that. > > > > Won't solve the documetation problem, unfortunately ;-/ > > Posted; all of those (as well as Daniel's bpf patch) are Cc:stable > fodder. Documentation is still, er, deficient... ... and unfortunately there are two more, exactly like debugfs - securityfs and apparmorfs, found while sorting out the series for separate rcu-delayed counterpart of ->destroy_inode(). Both are in vfs.git#fixes. Which way should that go - directly or via linux-security.git? Both are stable fodder, in theory, but much harder to hit than their ubifs/debugfs/bpf counterparts...