Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753221AbbCACbP (ORCPT ); Sat, 28 Feb 2015 21:31:15 -0500 Received: from mout.gmx.net ([212.227.15.15]:61667 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753113AbbCACbO (ORCPT ); Sat, 28 Feb 2015 21:31:14 -0500 Message-ID: <54F279E6.90307@gmx.de> Date: Sun, 01 Mar 2015 03:31:02 +0100 From: Lino Sanfilippo User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Suzuki K. Poulose" CC: linux-kernel@vger.kernel.org, Jan Kara , Eric Paris , Andrew Morton , Will Deacon Subject: Re: [PATCH] fanotify: Fix event filtering with FAN_ONDIR set References: <1425037239-18881-1-git-send-email-suzuki.poulose@arm.com> In-Reply-To: <1425037239-18881-1-git-send-email-suzuki.poulose@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:WQ+udwXjxUovSOkWMtFi6wsn6LOVY4qK49JgPrcl+qTKi96MjY1 Ea/vX3BUt7NA/RyacZqqTi4ngqcKve8qrabvu1fb0+lcCtaXsQyJB4KYNrF4Le5tzD9nZDF n5Ajh1Q5La7WoTVdEbn1MSWolw72/ZQzlRdNRJZnvXplrzW4D+fFEWhZPtW0MwgN9tebCcq qswDDfFp9h3Bs5HazRsZQ== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 31 Hi Suzuki, On 27.02.2015 12:40, Suzuki K. Poulose wrote: > From: "Suzuki K. Poulose" > > With FAN_ONDIR set, the user can end up getting events, which > it hasn't marked. This was revealed with fanotify04 testcase > failure on Linux-4.0-rc1, and is a regression from 3.19, revealed > with commit (66ba93c0d7fe6: fanotify: don't set FAN_ONDIR implicitly > on a marks ignored mask). > > > Fix this by masking the outgoing events to the user, as we > already take care of FAN_ONDIR and FAN_EVENT_ON_CHILD. > thank you for fixing this. I tested your solution and it works, so you can add Tested-by: Lino Sanfilippo . Regards, Lino -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/