diff options
author | Justin M. Forbes <jforbes@fedoraproject.org> | 2022-03-23 16:34:01 -0500 |
---|---|---|
committer | Justin M. Forbes <jforbes@fedoraproject.org> | 2022-03-23 16:34:01 -0500 |
commit | 6eb15e4d5d5c6d68a03bc9f42fd508e1e2523e55 (patch) | |
tree | f0571d2e055f26aa2c5a5701f779281987020bec /patch-5.17-redhat.patch | |
parent | ea07b7aad97f41bb4b451fc80bd3f102f0440053 (diff) | |
download | kernel-6eb15e4d5d5c6d68a03bc9f42fd508e1e2523e55.tar.gz kernel-6eb15e4d5d5c6d68a03bc9f42fd508e1e2523e55.tar.xz kernel-6eb15e4d5d5c6d68a03bc9f42fd508e1e2523e55.zip |
kernel-5.17-300
* Wed Mar 23 2022 Justin M. Forbes <jforbes@fedoraproject.org> [5.17-300]
- mm/sparsemem: Fix 'mem_section' will never be NULL gcc 12 warning (Waiman Long)
- Turn on RANDOM_TRUST_BOOTLOADER (Justin M. Forbes)
- Revert "PCI/MSI: Mask MSI-X vectors only on success" (Justin M. Forbes)
- Define SNAPSHOT correctly for VERSION_ON_UPSTREAM=0 (Justin M. Forbes)
- Config fixups after some RHEL specific patches were reverted (Justin M. Forbes)
- Basic Fedora Branch setup (Justin M. Forbes)
- Reset Makefile.rhelver for the 5.18 cycle (Justin M. Forbes)
Resolves: rhbz#
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to 'patch-5.17-redhat.patch')
-rw-r--r-- | patch-5.17-redhat.patch | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/patch-5.17-redhat.patch b/patch-5.17-redhat.patch index 894fa62e4..22a578b74 100644 --- a/patch-5.17-redhat.patch +++ b/patch-5.17-redhat.patch @@ -31,6 +31,7 @@ include/linux/efi.h | 22 ++-- include/linux/lsm_hook_defs.h | 2 + include/linux/lsm_hooks.h | 6 + + include/linux/mmzone.h | 4 +- include/linux/module.h | 1 + include/linux/random.h | 7 ++ include/linux/rmi.h | 1 + @@ -44,7 +45,7 @@ security/lockdown/Kconfig | 13 +++ security/lockdown/lockdown.c | 1 + security/security.c | 6 + - 46 files changed, 718 insertions(+), 196 deletions(-) + 47 files changed, 719 insertions(+), 199 deletions(-) diff --git a/Kconfig b/Kconfig index 745bc773f567..f57ff40109d7 100644 @@ -1593,6 +1594,23 @@ index 3bf5c658bc44..4701bc5ce2f5 100644 * Security hooks for perf events * * @perf_event_open: +diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h +index aed44e9b5d89..08517376c765 100644 +--- a/include/linux/mmzone.h ++++ b/include/linux/mmzone.h +@@ -1390,11 +1390,9 @@ static inline unsigned long *section_to_usemap(struct mem_section *ms) + static inline struct mem_section *__nr_to_section(unsigned long nr) + { + #ifdef CONFIG_SPARSEMEM_EXTREME +- if (!mem_section) ++ if (!*mem_section || !mem_section[SECTION_NR_TO_ROOT(nr)]) + return NULL; + #endif +- if (!mem_section[SECTION_NR_TO_ROOT(nr)]) +- return NULL; + return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; + } + extern size_t mem_section_usage_size(void); diff --git a/include/linux/module.h b/include/linux/module.h index 1e135fd5c076..6ec4d001c1e2 100644 --- a/include/linux/module.h |