Re: [PATCH v2] lib: kunit: Provides a userspace memory context when tests are compiled as module

2020-08-19 Thread Vitor Massaru Iha
On Wed, Aug 19, 2020 at 6:05 PM Brendan Higgins wrote: > > On Fri, Jul 17, 2020 at 5:50 PM Vitor Massaru Iha wrote: > > > > KUnit test cases run on kthreads, and kthreads don't have an > > adddress space (current->mm is NULL), but processes have mm. > > > > The purpose of this patch is to allow t

Re: [PATCH v2] lib: kunit: Provides a userspace memory context when tests are compiled as module

2020-08-19 Thread Brendan Higgins
On Fri, Jul 17, 2020 at 5:50 PM Vitor Massaru Iha wrote: > > KUnit test cases run on kthreads, and kthreads don't have an > adddress space (current->mm is NULL), but processes have mm. > > The purpose of this patch is to allow to borrow mm to KUnit kthread > after userspace is brought up, because

[PATCH v2] lib: kunit: Provides a userspace memory context when tests are compiled as module

2020-07-17 Thread Vitor Massaru Iha
KUnit test cases run on kthreads, and kthreads don't have an adddress space (current->mm is NULL), but processes have mm. The purpose of this patch is to allow to borrow mm to KUnit kthread after userspace is brought up, because we know that there are processes running, at least the process that l