On Wed, May 23, 2012 at 7:46 AM, David Miller <davem@xxxxxxxxxxxxx> wrote: > [PATCH] sparc: Add full proper error handling to strncpy_from_user(). > > Linus removed the end-of-address-space hackery from > fs/namei.c:do_getname() so we really have to validate these edge > conditions and cannot cheat any more (as x86 used to as well). > > Move to a common C implementation like x86 did. And if both > src and dst are sufficiently aligned we'll do word at a time > copies and checks as well. Now everybody is rewriting this in plain C, perhaps it make sense to have it in lib/, so I don't have to write anything myself? Gr{oetje,eeting}s, Lazy Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html