diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2021-06-18 15:57:40 +0200 |
---|---|---|
committer | Matei Valeanu <Matei.Valeanu@enea.com> | 2021-06-22 10:59:26 +0200 |
commit | 18292f311c94bb5197fa82375d7586e7591f23a0 (patch) | |
tree | 2d57b1ccf04c91311e9a3bc56a749316f73d3142 | |
parent | b73a8bd015484ca8290f90bff2913915e67db9a6 (diff) | |
download | enea-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.cfg | 2 | ||||
-rw-r--r-- | features/i2csupport/i2c_m.cfg | 1 | ||||
-rw-r--r-- | features/reduced_kernel_footprint_guest/reduced_kernel_footprint_guest.scc | 1 |
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 | |||
3 | CONFIG_DEBUG_FS=n | 3 | CONFIG_DEBUG_FS=n |
4 | CONFIG_SECTION_MISMATCH_WARN_ONLY=n | 4 | CONFIG_SECTION_MISMATCH_WARN_ONLY=n |
5 | CONFIG_FRAME_POINTER=n | 5 | CONFIG_FRAME_POINTER=n |
6 | CONFIG_UNWINDER_FRAME_POINTER=n | ||
7 | CONFIG_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 @@ | |||
1 | CONFIG_REGMAP=y | ||
1 | CONFIG_I2C=m | 2 | CONFIG_I2C=m |
2 | CONFIG_I2C_SMBUS=m | 3 | CONFIG_I2C_SMBUS=m |
3 | CONFIG_I2C_BOARDINFO=y | 4 | CONFIG_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 | |||
39 | include features/ftrace/ftrace_n.scc | 39 | include features/ftrace/ftrace_n.scc |
40 | include features/debug/debug_kernel_n.scc | 40 | include features/debug/debug_kernel_n.scc |
41 | include features/ata/ata_n.scc | 41 | include features/ata/ata_n.scc |
42 | include features/cdrom/cdrom_n.scc | ||
43 | include features/hwmon/hwmon_n.scc | 42 | include features/hwmon/hwmon_n.scc |
44 | include features/usbsupport/usbsupport_n.scc | 43 | include features/usbsupport/usbsupport_n.scc |
45 | include features/touchscreen/touchscreen_n.scc | 44 | include features/touchscreen/touchscreen_n.scc |