Re: [patch] mlock-as-nonroot revisted

From: Andrea Arcangeli
Date: Tue Aug 03 2004 - 16:57:14 EST


On Tue, Aug 03, 2004 at 11:38:57PM +0200, Arjan van de Ven wrote:
> On Tue, Aug 03, 2004 at 11:36:34PM +0200, Andrea Arcangeli wrote:
> > On Tue, Aug 03, 2004 at 11:13:39PM +0200, Arjan van de Ven wrote:
> > > The user that mlock'd gets to pay for it, and gets his credits back at
> > > munlock. Chown doesn't really matter in that regard..... The thing that does
> >
> > what? he cannot get credits when it munlock if this is hugetlbfs. If it
> > does you're again into the insecure DoS scenario.
>
> not if you keep track of who locked in the first place and give the credit
> back to *that* user (struct).

I wasn't talking about chown above. I mean, where's the truncate that
releases the user-struct-bind? You just can't release the
user-struct-bind from
munlock/exit/whatever-task-opeartion-different-from-truncate-or-chown.

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