Re: [PATCH] init/do_mounts.c: replace sys_mount() to do_mount()

Namhyung Kim
2010-08-17T13:25:28Z

2010-08-17 (화), 15:15 +0200, Arnd Bergmann:
> AFAICT there is no need for the copy at all here. The reason that sys_mount
> copies to a separate page is that it gets passed an arbitrary-length user
> input.
>
> Arnd

Right. But make sure to user options never exceed a page, do_mount() has
following code:

if (data_page)
((char *)data_page)[PAGE_SIZE - 1] = 0;

--
Regards,
Namhyung Kim