Valgrind reports the following error with UML when ubd driver is compiled in. ==29588== Unsupported clone() flags: 0x500 ==29588== ==29588== The only supported clone() uses are: ==29588== - via a threads library (LinuxThreads or NPTL) ==29588== - via the implementation of fork or vfork Adding CLONE_FS flags silences this issue. Signed-off-by: Hajime Tazaki <thehajime@xxxxxxxxx> --- arch/um/drivers/ubd_user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/um/drivers/ubd_user.c b/arch/um/drivers/ubd_user.c index a1afe414ce48..fabb50e91c37 100644 --- a/arch/um/drivers/ubd_user.c +++ b/arch/um/drivers/ubd_user.c @@ -47,7 +47,8 @@ int start_io_thread(unsigned long sp, int *fd_out) goto out_close; } - pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); + pid = clone(io_thread, (void *) sp, + CLONE_FILES | CLONE_VM | CLONE_FS, NULL); if(pid < 0){ err = -errno; printk("start_io_thread - clone failed : errno = %d\n", errno); -- 2.21.0 (Apple Git-122.2)