Re: [PATCH v3] powerpc/kuap: Allow kernel thread to access userspace after kthread_use_mm

2021-02-10 Thread Michael Ellerman
On Sat, 6 Feb 2021 08:26:34 +0530, Aneesh Kumar K.V wrote: > This fix the bad fault reported by KUAP when io_wqe_worker access userspace. > > Bug: Read fault blocked by KUAP! > WARNING: CPU: 1 PID: 101841 at arch/powerpc/mm/fault.c:229 > __do_page_fault+0x6b4/0xcd0 > NIP [c009e7e4] __d

[PATCH v3] powerpc/kuap: Allow kernel thread to access userspace after kthread_use_mm

2021-02-05 Thread Aneesh Kumar K.V
This fix the bad fault reported by KUAP when io_wqe_worker access userspace. Bug: Read fault blocked by KUAP! WARNING: CPU: 1 PID: 101841 at arch/powerpc/mm/fault.c:229 __do_page_fault+0x6b4/0xcd0 NIP [c009e7e4] __do_page_fault+0x6b4/0xcd0 LR [c009e7e0] __do_page_fault+0x6b0/0