From d1b6f8c7af0eb9a0a44b2d4723e58dde5eafa236 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Thu, 23 Apr 2020 16:47:21 -0400 Subject: kernel-5.7.0-0.rc2.20200423git7adc4b399952.1 * Thu Apr 23 2020 CKI@GitLab [5.7.0-0.rc2.20200423git7adc4b399952.1] - 7adc4b399952 rebase - Match template format in kernel.spec.template ("Justin M. Forbes") - Break out the Patches into individual files for dist-git ("Justin M. Forbes") - Break the Red Hat patch into individual commits (Jeremy Cline) - Adjust module filtering so CONFIG_DRM_DP_CEC can be set (Jeremy Cline) - Add a script to generate release tags and branches (Jeremy Cline) - Set CONFIG_VDPA for fedora ("Justin M. Forbes") - Provide defaults in ark-rebase-patches.sh (Jeremy Cline) - Default ark-rebase-patches.sh to not report issues (Jeremy Cline) Resolves: rhbz# Signed-off-by: Jeremy Cline --- 0001-add-Red-Hat-specific-taint-flags.patch | 83 +++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 0001-add-Red-Hat-specific-taint-flags.patch (limited to '0001-add-Red-Hat-specific-taint-flags.patch') diff --git a/0001-add-Red-Hat-specific-taint-flags.patch b/0001-add-Red-Hat-specific-taint-flags.patch new file mode 100644 index 000000000..21592f7dc --- /dev/null +++ b/0001-add-Red-Hat-specific-taint-flags.patch @@ -0,0 +1,83 @@ +From 404fea0d6f78c71d1b1f313ab98eb7b2645424cb Mon Sep 17 00:00:00 2001 +From: Eugene Syromiatnikov +Date: Thu, 14 Jun 2018 16:35:59 -0400 +Subject: [PATCH] add Red Hat-specific taint flags + +Message-id: <56f71e5f8cf63afd0cdb1c4550c625cc90d59a75.1528991395.git.esyr@redhat.com> +Patchwork-id: 8249 +O-Subject: [kernel team] [RHEL8 PATCH v4 1/5] kernel: add Red Hat-specific taint flags +Bugzilla: 1559877 +RH-Acked-by: Jiri Benc +RH-Acked-by: Jesper Dangaard Brouer + +Based on RHEL 7 commit "Backport RH specific TAINT flags" by Prarit +Bhargava. + +Upstream Status: RHEL only +Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1559877 +Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=16716594 +Signed-off-by: Eugene Syromiatnikov +Signed-off-by: Herton R. Krzesinski +--- + include/linux/kernel.h | 19 ++++++++++++++++++- + kernel/panic.c | 14 ++++++++++++++ + 2 files changed, 32 insertions(+), 1 deletion(-) + +diff --git a/include/linux/kernel.h b/include/linux/kernel.h +index 2cb1c4fea0c9..c041d4e950f4 100644 +--- a/include/linux/kernel.h ++++ b/include/linux/kernel.h +@@ -595,7 +595,24 @@ extern enum system_states { + #define TAINT_LIVEPATCH 15 + #define TAINT_AUX 16 + #define TAINT_RANDSTRUCT 17 +-#define TAINT_FLAGS_COUNT 18 ++/* Start of Red Hat-specific taint flags */ ++#define TAINT_18 18 ++#define TAINT_19 19 ++#define TAINT_20 20 ++#define TAINT_21 21 ++#define TAINT_22 22 ++#define TAINT_23 23 ++#define TAINT_24 24 ++#define TAINT_25 25 ++#define TAINT_26 26 ++#define TAINT_27 27 ++/* Bits 28 - 31 are reserved for Red Hat use only */ ++#define TAINT_RESERVED28 28 ++#define TAINT_RESERVED29 29 ++#define TAINT_RESERVED30 30 ++#define TAINT_RESERVED31 31 ++/* End of Red Hat-specific taint flags */ ++#define TAINT_FLAGS_COUNT 32 + + struct taint_flag { + char c_true; /* character printed when tainted */ +diff --git a/kernel/panic.c b/kernel/panic.c +index b69ee9e76cb2..02f9b2c36cc1 100644 +--- a/kernel/panic.c ++++ b/kernel/panic.c +@@ -376,6 +376,20 @@ const struct taint_flag taint_flags[TAINT_FLAGS_COUNT] = { + [ TAINT_LIVEPATCH ] = { 'K', ' ', true }, + [ TAINT_AUX ] = { 'X', ' ', true }, + [ TAINT_RANDSTRUCT ] = { 'T', ' ', true }, ++ [ TAINT_18 ] = { '?', '-', false }, ++ [ TAINT_19 ] = { '?', '-', false }, ++ [ TAINT_20 ] = { '?', '-', false }, ++ [ TAINT_21 ] = { '?', '-', false }, ++ [ TAINT_22 ] = { '?', '-', false }, ++ [ TAINT_23 ] = { '?', '-', false }, ++ [ TAINT_24 ] = { '?', '-', false }, ++ [ TAINT_25 ] = { '?', '-', false }, ++ [ TAINT_26 ] = { '?', '-', false }, ++ [ TAINT_27 ] = { '?', '-', false }, ++ [ TAINT_RESERVED28 ] = { '?', '-', false }, ++ [ TAINT_RESERVED29 ] = { '?', '-', false }, ++ [ TAINT_RESERVED30 ] = { '?', '-', false }, ++ [ TAINT_RESERVED31 ] = { '?', '-', false }, + }; + + /** +-- +2.26.0 + -- cgit