All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Make detecting the secure boot status integrity-wide
@ 2026-02-03  4:14 Coiby Xu
  2026-02-03  4:14 ` [PATCH v2 1/3] integrity: Make arch_ima_get_secureboot integrity-wide Coiby Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Coiby Xu @ 2026-02-03  4:14 UTC (permalink / raw)
  To: linux-integrity
  Cc: Heiko Carstens, Alexander Egorenkov, Ard Biesheuvel, Dave Hansen

EVM and other LSMs need the ability to query the secure boot status of
the system, without directly calling the IMA arch_ima_get_secureboot
function. Make arch_ima_get_secureboot integrity-wide.

v2:
 - drop CONFIG_INTEGRITY_SECURE_BOOT Kconfig option since it 
   "imply INTEGRITY_SECURE_BOOT" is anti-pattern as pointed out by
   Ard Biesheuvel

Coiby Xu (3):
  integrity: Make arch_ima_get_secureboot integrity-wide
  evm: Don't enable fix mode when secure boot is enabled
  s390: Drop unnecessary CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT

 MAINTAINERS                                   |  1 +
 arch/powerpc/kernel/ima_arch.c                |  5 --
 arch/powerpc/kernel/secure_boot.c             |  6 ++
 arch/s390/Kconfig                             |  1 -
 arch/s390/kernel/Makefile                     |  1 -
 arch/s390/kernel/ima_arch.c                   | 14 -----
 arch/s390/kernel/ipl.c                        |  5 ++
 arch/x86/include/asm/efi.h                    |  4 +-
 arch/x86/platform/efi/efi.c                   |  2 +-
 include/linux/ima.h                           |  7 +--
 include/linux/secure_boot.h                   | 19 +++++++
 security/integrity/Makefile                   |  3 +-
 security/integrity/efi_secureboot.c           | 56 +++++++++++++++++++
 security/integrity/evm/evm_main.c             | 24 +++++---
 security/integrity/ima/ima_appraise.c         |  2 +-
 security/integrity/ima/ima_efi.c              | 48 +---------------
 security/integrity/ima/ima_main.c             |  4 +-
 security/integrity/integrity.h                |  1 +
 security/integrity/platform_certs/load_uefi.c |  2 +-
 security/integrity/secure_boot.c              | 16 ++++++
 20 files changed, 134 insertions(+), 87 deletions(-)
 delete mode 100644 arch/s390/kernel/ima_arch.c
 create mode 100644 include/linux/secure_boot.h
 create mode 100644 security/integrity/efi_secureboot.c
 create mode 100644 security/integrity/secure_boot.c


base-commit: 8dfce8991b95d8625d0a1d2896e42f93b9d7f68d
-- 
2.52.0


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/3] integrity: Make arch_ima_get_secureboot integrity-wide
@ 2026-02-03 15:14 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2026-02-03 15:14 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "maintainer prefers to test the version of patch actually in efi/next"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20260203041434.872784-2-coxu@redhat.com>
References: <20260203041434.872784-2-coxu@redhat.com>
TO: Coiby Xu <coxu@redhat.com>
TO: linux-integrity@vger.kernel.org
CC: Heiko Carstens <hca@linux.ibm.com>
CC: Alexander Egorenkov <egorenar@linux.ibm.com>
CC: Ard Biesheuvel <ardb@kernel.org>
CC: Dave Hansen <dave.hansen@intel.com>
CC: Mimi Zohar <zohar@linux.ibm.com>
CC: Roberto Sassu <roberto.sassu@huawei.com>
CC: Madhavan Srinivasan <maddy@linux.ibm.com>
CC: Michael Ellerman <mpe@ellerman.id.au>
CC: Nicholas Piggin <npiggin@gmail.com>
CC: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
CC: Vasily Gorbik <gor@linux.ibm.com>
CC: Alexander Gordeev <agordeev@linux.ibm.com>
CC: Christian Borntraeger <borntraeger@linux.ibm.com>
CC: Sven Schnelle <svens@linux.ibm.com>
CC: Thomas Gleixner <tglx@kernel.org>
CC: Ingo Molnar <mingo@redhat.com>
CC: Borislav Petkov <bp@alien8.de>
CC: "(maintainer:X86 ARCHITECTURE \(32-BIT AND 64-BIT\))" <x86@kernel.org>
CC: "H. Peter Anvin" <hpa@zytor.com>
CC: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
CC: Eric Snowberg <eric.snowberg@oracle.com>
CC: Paul Moore <paul@paul-moore.com>
CC: James Morris <jmorris@namei.org>
CC: "Serge E. Hallyn" <serge@hallyn.com>
CC: Jarkko Sakkinen <jarkko@kernel.org>
CC: linux-kernel@vger.kernel.org
CC: "(open list:LINUX FOR POWERPC \(32-BIT AND 64-BIT\))" <linuxppc-dev@lists.ozlabs.org>
CC: linux-s390@vger.kernel.org
CC: "(open list:EXTENSIBLE FIRMWARE INTERFACE \(EFI\))" <linux-efi@vger.kernel.org>

Hi Coiby,

kernel test robot noticed the following build warnings:

[auto build test WARNING on zohar-integrity/next-integrity]
[also build test WARNING on s390/features powerpc/next powerpc/fixes efi/next linus/master v6.19-rc8 next-20260202]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Coiby-Xu/evm-Don-t-enable-fix-mode-when-secure-boot-is-enabled/20260203-131538
base:   https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity
patch link:    https://lore.kernel.org/r/20260203041434.872784-2-coxu%40redhat.com
patch subject: [PATCH v2 1/3] integrity: Make arch_ima_get_secureboot integrity-wide
:::::: branch date: 10 hours ago
:::::: commit date: 10 hours ago
config: s390-defconfig (https://download.01.org/0day-ci/archive/20260203/202602032339.B0eUnzSN-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260203/202602032339.B0eUnzSN-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@intel.com>
| Closes: https://lore.kernel.org/r/202602032339.B0eUnzSN-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/s390/kernel/ipl.c:2507:6: warning: no previous prototype for function 'arch_get_secureboot' [-Wmissing-prototypes]
    2507 | bool arch_get_secureboot(void)
         |      ^
   arch/s390/kernel/ipl.c:2507:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2507 | bool arch_get_secureboot(void)
         | ^
         | static 
   1 warning generated.


vim +/arch_get_secureboot +2507 arch/s390/kernel/ipl.c

937347ac56bfca Martin Schwidefsky 2019-02-25  2506  
6a32c5e3924dac Coiby Xu           2026-02-03 @2507  bool arch_get_secureboot(void)
6a32c5e3924dac Coiby Xu           2026-02-03  2508  {
6a32c5e3924dac Coiby Xu           2026-02-03  2509  	return ipl_secure_flag;
6a32c5e3924dac Coiby Xu           2026-02-03  2510  }
6a32c5e3924dac Coiby Xu           2026-02-03  2511  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-02-12 20:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-03  4:14 [PATCH v2 0/3] Make detecting the secure boot status integrity-wide Coiby Xu
2026-02-03  4:14 ` [PATCH v2 1/3] integrity: Make arch_ima_get_secureboot integrity-wide Coiby Xu
2026-02-09 20:43   ` Mimi Zohar
2026-02-12  1:28     ` Coiby Xu
2026-02-12 20:25       ` Mimi Zohar
2026-02-03  4:14 ` [PATCH v2 2/3] evm: Don't enable fix mode when secure boot is enabled Coiby Xu
2026-02-03  4:14 ` [PATCH v2 3/3] s390: Drop unnecessary CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT Coiby Xu
  -- strict thread matches above, loose matches on Subject: below --
2026-02-03 15:14 [PATCH v2 1/3] integrity: Make arch_ima_get_secureboot integrity-wide kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.