Re: [PATCH] io_thread/x86: don't reset 'cs', 'ss', 'ds' and 'es' registers for io_threads

2021-04-14 Thread Stefan Metzmacher
Hi Jens, hi Linus, any comments on that patch? On a system with 'uname -m -p -i -r' 5.12.0-rc7 x86_64 x86_64 x86_64 and a ubuntu 20.04 amd64 userspace. I compiled 3 versions of liburing + the following diff: diff --git a/examples/io_uring-cp.c b/examples/io_uring-cp.c index

[PATCH] io_thread/x86: don't reset 'cs', 'ss', 'ds' and 'es' registers for io_threads

2021-04-11 Thread Stefan Metzmacher
This allows gdb attach to userspace processes using io-uring, which means that they have io_threads (PF_IO_WORKER), which appear just like normal as userspace threads. See the code comment for more details. Fixes: 4727dc20e04 ("arch: setup PF_IO_WORKER threads like PF_KTHREAD") Signed-off-by: