Patch "s390/boot: remove non-functioning image bootable check" has been added to the 6.3-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    s390/boot: remove non-functioning image bootable check

to the 6.3-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     s390-boot-remove-non-functioning-image-bootable-chec.patch
and it can be found in the queue-6.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b860e1cfc52791811685d0324cc1695363e9e9df
Author: Vasily Gorbik <gor@xxxxxxxxxxxxx>
Date:   Wed Feb 15 14:27:45 2023 +0100

    s390/boot: remove non-functioning image bootable check
    
    [ Upstream commit 53fcc7dbf17691d8eac382ee315970a75286dd4b ]
    
    check_image_bootable() has been introduced with commit 627c9b62058e
    ("s390/boot: block uncompressed vmlinux booting attempts") to make sure
    that users don't try to boot uncompressed vmlinux ELF image in qemu. It
    used to be possible quite some time ago. That commit prevented confusion
    with uncompressed vmlinux image starting to boot and even printing
    kernel messages until it crashed. Users might have tried to report the
    problem without realizing they are doing something which was not intended.
    Since commit f1d3c5323772 ("s390/boot: move sclp early buffer from fixed
    address in asm to C") check_image_bootable() doesn't function properly
    anymore, as well as booting uncompressed vmlinux image in qemu doesn't
    really produce any output and crashes. Moving forward it doesn't make
    sense to fix check_image_bootable() anymore, so simply remove it.
    
    Acked-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>
    Acked-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
    Signed-off-by: Vasily Gorbik <gor@xxxxxxxxxxxxx>
    Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
    Stable-dep-of: 81e847964985 ("s390/mm: fix direct map accounting")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c
index 11413f0baabcb..16ee3469f7446 100644
--- a/arch/s390/boot/startup.c
+++ b/arch/s390/boot/startup.c
@@ -29,7 +29,6 @@ unsigned long __bootdata_preserved(vmemmap_size);
 unsigned long __bootdata_preserved(MODULES_VADDR);
 unsigned long __bootdata_preserved(MODULES_END);
 unsigned long __bootdata(ident_map_size);
-int __bootdata(is_full_image) = 1;
 struct initrd_data __bootdata(initrd_data);
 
 u64 __bootdata_preserved(stfle_fac_list[16]);
diff --git a/arch/s390/include/asm/setup.h b/arch/s390/include/asm/setup.h
index 3a1f8825bc7d7..fc887e3e76f84 100644
--- a/arch/s390/include/asm/setup.h
+++ b/arch/s390/include/asm/setup.h
@@ -150,8 +150,6 @@ static inline unsigned long kaslr_offset(void)
 	return __kaslr_offset;
 }
 
-extern int is_full_image;
-
 struct initrd_data {
 	unsigned long start;
 	unsigned long size;
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c
index d26f02495636e..8225a4c1f2e28 100644
--- a/arch/s390/kernel/early.c
+++ b/arch/s390/kernel/early.c
@@ -34,8 +34,6 @@
 #include <asm/switch_to.h>
 #include "entry.h"
 
-int __bootdata(is_full_image);
-
 #define decompressor_handled_param(param)			\
 static int __init ignore_decompressor_param_##param(char *s)	\
 {								\
@@ -288,17 +286,6 @@ static void __init setup_boot_command_line(void)
 	strscpy(boot_command_line, early_command_line, COMMAND_LINE_SIZE);
 }
 
-static void __init check_image_bootable(void)
-{
-	if (is_full_image)
-		return;
-
-	sclp_early_printk("Linux kernel boot failure: An attempt to boot a vmlinux ELF image failed.\n");
-	sclp_early_printk("This image does not contain all parts necessary for starting up. Use\n");
-	sclp_early_printk("bzImage or arch/s390/boot/compressed/vmlinux instead.\n");
-	disabled_wait();
-}
-
 static void __init sort_amode31_extable(void)
 {
 	sort_extable(__start_amode31_ex_table, __stop_amode31_ex_table);
@@ -307,7 +294,6 @@ static void __init sort_amode31_extable(void)
 void __init startup_init(void)
 {
 	reset_tod_clock();
-	check_image_bootable();
 	time_early_init();
 	init_kernel_storage_key();
 	lockdep_off();



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux