Re: [patch] file capabilities: Add no_file_caps switch

From: David Howells
Date: Wed Aug 27 2008 - 13:03:41 EST


Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> That gets foul in another way - bounding the worst case RCU
> memory utilisation if someone is sitting doing things like while(1)
> change_credentials();

Is it worth calling synchronize_rcu() in commit_creds() to make sure that the
old memory will have been freed if possible? Admittedly that'll slow setuid()
and co. down, but it should avoid that problem.

David
--
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/