------------[ cut here ]------------ cpu_t != t WARNING: arch/x86/kernel/cpu/mce/core.c:1770 at mce_timer_fn+0x289/0x2e0 arch/x86/kernel/cpu/mce/core.c:1770, CPU#0: syz.4.1045/10037 Modules linked in: CPU: 0 UID: 0 PID: 10037 Comm: syz.4.1045 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:mce_timer_fn+0x289/0x2e0 arch/x86/kernel/cpu/mce/core.c:1770 Code: 58 00 4d 01 e4 4d 39 ec 4d 0f 47 e5 31 ff 4c 89 e6 e8 0b c9 58 00 4d 85 e4 0f 84 20 ff ff ff e9 f7 fe ff ff e8 58 ce 58 00 90 <0f> 0b 90 e9 cf fd ff ff 4c 89 f6 48 c7 c7 60 cd bf 8e e8 70 df 85 RSP: 0018:ffffc90000007c20 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88806a423440 RCX: 0000000000000101 RDX: ffff88802b39cb00 RSI: ffffffff81b1d018 RDI: ffffffff8e670920 RBP: ffff88806a523440 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000101 R14: 1ffff92000000f8d R15: ffffffff81b1cd90 FS: 0000555590e7e500(0000) GS:ffff8880d5bd4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000948 CR3: 0000000054176000 CR4: 0000000000352ef0 Call Trace: call_timer_fn+0x198/0x5f0 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1799 [inline] __run_timers+0x757/0xb00 kernel/time/timer.c:2374 __run_timer_base kernel/time/timer.c:2386 [inline] __run_timer_base kernel/time/timer.c:2378 [inline] run_timer_base+0x114/0x190 kernel/time/timer.c:2395 run_timer_softirq+0x10/0x50 kernel/time/timer.c:2403 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x194/0x210 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:preempt_schedule_irq+0x49/0x90 kernel/sched/core.c:7561 Code: 00 00 00 fc ff df 48 89 eb 48 c1 eb 03 48 01 d3 f6 c4 02 75 47 bf 01 00 00 00 e8 42 c1 15 f6 e8 ad e8 52 f6 fb bf 01 00 00 00 b2 91 ff ff 9c 58 fa f6 c4 02 75 1e bf 01 00 00 00 e8 30 61 15 RSP: 0018:ffffc900044ef968 EFLAGS: 00000202 RAX: 0000000000001325 RBX: ffffed1005673960 RCX: 0000000000000040 RDX: 0000000000000001 RSI: ffffffff8e3a92ac RDI: 0000000000000001 RBP: ffff88802b39cb00 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 irqentry_exit_to_kernel_mode_preempt include/linux/irq-entry-common.h:468 [inline] irqentry_exit_to_kernel_mode include/linux/irq-entry-common.h:539 [inline] irqentry_exit+0x205/0xa10 kernel/entry/common.c:167 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:679 RIP: 0010:lockdep_unregister_key+0x197/0x2b0 kernel/locking/lockdep.c:6634 Code: 48 c7 c7 4c f3 49 8e e8 17 3f d9 09 65 ff 0d 38 6c 9f 12 9c 58 f6 c4 02 0f 85 9f 00 00 00 41 f7 c4 00 02 00 00 74 01 fb 84 db <75> 51 5b 5d 41 5c 41 5d e9 1c c8 09 00 9c 58 f6 c4 02 0f 84 ad fe RSP: 0018:ffffc900044efa78 EFLAGS: 00000202 RAX: 0000000000000046 RBX: 0000000000000001 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff8e49f34c RDI: ffffffff8c602380 RBP: ffffffff98077eb8 R08: 0000000000008e87 R09: ffffffff96a39b6e R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000246 R13: ffff88802b39cb00 R14: ffff88803989c568 R15: 0000000000000001 qdisc_lock_uninit include/net/pkt_sched.h:332 [inline] __qdisc_destroy+0x172/0x530 net/sched/sch_generic.c:1124 qdisc_put+0xb0/0xf0 net/sched/sch_generic.c:1150 dev_shutdown+0x1d2/0x440 net/sched/sch_generic.c:1515 unregister_netdevice_many_notify+0xd55/0x2150 net/core/dev.c:12439 unregister_netdevice_many net/core/dev.c:12513 [inline] unregister_netdevice_queue net/core/dev.c:12324 [inline] unregister_netdevice_queue+0x30b/0x3c0 net/core/dev.c:12314 unregister_netdevice include/linux/netdevice.h:3474 [inline] __tun_detach+0x1173/0x1480 drivers/net/tun.c:621 tun_detach drivers/net/tun.c:637 [inline] tun_chr_close+0xc2/0x220 drivers/net/tun.c:3442 __fput+0x3ff/0xb50 fs/file_table.c:512 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd8aeb9e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc7361be38 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007ffc7361bf20 RCX: 00007fd8aeb9e0d9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 0000000000028a26 R08: 0000000000000001 R09: 0000000000000000 R10: 0000001b32620000 R11: 0000000000000246 R12: 00007ffc7361bf60 R13: 00007fd8aee25fac R14: 0000000000028ae0 R15: 00007fd8aee25fa0 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 fc add %bh,%ah 4: ff lcall (bad) 5: df 48 89 fisttps -0x77(%rax) 8: eb 48 jmp 0x52 a: c1 eb 03 shr $0x3,%ebx d: 48 01 d3 add %rdx,%rbx 10: f6 c4 02 test $0x2,%ah 13: 75 47 jne 0x5c 15: bf 01 00 00 00 mov $0x1,%edi 1a: e8 42 c1 15 f6 call 0xf615c161 1f: e8 ad e8 52 f6 call 0xf652e8d1 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 b2 91 ff ff call 0xffff91e1 <-- trapping instruction 2f: 9c pushf 30: 58 pop %rax 31: fa cli 32: f6 c4 02 test $0x2,%ah 35: 75 1e jne 0x55 37: bf 01 00 00 00 mov $0x1,%edi 3c: e8 .byte 0xe8 3d: 30 61 15 xor %ah,0x15(%rcx)