From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 9 Jan 2014 22:28:10 +0000 From: Al Viro To: Eric Paris Cc: Steven Rostedt , LKML , Stephen Smalley , James Morris , Paul Moore , Andrew Morton , "Paul E. McKenney" , stable , selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org Subject: Re: [PATCH] SELinux: Fix possible NULL pointer dereference in selinux_inode_permission() Message-ID: <20140109222809.GL10323@ZenIV.linux.org.uk> References: <20140109101932.0508dec7@gandalf.local.home> <20140109105114.5c409fef@gandalf.local.home> <1389283030.15209.56.camel@localhost> <1389283545.15209.59.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1389283545.15209.59.camel@localhost> Sender: linux-kernel-owner@vger.kernel.org List-ID: On Thu, Jan 09, 2014 at 11:05:45AM -0500, Eric Paris wrote: > [adding lsm and selinux] > > Am I just crazy, or was this bug discussed (and obviously not fixed) > some time ago? > > VFS can still use inodes after security_inode_free_security() was > called... Unrelated bug. > > Assuming the VFS guys say that delaying __destroy_inode() is safe like > > that, I like it better. It also means that this is fixed for all LSMs, > > not just SELinux... Recall what your own code called from __destroy_inode() (fsnotify horrors) is doing - you can't grab a mutex from RCU callback...