Re: + syscalls-x86-add-__nr_kcmp-syscall-v8.patch added to -mm tree

From: Cyrill Gorcunov
Date: Tue Apr 10 2012 - 18:54:38 EST


On Mon, Apr 09, 2012 at 08:25:22PM -0700, Eric W. Biederman wrote:
...
>
> Having just read through it again the only possible issue I can see is
> that we compare file descriptors after dropping all of the locks.
>
> Since rcu_read_lock doesn't participate in ABBA deadlocks. My gut feel
> is that we should hold rcu_read_lock across the hole file pointer
> comparison to remove the possibility of races as file descriptor
> pointers go away.
>
> Still in practice I don't think it matters. At worst there is the
> slightest possibility of returning a value instead of -EBADF. The
> expectation is for all of the tasks we are operating on to be frozen,
> and even if the tasks are not frozen it is a very tiny window for a race
> to be in.

yeah, we use this call heavily on stopped tasks atm

> > So what do people think? Any issues? Any nacks? Should I sneak it
> > into Linus this week or do we need to go another round with it all?
>
> Acked-by: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
>

Thanks a lot, Eric!

Cyrill
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/