Re: [PATCH RESEND 3/3] kunit: Init and run test suites in the right state

2023-10-06 Thread Ruan Jinjie
On 2023/9/29 0:42, Marco Pagani wrote: > > > On 2023-09-28 11:14, Jinjie Ruan wrote: >> As Marco pointed out, commit 2810c1e99867 ("kunit: Fix wild-memory-access >> bug in kunit_free_suite_set()") causes test suites to run while the test >> module is still in MODULE_STATE_COMING. In that state

Re: [PATCH RESEND 3/3] kunit: Init and run test suites in the right state

2023-09-28 Thread Marco Pagani
On 2023-09-28 11:14, Jinjie Ruan wrote: > As Marco pointed out, commit 2810c1e99867 ("kunit: Fix wild-memory-access > bug in kunit_free_suite_set()") causes test suites to run while the test > module is still in MODULE_STATE_COMING. In that state, the module > is not fully initialized, lacking s

[PATCH RESEND 3/3] kunit: Init and run test suites in the right state

2023-09-28 Thread Jinjie Ruan
As Marco pointed out, commit 2810c1e99867 ("kunit: Fix wild-memory-access bug in kunit_free_suite_set()") causes test suites to run while the test module is still in MODULE_STATE_COMING. In that state, the module is not fully initialized, lacking sysfs, module_memory, args, init function which caus