BUG: soft lockup in kvm_vcpu_ioctl

12 views
Skip to first unread message

syzbot

unread,
Apr 28, 2021, 5:34:23 PM4/28/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 97a8651c Linux 4.19.189
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1092d093d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=82311d18bf81a023
dashboard link: https://syzkaller.appspot.com/bug?extid=a36047e10146d93e3a5a
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1105abcdd00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a36047...@syzkaller.appspotmail.com

ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
watchdog: BUG: soft lockup - CPU#1 stuck for 27s! [syz-executor.0:32719]
Modules linked in:
irq event stamp: 43839296
hardirqs last enabled at (43839295): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (43839296): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (822): [<ffffffff8672746f>] spin_unlock_bh include/linux/spinlock.h:374 [inline]
softirqs last enabled at (822): [<ffffffff8672746f>] peernet2id+0x8f/0xc0 net/core/net_namespace.c:266
softirqs last disabled at (820): [<ffffffff8672744f>] spin_lock_bh include/linux/spinlock.h:334 [inline]
softirqs last disabled at (820): [<ffffffff8672744f>] peernet2id+0x6f/0xc0 net/core/net_namespace.c:264
CPU: 1 PID: 32719 Comm: syz-executor.0 Not tainted 4.19.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:vcpu_enter_guest arch/x86/kvm/x86.c:7750 [inline]
RIP: 0010:vcpu_run arch/x86/kvm/x86.c:7899 [inline]
RIP: 0010:kvm_arch_vcpu_ioctl_run+0x32f2/0x6e30 arch/x86/kvm/x86.c:8099
Code: 89 48 c1 e8 03 42 80 3c 28 00 0f 85 41 2f 00 00 48 83 3d b8 27 e4 08 00 0f 84 d3 1d 00 00 e8 c5 03 55 00 fb 66 0f 1f 44 00 00 <bf> 01 00 00 00 e8 e4 0e 34 00 65 8b 1d 4d 84 f4 7e 31 ff 89 de e8
RSP: 0018:ffff8880aaa0fa10 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: ffff8880ab68e680 RBX: 0000000000000000 RCX: 1ffff110156d1de5
RDX: 0000000000000000 RSI: ffffffff810d5aab RDI: ffff8880ab68ef04
RBP: ffff8880aaa0fbb0 R08: ffffc900086c55d8 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000008
R13: dffffc0000000000 R14: ffff8880a01e136c R15: ffff8880a01e1340
FS: 00007ffaa1479700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000a6436000 CR4: 00000000001426e0
Call Trace:
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:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffaa1479188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008
R13: 00007ffdccda6d8f R14: 00007ffaa1479300 R15: 0000000000022000
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60


---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
May 1, 2021, 5:57:20 PM5/1/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 97a8651c Linux 4.19.189
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16116f15d00000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13864fa9d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1192c2a5d00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a36047...@syzkaller.appspotmail.com

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

Reply all
Reply to author
Forward
0 new messages