WSL2-Linux-Kernel/drivers/s390/char
Christian Borntraeger e35e1fadb4 [S390] sclp_tty/sclp_vt220: Fix scheduling while atomic
Under load the following bug message appeared while using sysrq-t:

BUG: scheduling while atomic: bash/3662/0x00000004
0000000000105b74 000000003ba17740 0000000000000002 0000000000000000
       000000003ba177e0 000000003ba17758 000000003ba17758 0000000000105bfe
       0000000000817ba8 000000003f2a5350 0000000000000000 0000000000000000
       000000003ba17740 000000000000000c 000000003ba17740 000000003ba177b0
       0000000000568630 0000000000105bfe 000000003ba17740 000000003ba17790
Call Trace:
([<0000000000105b74>] show_trace+0x13c/0x158)
 [<0000000000105c58>] show_stack+0xc8/0xfc
 [<0000000000105cbc>] dump_stack+0x30/0x40
 [<000000000012a0c8>] __schedule_bug+0x84/0x94
 [<000000000056234e>] schedule+0x5ea/0x970
 [<0000000000477cd2>] __sclp_vt220_write+0x1f6/0x3ec
 [<0000000000477f00>] sclp_vt220_con_write+0x38/0x48
 [<0000000000130b4a>] __call_console_drivers+0xbe/0xd8
 [<0000000000130bf0>] _call_console_drivers+0x8c/0xd0
 [<0000000000130eea>] release_console_sem+0x1a6/0x2fc
 [<0000000000131786>] vprintk+0x262/0x480
 [<00000000001319fa>] printk+0x56/0x68
 [<0000000000125aaa>] print_cfs_rq+0x45e/0x4a4
 [<000000000012614e>] sched_debug_show+0x65e/0xee8
 [<000000000012a8fc>] show_state_filter+0x1cc/0x1f0
 [<000000000044d39c>] sysrq_handle_showstate+0x2c/0x3c
 [<000000000044d1fe>] __handle_sysrq+0xae/0x18c
 [<00000000002001f2>] write_sysrq_trigger+0x8a/0x90
 [<00000000001f7862>] proc_reg_write+0x9a/0xc4
 [<00000000001a83d4>] vfs_write+0xb8/0x174
 [<00000000001a8b88>] sys_write+0x58/0x8c
 [<0000000000112e7c>] sysc_noemu+0x10/0x16
 [<0000020000116f68>] 0x20000116f68

The problem seems to be, that with a full console buffer, release_console_sem
disables interrupts with spin_lock_irqsave and then calls the console function
without enabling interrupts. __sclp_vt220_write checks for in_interrupt, to
decide if it can schedule. It should check for in_atomic instead.

The same is true for sclp_tty.c.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2008-02-05 16:51:00 +01:00
..
Kconfig [S390] sclp: kill unused SCLP config option. 2007-07-27 12:29:18 +02:00
Makefile [S390] sclp: convert channel path configure code to use sync interface. 2008-01-26 14:11:10 +01:00
con3215.c [S390] 3215: Handle special console device. 2007-10-12 16:13:11 +02:00
con3270.c [S390] Get rid of a bunch of sparse warnings again. 2007-10-12 16:13:06 +02:00
ctrlchar.c [S390] workqueue fixes. 2006-12-08 15:53:52 +01:00
ctrlchar.h
defkeymap.c unicode diacritics support 2007-10-17 08:42:52 -07:00
defkeymap.map
fs3270.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
keyboard.c unicode diacritics support 2007-10-17 08:42:52 -07:00
keyboard.h unicode diacritics support 2007-10-17 08:42:52 -07:00
monreader.c [S390] monreader inlining cleanup. 2007-05-10 15:45:51 +02:00
monwriter.c [S390] drivers/s390: Add missing "space" 2008-01-26 14:11:19 +01:00
raw3270.c [S390] use LIST_HEAD instead of LIST_HEAD_INIT 2008-01-26 14:11:21 +01:00
raw3270.h [S390] Fix sparse warnings. 2006-07-12 16:41:55 +02:00
sclp.c [S390] Get rid of a bunch of sparse warnings again. 2007-10-12 16:13:06 +02:00
sclp.h [S390] Standby cpu activation/deactivation. 2008-01-26 14:11:09 +01:00
sclp_cmd.c [S390] Get rid of additional_cpus kernel parameter. 2008-01-26 14:11:15 +01:00
sclp_con.c [S390] Avoid excessive inlining. 2007-02-05 21:18:53 +01:00
sclp_config.c cpu-hotplug: replace lock_cpu_hotplug() with get_online_cpus() 2008-01-25 21:08:02 +01:00
sclp_cpi.c [S390] sclp: sysfs interface for SCLP cpi 2008-01-26 14:11:08 +01:00
sclp_cpi_sys.c [S390] sclp: sysfs interface for SCLP cpi 2008-01-26 14:11:08 +01:00
sclp_cpi_sys.h [S390] sclp: sysfs interface for SCLP cpi 2008-01-26 14:11:08 +01:00
sclp_quiesce.c [S390] sclp: fix coding style. 2007-04-27 16:01:45 +02:00
sclp_rw.c [S390] drivers/s390/: Spelling fixes 2008-01-26 14:11:26 +01:00
sclp_rw.h
sclp_sdias.c [S390] Avoid sparse warnings. 2007-05-10 15:45:52 +02:00
sclp_tty.c [S390] sclp_tty/sclp_vt220: Fix scheduling while atomic 2008-02-05 16:51:00 +01:00
sclp_tty.h
sclp_vt220.c [S390] sclp_tty/sclp_vt220: Fix scheduling while atomic 2008-02-05 16:51:00 +01:00
tape.h [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
tape_34xx.c Fixup rq_for_each_segment() indentation 2007-10-10 09:25:56 +02:00
tape_3590.c [S390] drivers/s390/: Spelling fixes 2008-01-26 14:11:26 +01:00
tape_3590.h [S390] tape: New read configuration data. 2007-05-04 18:48:26 +02:00
tape_block.c blk_end_request: changing s390 (take 4) 2008-01-28 10:36:54 +01:00
tape_char.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
tape_class.c [S390] struct class_device -> struct device conversion. 2007-10-22 12:52:48 +02:00
tape_class.h [S390] struct class_device -> struct device conversion. 2007-10-22 12:52:48 +02:00
tape_core.c [S390] use LIST_HEAD instead of LIST_HEAD_INIT 2008-01-26 14:11:21 +01:00
tape_proc.c [S390] constify function pointer tables. 2008-01-26 14:11:32 +01:00
tape_std.c [S390] tape: Compression overwrites crypto setting 2007-03-05 23:35:47 +01:00
tape_std.h [PATCH] s390: tape 3590 changes 2006-04-28 08:33:48 -07:00
tty3270.c [S390] Get rid of a bunch of sparse warnings again. 2007-10-12 16:13:06 +02:00
tty3270.h [S390] Get rid of a bunch of sparse warnings again. 2007-10-12 16:13:06 +02:00
vmcp.c [S390] vmcp cleanup 2007-07-17 13:36:19 +02:00
vmcp.h [S390] vmcp cleanup 2007-07-17 13:36:19 +02:00
vmlogrdr.c [S390] drivers/s390: Add missing "space" 2008-01-26 14:11:19 +01:00
vmur.c [S390] constify function pointer tables. 2008-01-26 14:11:32 +01:00
vmur.h [S390] vmur: fix reference counting for vmur device structure 2007-08-22 13:51:48 +02:00
vmwatchdog.c [S390] vmwatchdog: fix broken inline assembly. 2007-10-12 16:13:10 +02:00
zcore.c [S390] constify function pointer tables. 2008-01-26 14:11:32 +01:00