Re: sendmmsg: put_user vs __put_user

From: Ulrich Drepper
Date: Sat Mar 31 2012 - 08:30:48 EST


On Fri, Mar 30, 2012 at 20:51, David Miller <davem@xxxxxxxxxxxxx> wrote:
> Compat processes are not able to generate virtual addresses anywhere
> near the range where the kernel resides, so the address range
> verification done by put_user() is completely superfluous and
> therefore not necessary. ÂThe normal exception handling done by the
> access is completely sufficient.

I was more thinking about the effects of might_fault() then additional tests.
--
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/