Re: [PATCH] fanotify: Do check against max_marks and increase number of group marks atomically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2010-11-09 at 19:19 +0100, Lino Sanfilippo wrote:
> The number of group marks is checked against max_marks and increased afterwards
>     in a non atomic way. This may result in 2 or more processes passing the check
>     at the same time and increasing the number of group marks above the max_marks
>     limit afterwards.
>     With this patch the check against max_marks is done in fsnotify_add_mark(),
>     after the group lock has been aquired to ensure that concurrent processes
>     cant exceed the group marks limit.
> 
> Signed-off-by: Lino Sanfilippo <LinoSanfilippo@xxxxxx>

applied to http://git.infradead.org/users/eparis/notify.git/ #for-next

-Eric

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux