[LTP] [PATCH v3] madvise11.c:Check loadable module before rmmod

Cyril Hrubis chrubis@suse.cz
Tue Mar 14 10:15:11 CET 2023


Hi!
> > Sounds like a bug that shoudl be fixed, we probably need to create two
> > search strings, one with dashes and one with underscores and try to
> > strstr() both.
> 
> Could we not check kconfig for builtin modules?

Are we 100% sure that the module-name always translates to
CONFIG_MODULE_NAME?

I would say that we are a bit safer if we use the same files the rest of
the tooling uses e.g. depmod, dracut etc.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list