[LTP] [PATCH] fanotify25: fix test failure on kernel with CONFIG_MODULES=n

Amir Goldstein amir73il@gmail.com
Tue Mar 3 10:54:30 CET 2026


On Tue, Mar 3, 2026 at 10:49 AM Martin Doucha <mdoucha@suse.cz> wrote:
>
> On 3/2/26 18:07, Amir Goldstein wrote:
> > On Mon, Mar 2, 2026 at 4:39 PM Cyril Hrubis <chrubis@suse.cz> wrote:
> >> If possible I would like to avoid whack-a-mole game trying to find
> >> something that is commonly enabled.
> >
> > Feel free to choose any other symbol.
>
> Hi,
> how about oom_kill_process()? That one's unconditionally available and
> shouldn't get called very often in a reasonable test environment either.

Why does it matter how much the function gets called?
Isn't that irrelevant for the test?

>
> I'll prepare a patch and check that it still triggers the expected
> failures on broken kernels.

I really think we are over-thinking this.

The problem with load_module was that some test setup configs
do not have it - that's all.

Thanks,
Amir.


More information about the ltp mailing list