summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2021-06-18 15:57:40 +0200
committerMatei Valeanu <Matei.Valeanu@enea.com>2021-06-22 10:59:26 +0200
commit18292f311c94bb5197fa82375d7586e7591f23a0 (patch)
tree2d57b1ccf04c91311e9a3bc56a749316f73d3142
parentb73a8bd015484ca8290f90bff2913915e67db9a6 (diff)
downloadenea-kernel-cache-18292f311c94bb5197fa82375d7586e7591f23a0.tar.gz
Fix kaudit warnings for guest kernel
1. CONFIG_UNWINDER_FRAME_POINTER New in kernel v4.15+. Since we want to disable FRAME_POINTER, this one should be disabled too (or it will select FRAME_POINTER). Adding it will lead to honoring our FRAME_POINTER setting. Note that having a kernel unwinder is mandatory, so only disabling UNWINDER_FRAME_POINTER will automatically select UNWINDER_ORC on x86_64. Set CONFIG_UNWINDER_GUESS=y instead to avoid runtime overhead with the cost of having less precise debug information on kernel crashes. 2. CONFIG_REGMAP Selected by I2C_DESIGNWARE_CORE, which we enabled as a load-module. Adding it to i2c_m.cfg only silences the kaudit warning, as it is already selected. 3. CONFIG_BLK_DEV_SR reduced_kernel_footprint_guest: Remove config cdrom_n.scc, which is used as dependency by other features (cloud-init NoCloud on CDROM). Change-Id: I03f5f19c6ea535dfe90cae2068ffbdc99b07f8f4 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-rw-r--r--features/compilechecks/compilechecks_n.cfg2
-rw-r--r--features/i2csupport/i2c_m.cfg1
-rw-r--r--features/reduced_kernel_footprint_guest/reduced_kernel_footprint_guest.scc1
3 files changed, 3 insertions, 1 deletions
diff --git a/features/compilechecks/compilechecks_n.cfg b/features/compilechecks/compilechecks_n.cfg
index b8cbed4..c794416 100644
--- a/features/compilechecks/compilechecks_n.cfg
+++ b/features/compilechecks/compilechecks_n.cfg
@@ -3,3 +3,5 @@ CONFIG_UNUSED_SYMBOLS=n
3CONFIG_DEBUG_FS=n 3CONFIG_DEBUG_FS=n
4CONFIG_SECTION_MISMATCH_WARN_ONLY=n 4CONFIG_SECTION_MISMATCH_WARN_ONLY=n
5CONFIG_FRAME_POINTER=n 5CONFIG_FRAME_POINTER=n
6CONFIG_UNWINDER_FRAME_POINTER=n
7CONFIG_UNWINDER_GUESS=y
diff --git a/features/i2csupport/i2c_m.cfg b/features/i2csupport/i2c_m.cfg
index 68323b4..39561ca 100644
--- a/features/i2csupport/i2c_m.cfg
+++ b/features/i2csupport/i2c_m.cfg
@@ -1,3 +1,4 @@
1CONFIG_REGMAP=y
1CONFIG_I2C=m 2CONFIG_I2C=m
2CONFIG_I2C_SMBUS=m 3CONFIG_I2C_SMBUS=m
3CONFIG_I2C_BOARDINFO=y 4CONFIG_I2C_BOARDINFO=y
diff --git a/features/reduced_kernel_footprint_guest/reduced_kernel_footprint_guest.scc b/features/reduced_kernel_footprint_guest/reduced_kernel_footprint_guest.scc
index a502ffe..33a9aaa 100644
--- a/features/reduced_kernel_footprint_guest/reduced_kernel_footprint_guest.scc
+++ b/features/reduced_kernel_footprint_guest/reduced_kernel_footprint_guest.scc
@@ -39,7 +39,6 @@ include features/wlan/wlan_n.scc
39include features/ftrace/ftrace_n.scc 39include features/ftrace/ftrace_n.scc
40include features/debug/debug_kernel_n.scc 40include features/debug/debug_kernel_n.scc
41include features/ata/ata_n.scc 41include features/ata/ata_n.scc
42include features/cdrom/cdrom_n.scc
43include features/hwmon/hwmon_n.scc 42include features/hwmon/hwmon_n.scc
44include features/usbsupport/usbsupport_n.scc 43include features/usbsupport/usbsupport_n.scc
45include features/touchscreen/touchscreen_n.scc 44include features/touchscreen/touchscreen_n.scc