diff options
-rw-r--r-- | Makefile.rhelver | 2 | ||||
-rw-r--r-- | Patchlist.changelog | 12 | ||||
-rwxr-xr-x | kernel.spec | 18 | ||||
-rw-r--r-- | patch-5.18-redhat.patch | 158 | ||||
-rw-r--r-- | sources | 6 |
5 files changed, 39 insertions, 157 deletions
diff --git a/Makefile.rhelver b/Makefile.rhelver index 5741dcd4c..2269aac0a 100644 --- a/Makefile.rhelver +++ b/Makefile.rhelver @@ -12,7 +12,7 @@ RHEL_MINOR = 99 # # Use this spot to avoid future merge conflicts. # Do not trim this comment. -RHEL_RELEASE = 34 +RHEL_RELEASE = 35 # # Early y+1 numbering diff --git a/Patchlist.changelog b/Patchlist.changelog index e6953d9a0..c0dcf0347 100644 --- a/Patchlist.changelog +++ b/Patchlist.changelog @@ -13,6 +13,18 @@ "https://gitlab.com/cki-project/kernel-ark/-/commit"/8e648aae90c1d739b5ead43fb84c2cae550a8344 8e648aae90c1d739b5ead43fb84c2cae550a8344 Fix up rng merge +"https://gitlab.com/cki-project/kernel-ark/-/commit"/525690fb03d8fafee6dab4ea36acc3abe7827b23 + 525690fb03d8fafee6dab4ea36acc3abe7827b23 ARK: Remove code marking drivers as tech preview + +"https://gitlab.com/cki-project/kernel-ark/-/commit"/b8af0b001f1980fe782c005faef2dcdf41524b55 + b8af0b001f1980fe782c005faef2dcdf41524b55 ARK: Remove code marking devices deprecated + +"https://gitlab.com/cki-project/kernel-ark/-/commit"/b91a1c85b25395a9fff7de0518b44ccf6a63ce20 + b91a1c85b25395a9fff7de0518b44ccf6a63ce20 ARK: Remove code marking devices unmaintained + +"https://gitlab.com/cki-project/kernel-ark/-/commit"/12c87f7d49574b85f86f422b2e1abc4e79f38f48 + 12c87f7d49574b85f86f422b2e1abc4e79f38f48 rh_message: Fix function name + "https://gitlab.com/cki-project/kernel-ark/-/commit"/867208fb125b1948587e9f9f08c53d3a07e1db56 867208fb125b1948587e9f9f08c53d3a07e1db56 [redhat] virtio: enable virtio-mem on x86-64 as tech-preview diff --git a/kernel.spec b/kernel.spec index 46102c17a..60e7fd18e 100755 --- a/kernel.spec +++ b/kernel.spec @@ -87,7 +87,7 @@ Summary: The Linux kernel # the --with-release option overrides this setting.) %define debugbuildsenabled 0 -%global distro_build 0.rc4.20220426gitd615b5416f8a1af.34 +%global distro_build 0.rc4.20220427git46cf2c613f4b10e.35 %if 0%{?fedora} %define secure_boot_arch x86_64 @@ -131,13 +131,13 @@ Summary: The Linux kernel %define rpmversion 5.18.0 %define patchversion 5.18 -%define pkgrelease 0.rc4.20220426gitd615b5416f8a1af.34 +%define pkgrelease 0.rc4.20220427git46cf2c613f4b10e.35 # This is needed to do merge window version magic %define patchlevel 18 # allow pkg_release to have configurable %%{?dist} tag -%define specrelease 0.rc4.20220426gitd615b5416f8a1af.34%{?buildid}%{?dist} +%define specrelease 0.rc4.20220427git46cf2c613f4b10e.35%{?buildid}%{?dist} %define pkg_release %{specrelease} @@ -692,7 +692,7 @@ BuildRequires: lld # exact git commit you can run # # xzcat -qq ${TARBALL} | git get-tar-commit-id -Source0: linux-5.18-rc4-6-gd615b5416f8a1af.tar.xz +Source0: linux-5.18-rc4-50-g46cf2c613f4b10e.tar.xz Source1: Makefile.rhelver @@ -1384,8 +1384,8 @@ ApplyOptionalPatch() fi } -%setup -q -n kernel-5.18-rc4-6-gd615b5416f8a1af -c -mv linux-5.18-rc4-6-gd615b5416f8a1af linux-%{KVERREL} +%setup -q -n kernel-5.18-rc4-50-g46cf2c613f4b10e -c +mv linux-5.18-rc4-50-g46cf2c613f4b10e linux-%{KVERREL} cd linux-%{KVERREL} cp -a %{SOURCE1} . @@ -3027,6 +3027,12 @@ fi # # %changelog +* Wed Apr 27 2022 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.18.0-0.rc4.46cf2c613f4b10e.34] +- ARK: Remove code marking drivers as tech preview (Peter Georg) +- ARK: Remove code marking devices deprecated (Peter Georg) +- ARK: Remove code marking devices unmaintained (Peter Georg) +- rh_message: Fix function name (Peter Georg) [2019377] + * Tue Apr 26 2022 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.18.0-0.rc4.d615b5416f8a1af.33] - Turn on CONFIG_RANDOM_TRUST_BOOTLOADER (Justin M. Forbes) - redhat/configs: aarch64: enable CPU_FREQ_GOV_SCHEDUTIL (Mark Salter) diff --git a/patch-5.18-redhat.patch b/patch-5.18-redhat.patch index 8a0b12815..7ec934b81 100644 --- a/patch-5.18-redhat.patch +++ b/patch-5.18-redhat.patch @@ -9,7 +9,7 @@ arch/s390/kernel/ipl.c | 5 + arch/s390/kernel/setup.c | 4 + arch/x86/kernel/cpu/common.c | 1 + - arch/x86/kernel/setup.c | 70 ++- + arch/x86/kernel/setup.c | 68 ++- crypto/rng.c | 73 ++- drivers/acpi/apei/hest.c | 8 + drivers/acpi/irq.c | 17 +- @@ -27,9 +27,7 @@ drivers/iommu/iommu.c | 22 + drivers/message/fusion/mptsas.c | 10 + drivers/message/fusion/mptspi.c | 11 + - drivers/net/ethernet/intel/e1000/e1000_main.c | 2 + - drivers/net/team/team.c | 2 + - drivers/net/wireguard/main.c | 7 + + drivers/net/wireguard/main.c | 6 + drivers/nvme/host/core.c | 22 +- drivers/nvme/host/multipath.c | 19 +- drivers/nvme/host/nvme.h | 4 + @@ -44,10 +42,7 @@ drivers/scsi/qla2xxx/qla_os.c | 6 + drivers/scsi/qla4xxx/ql4_os.c | 2 + drivers/usb/core/hub.c | 7 + - drivers/virtio/virtio_mem.c | 13 + fs/afs/main.c | 3 + - fs/ext4/super.c | 5 + - fs/xfs/xfs_super.c | 5 + include/linux/efi.h | 22 +- include/linux/kernel.h | 21 + include/linux/lsm_hook_defs.h | 2 + @@ -67,7 +62,6 @@ kernel/panic.c | 14 + kernel/rh_messages.c | 209 +++++++++ kernel/sysctl.c | 5 + - mm/cma.c | 10 + scripts/mod/modpost.c | 8 + scripts/tags.sh | 2 + security/integrity/platform_certs/load_uefi.c | 6 +- @@ -75,7 +69,7 @@ security/lockdown/lockdown.c | 1 + security/security.c | 6 + tools/power/x86/intel-speed-select/Makefile | 2 +- - 77 files changed, 1764 insertions(+), 189 deletions(-) + 71 files changed, 1724 insertions(+), 189 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 3f1cc5e317ed..fbc0870dd787 100644 @@ -273,7 +267,7 @@ index e342ae4db3c4..42e1b922fbfd 100644 setup_force_cpu_cap(X86_FEATURE_CPUID); cpu_parse_early_param(); diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c -index c95b9ac5a457..560db0f01260 100644 +index c95b9ac5a457..749d5305be79 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -20,6 +20,7 @@ @@ -292,7 +286,7 @@ index c95b9ac5a457..560db0f01260 100644 /* * max_low_pfn_mapped: highest directly mapped pfn < 4 GB -@@ -737,6 +739,51 @@ static void __init early_reserve_memory(void) +@@ -737,6 +739,49 @@ static void __init early_reserve_memory(void) trim_snb_memory(); } @@ -323,8 +317,6 @@ index c95b9ac5a457..560db0f01260 100644 + pr_crit("Detected processor %s %s\n", + boot_cpu_data.x86_vendor_id, + boot_cpu_data.x86_model_id); -+ mark_hardware_unmaintained("x86 processor", "%s %s", boot_cpu_data.x86_vendor_id, -+ boot_cpu_data.x86_model_id); + break; + } + @@ -344,7 +336,7 @@ index c95b9ac5a457..560db0f01260 100644 /* * Dump out kernel offset information on panic. */ -@@ -946,6 +993,13 @@ void __init setup_arch(char **cmdline_p) +@@ -946,6 +991,13 @@ void __init setup_arch(char **cmdline_p) if (efi_enabled(EFI_BOOT)) efi_init(); @@ -358,7 +350,7 @@ index c95b9ac5a457..560db0f01260 100644 dmi_setup(); /* -@@ -1115,19 +1169,7 @@ void __init setup_arch(char **cmdline_p) +@@ -1115,19 +1167,7 @@ void __init setup_arch(char **cmdline_p) /* Allocate bigger log buffer */ setup_log_buf(1); @@ -379,7 +371,7 @@ index c95b9ac5a457..560db0f01260 100644 reserve_initrd(); -@@ -1240,6 +1282,8 @@ void __init setup_arch(char **cmdline_p) +@@ -1240,6 +1280,8 @@ void __init setup_arch(char **cmdline_p) efi_apply_memmap_quirks(); #endif @@ -1466,34 +1458,8 @@ index 388675cc1765..8c7d0740efb6 100644 return 0; out_mptspi_probe: -diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c -index 3f5feb55cfba..9d8cb34845b3 100644 ---- a/drivers/net/ethernet/intel/e1000/e1000_main.c -+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c -@@ -933,6 +933,8 @@ static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent) - int bars, need_ioport; - bool disable_dev = false; - -+ pci_hw_unmaintained(e1000_pci_tbl, pdev); -+ - /* do not allocate ioport bars when not needed */ - need_ioport = e1000_is_need_ioport(pdev); - if (need_ioport) { -diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c -index b07dde6f0abf..abcb1cb9a11f 100644 ---- a/drivers/net/team/team.c -+++ b/drivers/net/team/team.c -@@ -3050,6 +3050,8 @@ static int __init team_module_init(void) - if (err) - goto err_nl_init; - -+ mark_driver_deprecated(DRV_NAME); -+ - return 0; - - err_nl_init: diff --git a/drivers/net/wireguard/main.c b/drivers/net/wireguard/main.c -index ee4da9ab8013..0f217997a764 100644 +index ee4da9ab8013..d395d11eadc4 100644 --- a/drivers/net/wireguard/main.c +++ b/drivers/net/wireguard/main.c @@ -12,6 +12,7 @@ @@ -1516,14 +1482,6 @@ index ee4da9ab8013..0f217997a764 100644 ret = wg_allowedips_slab_init(); if (ret < 0) goto err_allowedips; -@@ -48,6 +54,7 @@ static int __init wg_mod_init(void) - pr_info("WireGuard " WIREGUARD_VERSION " loaded. See www.wireguard.com for information.\n"); - pr_info("Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.\n"); - -+ mark_tech_preview("WireGuard", THIS_MODULE); - return 0; - - err_netlink: diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index e1846d04817f..9725d5f03eee 100644 --- a/drivers/nvme/host/core.c @@ -2069,30 +2027,6 @@ index 1460857026e0..7e1964891089 100644 /* Lock the device, then check to see if we were * disconnected while waiting for the lock to succeed. */ usb_lock_device(hdev); -diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c -index e7d6b679596d..e604370ed3c1 100644 ---- a/drivers/virtio/virtio_mem.c -+++ b/drivers/virtio/virtio_mem.c -@@ -2789,6 +2789,19 @@ static int virtio_mem_probe(struct virtio_device *vdev) - - /* trigger a config update to start processing the requested_size */ - if (!vm->in_kdump) { -+#ifdef CONFIG_RHEL_DIFFERENCES -+ static bool printed; -+ -+ /* -+ * virtio-mem, and especially its memory hot(un)plug -+ * functionality, is tech-preview. -+ */ -+ if (!printed) { -+ printed = true; -+ mark_tech_preview("virtio_mem", THIS_MODULE); -+ } -+#endif /* CONFIG_RHEL_DIFFERENCES */ -+ - atomic_set(&vm->config_changed, 1); - queue_work(system_freezable_wq, &vm->wq); - } diff --git a/fs/afs/main.c b/fs/afs/main.c index eae288c8d40a..8b8bf447cedc 100644 --- a/fs/afs/main.c @@ -2107,48 +2041,6 @@ index eae288c8d40a..8b8bf447cedc 100644 return ret; error_proc: -diff --git a/fs/ext4/super.c b/fs/ext4/super.c -index 1466fbdbc8e3..4b3569868a77 100644 ---- a/fs/ext4/super.c -+++ b/fs/ext4/super.c -@@ -4800,6 +4800,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb) - } - - if (sbi->s_mount_opt & EXT4_MOUNT_DAX_ALWAYS) { -+ static bool printed = false; - if (ext4_has_feature_inline_data(sb)) { - ext4_msg(sb, KERN_ERR, "Cannot use DAX on a filesystem" - " that may contain inline data"); -@@ -4810,6 +4811,10 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb) - "DAX unsupported by block device."); - goto failed_mount; - } -+ if (!printed) { -+ mark_tech_preview("ext4 direct access (dax)", NULL); -+ printed = true; -+ } - } - - if (ext4_has_feature_encrypt(sb) && es->s_encryption_level) { -diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c -index 54be9d64093e..20fe244067ec 100644 ---- a/fs/xfs/xfs_super.c -+++ b/fs/xfs/xfs_super.c -@@ -1603,9 +1603,14 @@ xfs_fs_fill_super( - sb->s_flags |= SB_I_VERSION; - - if (xfs_has_dax_always(mp)) { -+ static bool printed = false; - error = xfs_setup_dax_always(mp); - if (error) - goto out_filestream_unmount; -+ if (!printed) { -+ mark_tech_preview("xfs direct access (dax)", NULL); -+ printed = true; -+ } - } - - if (xfs_has_discard(mp)) { diff --git a/include/linux/efi.h b/include/linux/efi.h index ccd4d3f91c98..e64643e3e364 100644 --- a/include/linux/efi.h @@ -2218,7 +2110,7 @@ index ccd4d3f91c98..e64643e3e364 100644 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 a890428bcc1a..e9c48d147a23 100644 +index a890428bcc1a..e71813290f0b 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -508,4 +508,25 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { } @@ -2237,7 +2129,7 @@ index a890428bcc1a..e9c48d147a23 100644 +void mark_tech_preview(const char *msg, struct module *mod); +void mark_partner_supported(const char *msg, struct module *mod); +#else -+static inline void mark_hardware_unsupported(const char *driver_name, char *fmt, ...) { } ++static inline void mark_hardware_unmaintained(const char *driver_name, char *fmt, ...) { } +static inline void mark_driver_unmaintained(const char *driver_name) { } +static inline void mark_hardware_deprecated(const char *driver_name, char *fmt, ...) { } +static inline void mark_driver_deprecated(const char *driver_name) { } @@ -3290,34 +3182,6 @@ index 830aaf8ca08e..080bafbeabef 100644 *(int *)table->data = unpriv_enable; } -diff --git a/mm/cma.c b/mm/cma.c -index eaa4b5c920a2..27563a5fedcd 100644 ---- a/mm/cma.c -+++ b/mm/cma.c -@@ -125,6 +125,12 @@ static void __init cma_activate_area(struct cma *cma) - spin_lock_init(&cma->mem_head_lock); - #endif - -+#ifdef CONFIG_RHEL_DIFFERENCES -+ /* s390x and ppc64 has been using CMA already in RHEL 8 as default. */ -+ if (!IS_ENABLED(CONFIG_S390) && !IS_ENABLED(CONFIG_PPC64)) -+ mark_tech_preview("CMA", NULL); -+#endif /* CONFIG_RHEL_DIFFERENCES */ -+ - return; - - not_in_zone: -@@ -434,6 +440,10 @@ struct page *cma_alloc(struct cma *cma, unsigned long count, - if (!cma || !cma->count || !cma->bitmap) - goto out; - -+#ifdef CONFIG_RHEL_DIFFERENCES -+ pr_info_once("Initial CMA usage detected\n"); -+#endif /* CONFIG_RHEL_DIFFERENCES */ -+ - pr_debug("%s(cma %p, count %lu, align %d)\n", __func__, (void *)cma, - count, align); - diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index ed9d056d2108..8388e2a804d3 100644 --- a/scripts/mod/modpost.c @@ -1,3 +1,3 @@ -SHA512 (linux-5.18-rc4-6-gd615b5416f8a1af.tar.xz) = dea56ec7d3bb91fb52b9ca1ded84632a1582fe5963c8e392b4624c2042e9dbb0ad64b53838d851be1a9b7a6164085db831772b08354d37b747c3b094b7af9f2b -SHA512 (kernel-abi-stablelists-5.18.0-0.rc4.20220426gitd615b5416f8a1af.34.tar.bz2) = c8a0f2d45b78686b15519e0ee1dd4c82b747a9b0f723a3c5a2ebcd46dbbd5917c6afb0192934a2082f327fedfc31af8b408880f5b759997083272a70763302b2 -SHA512 (kernel-kabi-dw-5.18.0-0.rc4.20220426gitd615b5416f8a1af.34.tar.bz2) = 63ebf8fbfaf4b7cc3f21b9f7454796e658d0038c5edf4d9b677460bf2f923316d30b6f80b0c1422bc5745edcba71a383dc17fc6b88c846ad34899d2c3d0be187 +SHA512 (linux-5.18-rc4-50-g46cf2c613f4b10e.tar.xz) = 56037260203f3198d73fbad34a3a0b0a28393720ac216ed83467960c88c638db6d2c907bad63f655ab910c4001e21477cf626250881fd0bb6afd0abb32f2022d +SHA512 (kernel-abi-stablelists-5.18.0-0.rc4.20220427git46cf2c613f4b10e.35.tar.bz2) = e3a5a9aada0b04167a34dda8df566ff5d3e817d7e36787d298c4d75379f93a8c7ae5e3d2129d4bc0c47359979344d95a03edef91c2cc78d13bcf8a91acfa1528 +SHA512 (kernel-kabi-dw-5.18.0-0.rc4.20220427git46cf2c613f4b10e.35.tar.bz2) = a377aff8dbe5f55feeeb856278ac7bc860ef15b1c170cfe7103af9b7479c6bbdbf0bcc8e4ffbb26f75ffa0f7a4d8f1478cd2323554bd9a6e48885a990952a8c2 |