[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTikSRbj=omkhuZWCvoWCs86dCjETOu2z93gR5CR-@mail.gmail.com>
Date: Sun, 29 Aug 2010 03:20:28 +0530
From: Csaba Henk <csaba@...ster.com>
To: Eric Paris <eparis@...hat.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] fsnotify: fix NULL dereference in send_to_group()
On Sun, Aug 29, 2010 at 2:49 AM, Eric Paris <eparis@...hat.com> wrote:
> This should be fixed in the pull request I sent to Linus last night.
> Sorry you had to track it down as well. There are a number of other bug
> fixes in my tree
>
> http://git.infradead.org/users/eparis/notify.git
Oh yeah, my bad, I did check that tree before getting into this... but
only the master branch, not for-linus.
> There might still be some code duplication which something like 2/2
> could clean up but your patch does apply to my devel tree and it has a
> logic flaw. In the case we have both a vfsmount and an inode mark we
> need to test:
>
> event_mask & vmark->mask & ~vmark->ignored_mask & ~imark->ignored mask.
>
> You would only ever test one or the other, not both together like that.
Indeed my code implements that behavior. I took care to pass the
test_mask by reference to check_mark_mask(), where upon the first
invocation it's reduced with ~imark->ignored mask, so for the second
invocation with the vmark we make test as the above expression.
If you are OK with the clean-up, I can readjust it to apply.
Csaba
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists