Patch "s390/traps: do not test MONITOR CALL without CONFIG_BUG" has been added to the 5.10-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/traps: do not test MONITOR CALL without CONFIG_BUG

to the 5.10-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-traps-do-not-test-monitor-call-without-config_b.patch
and it can be found in the queue-5.10 subdirectory.

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



commit c8d8127081a6b3552fcf9ceaeab3e73ee79bd675
Author: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
Date:   Fri Jul 2 15:54:55 2021 +0200

    s390/traps: do not test MONITOR CALL without CONFIG_BUG
    
    [ Upstream commit b8e9cc20b808e26329090c19ff80b7f5098e98ff ]
    
    tinyconfig fails to boot, because without CONFIG_BUG report_bug()
    always returns BUG_TRAP_TYPE_BUG, which causes mc 0,0 in
    test_monitor_call() to panic. Fix by skipping the test without
    CONFIG_BUG.
    
    Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
    Reviewed-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
    Signed-off-by: Vasily Gorbik <gor@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index 8d1e8a1a97df..16934fa19069 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -272,6 +272,8 @@ static void __init test_monitor_call(void)
 {
 	int val = 1;
 
+	if (!IS_ENABLED(CONFIG_BUG))
+		return;
 	asm volatile(
 		"	mc	0,0\n"
 		"0:	xgr	%0,%0\n"



[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