Re: [PATCH 3/3] init: use do_mount() instead of ksys_mount()

From: Guenter Roeck
Date: Mon Dec 16 2019 - 10:04:17 EST


On Sun, Dec 15, 2019 at 07:50:23PM -0800, Linus Torvalds wrote:
> On Sun, Dec 15, 2019 at 5:35 PM OndÅej Jirman <megi@xxxxxx> wrote:
> >
> > Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
>
> Duh. So much for the trivial obvious conversion.
>
> It didn't take "data might be NULL" into account.
>
> A patch like this, perhaps? Untested..
>
> Linus

That one must be a record.

Qemu test results:
total: 387 pass: 93 fail: 294

For my education, what is so bad with calls like ksys_mount() that warrants
the extra code needed to remove it (and, of course, the resulting breakage) ?

Thanks,
Guenter