[security:next-lockdown 8/29] arch/s390/kernel/kexec_elf.c:134:3: error: 'const struct kexec_file_ops' has no member named 'verify_sig'

kbuild test robot lkp at intel.com
Sat Aug 10 08:27:44 UTC 2019


tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/jmorris/linux-security.git next-lockdown
head:   05ef41e93e1a40d6b2d9846284824ec6f67fe422
commit: 47b888368923ec6ccd96c6a654250867def4a2c4 [8/29] kexec_file: split KEXEC_VERIFY_SIG into KEXEC_SIG and KEXEC_SIG_FORCE
config: s390-allmodconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 47b888368923ec6ccd96c6a654250867def4a2c4
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> arch/s390/kernel/kexec_elf.c:134:3: error: 'const struct kexec_file_ops' has no member named 'verify_sig'
     .verify_sig = s390_verify_sig,
      ^~~~~~~~~~
>> arch/s390/kernel/kexec_elf.c:134:16: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     .verify_sig = s390_verify_sig,
                   ^~~~~~~~~~~~~~~
   arch/s390/kernel/kexec_elf.c:134:16: note: (near initialization for 's390_kexec_elf_ops')
   cc1: some warnings being treated as errors
--
>> arch/s390/kernel/kexec_image.c:63:3: error: 'const struct kexec_file_ops' has no member named 'verify_sig'
     .verify_sig = s390_verify_sig,
      ^~~~~~~~~~
>> arch/s390/kernel/kexec_image.c:63:16: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     .verify_sig = s390_verify_sig,
                   ^~~~~~~~~~~~~~~
   arch/s390/kernel/kexec_image.c:63:16: note: (near initialization for 's390_kexec_image_ops')
   cc1: some warnings being treated as errors

vim +134 arch/s390/kernel/kexec_elf.c

8be01882715466 Philipp Rudo 2017-09-11  129  
8be01882715466 Philipp Rudo 2017-09-11  130  const struct kexec_file_ops s390_kexec_elf_ops = {
8be01882715466 Philipp Rudo 2017-09-11  131  	.probe = s390_elf_probe,
8be01882715466 Philipp Rudo 2017-09-11  132  	.load = s390_elf_load,
e23a8020ce4e09 Philipp Rudo 2019-02-26  133  #ifdef CONFIG_KEXEC_VERIFY_SIG
e23a8020ce4e09 Philipp Rudo 2019-02-26 @134  	.verify_sig = s390_verify_sig,

:::::: The code at line 134 was first introduced by commit
:::::: e23a8020ce4e094e10d717d39a8ce799243bf8c1 s390/kexec_file: Signature verification prototype

:::::: TO: Philipp Rudo <prudo at linux.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky at de.ibm.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


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