Hello,
syzbot found the following crash on:
HEAD commit: e109a984 Linux 4.19.48
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=112178e1a00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=2d14dd88554f26bc
dashboard link:
https://syzkaller.appspot.com/bug?extid=ab7272c5aefe8fa76fc3
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
Unfortunately, I don't have any reproducer for this crash yet.
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+ab7272...@syzkaller.appspotmail.com
kvm: pic: non byte write
kvm: pic: non byte write
kvm: pic: non byte write
kvm: pic: non byte write
kvm: pic: non byte write
INFO: task syz-executor.0:18094 blocked for more than 140 seconds.
Not tainted 4.19.48 #20
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0 D28024 18094 7820 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2826 [inline]
__schedule+0x80d/0x1c70 kernel/sched/core.c:3474
schedule+0x92/0x1c0 kernel/sched/core.c:3518
__rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
rwsem_down_read_failed+0x21b/0x3c0 kernel/locking/rwsem-xadd.c:309
call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94
__down_read arch/x86/include/asm/rwsem.h:83 [inline]
down_read+0x49/0xb0 kernel/locking/rwsem.c:26
__do_page_fault+0xb1a/0xe90 arch/x86/mm/fault.c:1329
do_page_fault+0x71/0x57d arch/x86/mm/fault.c:1468
page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1181
RIP: 0033:0x4019f7
Code: 01 00 00 c1 01 00 00 c4 01 00 00 c8 01 00 00 ca 01 00 00 cb 01 00 00
cc 01 00 00 ce 01 00 00 cf 01 00 00 d2 01 00 00 d5 01 00 <00> d8 01 00 00
db 01 00 00 e1 01 00 00 e6 01 00 00 00 00 00 00 00
RSP: 002b:00007ffc322d0cc0 EFLAGS: 00010287
RAX: 0000001b2c728000 RBX: 000000005dfa0abe RCX: 0000001b2d720000
RDX: 0000001b2c728004 RSI: 000000000000116c RDI: ffffffff02f8b16b
RBP: 00000000000000b4 R08: 0000000002f8b16b R09: 0000000002f8b16f
R10: 00007ffc322d0e70 R11: 0000000000000246 R12: 000000000075bfa8
R13: 0000000080000000 R14: 00007efe7aa32008 R15: 0000000000000dd6
INFO: task syz-executor.0:18136 blocked for more than 140 seconds.
Not tainted 4.19.48 #20
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0 D27832 18136 7820 0x80000004
Call Trace:
context_switch kernel/sched/core.c:2826 [inline]
__schedule+0x80d/0x1c70 kernel/sched/core.c:3474
schedule+0x92/0x1c0 kernel/sched/core.c:3518
__rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
rwsem_down_read_failed+0x21b/0x3c0 kernel/locking/rwsem-xadd.c:309
call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94
__down_read arch/x86/include/asm/rwsem.h:83 [inline]
down_read+0x49/0xb0 kernel/locking/rwsem.c:26
exit_mm kernel/exit.c:512 [inline]
do_exit+0x45b/0x2fa0 kernel/exit.c:863
do_group_exit+0x135/0x370 kernel/exit.c:979
get_signal+0x399/0x1d50 kernel/signal.c:2572
do_signal+0x95/0x1960 arch/x86/kernel/signal.c:821
exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:163
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459279
Code: Bad RIP value.
RSP: 002b:00007efe78a30cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000075bf28 RCX: 0000000000459279
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000075bf28
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000075bf2c
R13: 00007ffc322d0d1f R14: 00007efe78a319c0 R15: 000000000075bf2c
Showing all locks held in the system:
1 lock held by khungtaskd/1020:
#0: 00000000309622d7 (rcu_read_lock){....}, at:
debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4435
1 lock held by rsyslogd/7655:
#0: 00000000521e2fb6 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110
fs/file.c:767
2 locks held by getty/7778:
#0: 000000009578350e (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
#1: 00000000293559cc (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7779:
#0: 000000000f0f2d41 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
#1: 00000000ed234457 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7780:
#0: 00000000e8662b3c (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
#1: 000000001c5f7bfc (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7781:
#0: 0000000087d9d9fc (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
#1: 000000005d9d282b (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7782:
#0: 000000004331d183 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
#1: 00000000aedb0347 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7783:
#0: 00000000d337f012 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
#1: 0000000052fa1a3c (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7784:
#0: 000000000d601ad4 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
#1: 0000000056fb849b (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
1 lock held by syz-executor.0/18094:
#0: 000000008f35c3bc (&mm->mmap_sem){++++}, at:
__do_page_fault+0xb1a/0xe90 arch/x86/mm/fault.c:1329
1 lock held by syz-executor.0/18136:
#0: 000000008f35c3bc (&mm->mmap_sem){++++}, at: exit_mm kernel/exit.c:512
[inline]
#0: 000000008f35c3bc (&mm->mmap_sem){++++}, at: do_exit+0x45b/0x2fa0
kernel/exit.c:863
1 lock held by syz-executor.0/18150:
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 1020 Comm: khungtaskd Not tainted 4.19.48 #20
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1b0/0x1f8 lib/nmi_backtrace.c:62
arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x9df/0xee0 kernel/hung_task.c:287
kthread+0x354/0x420 kernel/kthread.c:246
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 18150 Comm: syz-executor.0 Not tainted 4.19.48 #20
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:__mutex_lock+0xad/0x1300 kernel/locking/mutex.c:1071
Code: 00 ff ff ff b0 50 ee 86 c7 00 f1 f1 f1 f1 c7 40 04 00 00 00 f2 c7 40
08 00 00 00 f2 c7 40 0c f2 f2 00 00 c7 40 10 00 00 00 f3 <c7> 40 14 f3 f3
f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0
RSP: 0018:ffff888056847910 EFLAGS: 00000286
RAX: ffffed100ad08f2e RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 000000000000038c RDI: ffffffff874b44a0
RBP: ffff888056847a80 R08: ffffffff818141c5 R09: ffffed100ff4ae17
R10: ffff888056847aa0 R11: ffff88807fa570b7 R12: 0000000000000000
R13: ffff88807fa570b0 R14: 0000000000000000 R15: ffffffff818141c5
FS: 00007efe78a31700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 00000000a42e1000 CR4: 00000000001406e0
Call Trace:
mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087
perf_mmap+0x735/0x1730 kernel/events/core.c:5655
call_mmap include/linux/fs.h:1825 [inline]
mmap_region+0xc2f/0x1760 mm/mmap.c:1763
do_mmap+0x8e2/0x1080 mm/mmap.c:1536
do_mmap_pgoff include/linux/mm.h:2319 [inline]
vm_mmap_pgoff+0x1c5/0x230 mm/util.c:357
ksys_mmap_pgoff+0x4aa/0x630 mm/mmap.c:1586
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline]
__x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459279
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7
48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff
ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007efe78a30c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000459279
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000020fff000
RBP: 000000000075bf20 R08: 0000000000000003 R09: 0000000000000000
R10: 0002000000001011 R11: 0000000000000246 R12: 00007efe78a316d4
R13: 00000000004c55bd R14: 00000000004d9990 R15: 00000000ffffffff
---
This bug is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.