On Fri, Jul 24, 2020 at 11:46:31PM +0900, Masami Hiramatsu wrote: > On Fri, 24 Jul 2020 08:05:48 +0300 > Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> wrote: > > > Add lock_modules() and unlock_modules() wrappers for acquiring module_mutex > > in order to remove the compile time dependency to it. > > This subject is a bit confusing. This is just wrapping modules_mutex in > kpprobes. We still have compile time dependency, e.g. module_state, right? Yes. This more like a preliminary change to make that happen. The actual flagging is in 6/6 ("Remove CONFIG_MODULE dependency"). Maybe a better angle would be to make this update all sites that deal with module_mutex [*] and base the whole rationale on that? [*] https://lore.kernel.org/lkml/20200725024227.GD17052@xxxxxxxxxxxxxxx/ /Jarkko