From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lino Sanfilippo Subject: Re: [PATCH resend] audit: fix mark refcounting Date: Thu, 15 Dec 2011 21:06:31 +0100 Message-ID: <20111215200631.GA2379@Neptun> References: <87obwof06x.fsf@tucsk.pomaz.szeredi.hu> <87ipljcjc2.fsf@tucsk.pomaz.szeredi.hu> <20111215084050.GQ2203@ZenIV.linux.org.uk> <87fwgmjjr9.fsf@tucsk.pomaz.szeredi.hu> <87aa6ujjf6.fsf@tucsk.pomaz.szeredi.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Al Viro , Linus Torvalds , Eric Paris , akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Miklos Szeredi Return-path: Content-Disposition: inline In-Reply-To: <87aa6ujjf6.fsf@tucsk.pomaz.szeredi.hu> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Dec 15, 2011 at 10:03:41AM +0100, Miklos Szeredi wrote: > > + audit_get_parent(parent); > fsnotify_destroy_mark(&parent->mark); > + audit_put_parent(parent); Hi, What about taking an extra ref on an inode mark in send_to_group() before we call handle_event()? So we dont have to handle the cases in which a mark is destroyed explicitly... Lino