[pcmoore-lsm:working-lsm_init_rework 40/41] security/lsm_init.c:516:undefined reference to `securityfs_init'

Paul Moore paul at paul-moore.com
Wed Sep 17 18:02:09 UTC 2025


On Wed, Sep 17, 2025 at 7:57 AM kernel test robot <lkp at intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm.git working-lsm_init_rework
> head:   8ea7358ca612bb85eef9179ae746edeb5f1dc9ac
> commit: bf19c9b17d8d2f27e2031822337e8d137b2c6224 [40/41] lsm: consolidate all of the LSM framework initcalls
> config: x86_64-randconfig-003-20250917 (https://download.01.org/0day-ci/archive/20250917/202509171951.rXOi8Oez-lkp@intel.com/config)
> compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250917/202509171951.rXOi8Oez-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp at intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202509171951.rXOi8Oez-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>    ld: security/lsm_init.o: in function `security_initcall_core':
> >> security/lsm_init.c:516:(.init.text+0x101b): undefined reference to `securityfs_init'
>
>
> vim +516 security/lsm_init.c
>
>    508
>    509  /**
>    510   * security_initcall_core - Run the LSM core initcalls
>    511   */
>    512  static int __init security_initcall_core(void)
>    513  {
>    514          int rc_sfs, rc_lsm;
>    515
>  > 516          rc_sfs = securityfs_init();
>    517          rc_lsm = lsm_initcall(core);
>    518
>    519          return (rc_sfs ? rc_sfs : rc_lsm);
>    520  }
>    521  core_initcall(security_initcall_core);
>    522
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki

Fixed in the lsm/working-lsm_init_rework branch in case anyone wants
to take a look.  However, as the fix really doesn't have anything to
do with the IMA/EVM patch, I'll wait to repost the patchset until Mimi
has a chance to look at the IMA/EVM patch from Roberto.

-- 
paul-moore.com



More information about the Linux-security-module-archive mailing list