Hi Janusz, > I agree with both Andi and Krzysztof comments. > > If the issue is tracked in our bug tracker then please provide a link to its > record in a Link: or even Closes: tag. Do you have call traces on hand? > Probably yes, so please consider adding a concise excerpt to your description. > > While looking for similar cases, I've found commit 51104c19d857 ("kunit: test: > Add vm_mmap() allocation resource manager") that seems to have resolved a > similar issue for then newly added kunit tests accessing current->mm. Maybe > the approach used there is worth of reusing it for i915 selftests. > > Thanks, > Janusz Here is related bug Link: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13679 I've seen commit you found. It sadly uses symbols that aren't exported outside of mm module and kunit tests and so I can't replicate it in our selftest. Mikołaj