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

2021-02-05 Thread Zorro Lang
On Fri, Feb 05, 2021 at 07:19:36PM +0530, Aneesh Kumar K.V wrote: > Zorro Lang writes: > > > > > ... > > [ 530.180466] run fstests generic/617 at 2021-02-05 03:41:10 > > [ 530.707969] [ cut here ] > > [ 530.708006] kernel BUG at arch/powerpc/include/asm/book3s/64/

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

2021-02-05 Thread Aneesh Kumar K.V
Zorro Lang writes: > ... > [ 530.180466] run fstests generic/617 at 2021-02-05 03:41:10 > [ 530.707969] [ cut here ] > [ 530.708006] kernel BUG at arch/powerpc/include/asm/book3s/64/kup.h:207! > [ 530.708013] Oops: Exception in kernel mode, sig: 5 [#1] > [ 530.7

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

2021-02-05 Thread Zorro Lang
On Fri, Feb 05, 2021 at 08:34:26AM +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 [c009e7

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

2021-02-04 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