syzbot


BUG: soft lockup in kvm_vcpu_ioctl

Status: upstream: reported C repro on 2021/04/28 21:34
Reported-by: syzbot+a36047e10146d93e3a5a@syzkaller.appspotmail.com
First crash: 1313d, last: 1310d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in kvm_vcpu_ioctl 1 233d 233d 0/2 auto-obsoleted due to no activity on 2024/07/12 20:15
upstream INFO: rcu detected stall in kvm_vcpu_ioctl (2) kvm 1 116d 116d 0/28 auto-obsoleted due to no activity on 2024/11/06 13:35
upstream INFO: rcu detected stall in kvm_vcpu_ioctl mm C error unreliable 251 1097d 2274d 0/28 closed as invalid on 2022/02/08 10:48
linux-4.19 INFO: rcu detected stall in kvm_vcpu_ioctl C error 46 1132d 1788d 0/1 upstream: reported C repro on 2020/01/10 19:56

Sample crash report:
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
watchdog: BUG: soft lockup - CPU#1 stuck for 50s! [syz-executor537:13526]
Modules linked in:
irq event stamp: 52540824
hardirqs last  enabled at (52540823): [<ffffffff88170cc8>] preempt_schedule_irq+0x88/0x140 kernel/sched/core.c:3743
hardirqs last disabled at (52540824): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (1970): [<ffffffff8672746f>] spin_unlock_bh include/linux/spinlock.h:374 [inline]
softirqs last  enabled at (1970): [<ffffffff8672746f>] peernet2id+0x8f/0xc0 net/core/net_namespace.c:266
softirqs last disabled at (1968): [<ffffffff8672744f>] spin_lock_bh include/linux/spinlock.h:334 [inline]
softirqs last disabled at (1968): [<ffffffff8672744f>] peernet2id+0x6f/0xc0 net/core/net_namespace.c:264
CPU: 1 PID: 13526 Comm: syz-executor537 Not tainted 4.19.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:preempt_schedule_irq+0xa6/0x140 kernel/sched/core.c:3744
Code: 00 00 e8 2d 5e 2a f9 e8 08 7a 50 f9 4c 89 e8 48 c1 e8 03 80 3c 18 00 75 69 48 83 3d 7b 75 da 01 00 74 5b fb 66 0f 1f 44 00 00 <bf> 01 00 00 00 e8 40 d1 ff ff 48 c7 c0 50 82 f1 89 48 c1 e8 03 80
RSP: 0018:ffff88809e6478e0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e304b RBX: dffffc0000000000 RCX: 1ffff1101438bda5
RDX: 0000000000000000 RSI: ffff8880a1c5ed30 RDI: ffff8880a1c5ed04
RBP: ffffed101438bc90 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a1c5e480
R13: ffffffff89f18258 R14: 0000000000000000 R15: 0000000000000000
FS:  000000000179e3c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000af878000 CR4: 00000000001426e0
Call Trace:
 retint_kernel+0x1b/0x2d
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:lock_acquire+0x1ec/0x3c0 kernel/locking/lockdep.c:3911
Code: 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 b7 01 00 00 48 83 3d 69 4e a6 08 00 0f 84 2a 01 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b
RSP: 0018:ffff88809e6479b8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff02
RAX: 1ffffffff13e3049 RBX: ffff8880a1c5e480 RCX: 9f6ad73e2028b048
RDX: dffffc0000000000 RSI: 000000005e0d09fb RDI: 0000000000000282
RBP: ffffc90006033958 R08: 00000000c412325c R09: 0000000000000001
R10: ffff8880a1c5ed30 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
 rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
 srcu_read_lock include/linux/srcu.h:199 [inline]
 vcpu_run arch/x86/kvm/x86.c:7930 [inline]
 kvm_arch_vcpu_ioctl_run+0x1a82/0x6e30 arch/x86/kvm/x86.c:8099
 kvm_vcpu_ioctl+0x493/0xe10 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2822
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x450779
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 18 00 00 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 73 01 c3 48 c7 c1 c4 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcccdb87d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000450779
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcccdb881c
R13: 00007ffcccdb8850 R14: 00007ffcccdb8830 R15: 00000000000005e8
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8786 Comm: kworker/u4:5 Not tainted 4.19.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:rcu_is_watching+0x2/0xc0 kernel/rcu/tree.c:1021
Code: e9 24 f4 ff ff 48 8b bc 24 a8 00 00 00 e8 c6 b6 46 00 e9 f4 f3 ff ff 48 8b 7c 24 18 e8 d7 b7 46 00 e9 c8 f3 ff ff 66 90 55 53 <48> 83 ec 08 65 ff 05 93 73 b0 7e e8 3e 6b 25 02 48 c7 c3 80 2a 02
RSP: 0018:ffff8880aed77c98 EFLAGS: 00000293
RAX: ffff8880afbb0440 RBX: 0000000000000000 RCX: ffffffff87d7a66d
RDX: 0000000000000000 RSI: ffffffff87d7a961 RDI: 0000000000000001
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 00000000000000f2 R15: ffff8880a4461c00
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004bb120 CR3: 0000000098374000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rcu_read_unlock include/linux/rcupdate.h:677 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:423 [inline]
 batadv_nc_worker+0x936/0xd50 net/batman-adv/network-coding.c:730
 process_one_work+0x864/0x1570 kernel/workqueue.c:2152
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2295
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/01 21:56 linux-4.19.y 97a8651cadce 77e2b668 .config console log report syz C ci2-linux-4-19 BUG: soft lockup in kvm_vcpu_ioctl
2021/04/28 21:32 linux-4.19.y 97a8651cadce 77e2b668 .config console log report syz ci2-linux-4-19 BUG: soft lockup in kvm_vcpu_ioctl
* Struck through repros no longer work on HEAD.