From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Viro Subject: Re: [PATCH] audit: grab a reference to context->pwd when it's cached Date: Wed, 15 Aug 2012 21:26:42 -0400 Message-ID: <20120816012642.GA10020@shell.devel.redhat.com> References: <1345079613-27388-1-git-send-email-pmoody@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1345079613-27388-1-git-send-email-pmoody@google.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Peter Moody Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Wed, Aug 15, 2012 at 06:13:33PM -0700, Peter Moody wrote: > On certain systems, in certain pathalogical cases, current's cwd can > be deleted while we're still processing a syscall. This should prevent > the system from evicting the inode while we're still referencing it. > > This seems to fix the bug I reported here: > https://www.redhat.com/archives/linux-audit/2012-August/msg00017.html Sigh... The bug is real, but I really don't like the fix. Among other things, it's going to cause cacheline bouncing from hell and not everyone runs with audit sensibly disabled... Let me think for a while and see if I can come up with something less unpleasant, OK?