Skip to contentSkip to conversation

utils/genrandconfig: test configurations with BR2_PIC_PIE

PATCH New Fabrice Fontaine 2 participants 3 messages Oct 26, 2019 – Oct 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/genrandconfig: test configurations with BR2_PIC_PIE

---
 utils/genrandconfig | 2 ++
 1 file changed, 2 insertions(+)
utils/genrandconfig +2 -0
index d6b7fd56b7..54d66e40d7 100755
@@ -366,6 +366,8 @@ def gen_config(args):
         configlines.append("BR2_OPTIMIZE_2=y\n")
     if randint(0, 4) == 0:
         configlines.append("BR2_SYSTEM_ENABLE_NLS=y\n")
+    if randInt(0, 4) == 0:
+        configlines.append("BR2_PIC_PIE=y\n")
 
     # Randomly enable BR2_REPRODUCIBLE 10% of times
     # also enable tar filesystem images for testing
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/1 utils/genrandconfig: test configurations with BR2_PIC_PIE

Quoted 4 lines · On Sat, 26 Oct 2019 10:42:21 +0200 Fabrice Fontaine…
---
 utils/genrandconfig | 2 ++
 1 file changed, 2 insertions(+)

Applied to master, thanks. Any reason why you randomized this only for PIC_PIE, and not the other hardening options ?

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 utils/genrandconfig: test configurations with BR2_PIC_PIE

In reply to Fabrice Fontaine

Hello Fabrice,

Quoted 4 lines · On Sat, 26 Oct 2019 10:42:21 +0200 Fabrice Fontaine…
---
 utils/genrandconfig | 2 ++
 1 file changed, 2 insertions(+)

This is starting to cause build failures (of course). Perhaps you should monitor:

http://autobuild.buildroot.net/index.php?status=NOK&symbols[BR2_PIC_PIE]=y

Not all build failures are related to BR2_PIC_PIE of course, but some of them clearly are.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com