Re: [PATCH 4/4] x86: Pass kernel thread parameters in fork_frame

From: Andy Lutomirski
Date: Sun May 22 2016 - 14:02:15 EST


On Sat, May 21, 2016 at 9:04 AM, Brian Gerst <brgerst@xxxxxxxxx> wrote:
> Instead of setting up a fake pt_regs context, put the kernel thread
> function pointer and arg into the unused callee-restored registers
> of struct fork_frame.
>
> Signed-off-by: Brian Gerst <brgerst@xxxxxxxxx>

Seems reasonable. Can you make sure you explicitly test with
something that uses the usermodehelper mechanism?

--Andy