Re: [PATCH 16/17] init: open code setting up stdin/stdout/stderr

2020-07-09 Thread Brian Gerst
On Thu, Jul 9, 2020 at 11:19 AM Christoph Hellwig wrote: > > Don't rely on the implicit set_fs(KERNEL_DS) for ksys_open to work, but > instead open a struct file for /dev/console and then install it as FD > 0/1/2 manually. > > Signed-off-by: Christoph Hellwig > --- > fs/file.c|

[PATCH 16/17] init: open code setting up stdin/stdout/stderr

2020-07-09 Thread Christoph Hellwig
Don't rely on the implicit set_fs(KERNEL_DS) for ksys_open to work, but instead open a struct file for /dev/console and then install it as FD 0/1/2 manually. Signed-off-by: Christoph Hellwig --- fs/file.c| 7 +-- include/linux/syscalls.h | 1 - init/main.c | 16