Skip to contentSkip to conversation

disable VBE by default

PATCH In review Peter Robinson 2 participants 2 messages Nov 17 Library code

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 disable VBE by default

The VBE protocol needs explicit device support and as such isn't particularly useful by itself without that, it also adds size and the potential of an attack vector so devices that wish to use this protocol should explicitly opt in to it like all other large features in U-Boot.

This also cleans up some other missing dependencies around VBE/VPL.

---

v2:
- Leave enabled for SANDBOX
- Add some other missing VBE/VPL dependencies

 boot/Kconfig | 10 +++++-----
 lib/Kconfig  |  1 +
 2 files changed, 6 insertions(+), 5 deletions(-)
boot/Kconfig +5 -5
index 8fcdc36c931..44f5e7994db 100644
@@ -519,7 +519,7 @@ config SPL_BOOTSTD
 config VPL_BOOTSTD
 	bool "Standard boot support in VPL"
 	depends on VPL && VPL_DM && VPL_OF_CONTROL && VPL_BLK
-	default y
+	default y if VPL
 	help
 	  This enables standard boot in SPL. This is needed so that VBE
 	  (Verified Boot for Embedded) can be used, since it depends on standard
@@ -720,7 +720,7 @@ config BOOTMETH_QFW
 config BOOTMETH_VBE
 	bool "Bootdev support for Verified Boot for Embedded"
 	depends on FIT
-	default y
+	default y if SANDBOX
 	select BOOTMETH_GLOBAL
 	select EVENT
 	help
@@ -749,7 +749,7 @@ config VPL_BOOTMETH_VBE
 	bool "Bootdev support for Verified Boot for Embedded (VPL)"
 	depends on VPL && FIT
 	select EVENT
-	default y
+	default y if SANDBOX
 	help
 	  Enables support for VBE boot. This is a standard boot method which
 	  supports selection of various firmware components, selection of an OS to
@@ -757,8 +757,8 @@ config VPL_BOOTMETH_VBE
 
 config TPL_BOOTMETH_VBE
 	bool "Bootdev support for Verified Boot for Embedded (TPL)"
-	depends on TPL
-	default y
+	depends on TPL && VBE
+	default y if SANDBOX
 	help
 	  Enables support for VBE boot. This is a standard boot method which
 	  supports selection of various firmware components, seleciton of an OS to
lib/Kconfig +1 -0
index a05baa8af00..e86548985d8 100644
@@ -1054,6 +1054,7 @@ config TPL_LZMA
 
 config VPL_LZMA
 	bool "Enable LZMA decompression support for VPL build"
+	depends on VPL
 	default y if LZMA
 	help
 	  This enables support for LZMA compression algorithm for VPL boot.
Signature · 1 line
2.56.1
#1 lore raw
Quoted 8 lines · Peter Robinson

The VBE protocol needs explicit device support and as such isn't particularly useful by itself without that, it also adds size and the potential of an attack vector so devices that wish to use this protocol should explicitly opt in to it like all other large features in U-Boot.

[...]

Applied to u-boot/main, thanks!

[1/1] disable VBE by default

      commit: 2f83ef8a7dd4a409b534ea68cd13b17b686cc53c
Signature · 1 line
Tom