diff options
Diffstat (limited to 'patch-5.11.0-redhat.patch')
-rw-r--r-- | patch-5.11.0-redhat.patch | 47 |
1 files changed, 44 insertions, 3 deletions
diff --git a/patch-5.11.0-redhat.patch b/patch-5.11.0-redhat.patch index ef39ebe1c..bd79594db 100644 --- a/patch-5.11.0-redhat.patch +++ b/patch-5.11.0-redhat.patch @@ -46,7 +46,7 @@ drivers/scsi/qla4xxx/ql4_os.c | 2 + drivers/scsi/smartpqi/smartpqi_init.c | 16 + drivers/usb/core/hub.c | 7 + - include/linux/efi.h | 15 + + include/linux/efi.h | 22 +- include/linux/kernel.h | 34 +- include/linux/lsm_hook_defs.h | 2 + include/linux/lsm_hooks.h | 6 + @@ -58,18 +58,20 @@ kernel/Makefile | 2 + kernel/bpf/syscall.c | 27 +- kernel/crash_core.c | 28 +- + kernel/irq/manage.c | 1 + kernel/module.c | 2 + kernel/module_signing.c | 9 +- kernel/panic.c | 14 + kernel/rh_taint.c | 93 ++++++ mm/kmemleak.c | 5 + + scripts/gcc-plugins/Makefile | 4 +- scripts/mod/modpost.c | 8 + scripts/tags.sh | 2 + security/integrity/platform_certs/load_uefi.c | 6 +- security/lockdown/Kconfig | 13 + security/lockdown/lockdown.c | 1 + security/security.c | 6 + - 71 files changed, 1582 insertions(+), 183 deletions(-) + 73 files changed, 1585 insertions(+), 192 deletions(-) diff --git a/Documentation/admin-guide/kdump/kdump.rst b/Documentation/admin-guide/kdump/kdump.rst index 75a9dd98e76e..3ff3291551f9 100644 @@ -2142,7 +2144,7 @@ index 7f71218cc1e5..283fc0f41cd2 100644 * disconnected while waiting for the lock to succeed. */ usb_lock_device(hdev); diff --git a/include/linux/efi.h b/include/linux/efi.h -index 763b816ba19c..03cb4259200d 100644 +index 763b816ba19c..4c55e3aa7e95 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -43,6 +43,8 @@ @@ -2195,6 +2197,20 @@ index 763b816ba19c..03cb4259200d 100644 /* * Variable Attributes +@@ -1081,13 +1096,6 @@ static inline bool efi_runtime_disabled(void) { return true; } + extern void efi_call_virt_check_flags(unsigned long flags, const char *call); + extern unsigned long efi_call_virt_save_flags(void); + +-enum efi_secureboot_mode { +- efi_secureboot_mode_unset, +- efi_secureboot_mode_unknown, +- efi_secureboot_mode_disabled, +- efi_secureboot_mode_enabled, +-}; +- + static inline + enum efi_secureboot_mode efi_get_secureboot_mode(efi_get_variable_t *get_var) + { diff --git a/include/linux/kernel.h b/include/linux/kernel.h index f7902d8c1048..8d612af767c4 100644 --- a/include/linux/kernel.h @@ -2775,6 +2791,15 @@ index 825284baaf46..0b2b3f510b16 100644 /* * if the commandline contains a ':', then that's the extended * syntax -- if not, it must be the classic syntax +diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c +index ab8567f32501..dec3f73e8db9 100644 +--- a/kernel/irq/manage.c ++++ b/kernel/irq/manage.c +@@ -2859,3 +2859,4 @@ bool irq_check_status_bit(unsigned int irq, unsigned int bitmask) + rcu_read_unlock(); + return res; + } ++EXPORT_SYMBOL_GPL(irq_check_status_bit); diff --git a/kernel/module.c b/kernel/module.c index 4bf30e4b3eaa..b6b813ef93db 100644 --- a/kernel/module.c @@ -2956,6 +2981,22 @@ index c0014d3b91c1..c00e9820412a 100644 kmemleak_initialized = 1; debugfs_create_file("kmemleak", 0644, NULL, NULL, &kmemleak_fops); +diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile +index d66949bfeba4..b5487cce69e8 100644 +--- a/scripts/gcc-plugins/Makefile ++++ b/scripts/gcc-plugins/Makefile +@@ -22,9 +22,9 @@ always-y += $(GCC_PLUGIN) + GCC_PLUGINS_DIR = $(shell $(CC) -print-file-name=plugin) + + plugin_cxxflags = -Wp,-MMD,$(depfile) $(KBUILD_HOSTCXXFLAGS) -fPIC \ +- -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++98 \ ++ -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++11 \ + -fno-rtti -fno-exceptions -fasynchronous-unwind-tables \ +- -ggdb -Wno-narrowing -Wno-unused-variable -Wno-c++11-compat \ ++ -ggdb -Wno-narrowing -Wno-unused-variable \ + -Wno-format-diag + + plugin_ldflags = -shared diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index d6c81657d695..c70e5904b7bc 100644 --- a/scripts/mod/modpost.c |