syzbot


BUG: soft lockup in mod_timer

Status: auto-closed as invalid on 2021/03/13 00:51
Reported-by: syzbot+7dab90c3c8f530909dd9@syzkaller.appspotmail.com
First crash: 1471d, last: 1471d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: soft lockup in mod_timer (2) syz error 33 740d 1304d 0/1 upstream: reported syz repro on 2021/04/28 22:26
linux-4.14 BUG: soft lockup in mod_timer 1 1456d 1456d 0/1 auto-closed as invalid on 2021/03/28 13:44

Sample crash report:
mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium
Bluetooth: hci2: command 0x0406 tx timeout
wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz-executor.3:20137]
Modules linked in:
irq event stamp: 21980869
hardirqs last  enabled at (21980868): [<ffffffff81004313>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (21980869): [<ffffffff8100432f>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (21963712): [<ffffffff8840069a>] __do_softirq+0x69a/0x9a0 kernel/softirq.c:318
softirqs last disabled at (21963715): [<ffffffff813a3bd5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (21963715): [<ffffffff813a3bd5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 1 PID: 20137 Comm: syz-executor.3 Not tainted 4.19.157-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xa3/0xe0 kernel/locking/spinlock.c:184
Code: 48 c7 c0 08 80 f1 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 2f 48 83 3d 2c d6 db 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb b2 e8 5a 99 ea f8 eb c0 0f 0b 0f 0b 48 c7 c7 08
RSP: 0018:ffff8880ba107c18 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3001 RBX: 0000000000000286 RCX: 1ffff110069cf13a
RDX: dffffc0000000000 RSI: ffff888034e789b0 RDI: 0000000000000286
RBP: ffff8880ba122b00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000022b00 R14: 0000000000000000 R15: ffff8880ba122b00
FS:  00007ff619364700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001be1a98 CR3: 0000000009e6d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __mod_timer kernel/time/timer.c:1071 [inline]
 mod_timer+0x4ea/0x1010 kernel/time/timer.c:1114
 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
 __run_timers kernel/time/timer.c:1703 [inline]
 run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1716
 __do_softirq+0x26c/0x9a0 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:544 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:zap_pte_range mm/memory.c:1349 [inline]
RIP: 0010:zap_pmd_range mm/memory.c:1452 [inline]
RIP: 0010:zap_pud_range mm/memory.c:1481 [inline]
RIP: 0010:zap_p4d_range mm/memory.c:1502 [inline]
RIP: 0010:unmap_page_range+0x12dc/0x2a70 mm/memory.c:1523
Code: d6 ff 48 8b 84 24 a0 00 00 00 48 63 db 48 8d 3c 98 48 89 f8 48 c1 e8 03 42 0f b6 14 30 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 <84> d2 0f 85 19 14 00 00 83 ac 9c 00 01 00 00 01 31 f6 4c 89 ef e8
RSP: 0018:ffff888031847768 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: ffffffff818e29e9
RDX: 0000000000000000 RSI: ffffffff818e29f4 RDI: ffff888031847868
RBP: ffffea000108bd88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: dead000000000100
R13: ffffea000108bd80 R14: dffffc0000000000 R15: 00007ff619f47000
 unmap_single_vma+0x198/0x300 mm/memory.c:1568
 unmap_vmas+0xa9/0x180 mm/memory.c:1598
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1015 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1036
 exit_mm kernel/exit.c:546 [inline]
 do_exit+0xab5/0x2b70 kernel/exit.c:874
 do_group_exit+0x125/0x310 kernel/exit.c:990
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:821
 exit_to_usermode_loop+0x204/0x2a0 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+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45deb9
Code: Bad RIP value.
RSP: 002b:00007ff619363c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 0000000000013440 RCX: 000000000045deb9
RDX: 0000000020000400 RSI: 0000000000008b0b RDI: 0000000000000004
RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007ffec0b98f2f R14: 00007ff6193649c0 R15: 000000000118bf2c
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 20149 Comm: syz-executor.2 Not tainted 4.19.157-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:trace_lock_release include/trace/events/lock.h:58 [inline]
RIP: 0010:lock_release+0x172/0x8b0 kernel/locking/lockdep.c:3925
Code: 00 c7 83 84 08 00 00 01 00 00 00 0f 1f 44 00 00 65 8b 05 41 ec b4 7e 83 f8 07 0f 87 89 04 00 00 89 c0 48 0f a3 05 96 15 da 09 <0f> 82 38 04 00 00 48 c7 c0 40 c8 45 8a 48 ba 00 00 00 00 00 fc ff
RSP: 0018:ffff8880ba0073e0 EFLAGS: 00000097
RAX: 0000000000000000 RBX: ffff88802de1a240 RCX: ffffffff81565d46
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88802de1aac4
RBP: ffff8880ba024c98 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff8c65b01b R12: 1ffff11017400e7f
R13: ffffffff81565de7 R14: ffff8880ba024d00 R15: dffffc0000000000
FS:  00007f489841e700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c010338f20 CR3: 000000005a096000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:158 [inline]
 _raw_spin_unlock_irqrestore+0x1b/0xe0 kernel/locking/spinlock.c:184
 __run_hrtimer kernel/time/hrtimer.c:1399 [inline]
 __hrtimer_run_queues+0x397/0xe60 kernel/time/hrtimer.c:1463
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1521
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1067 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1092
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:unwind_next_frame+0xf92/0x1c60 arch/x86/kernel/unwind_orc.c:548
Code: 08 84 c0 0f 85 c2 08 00 00 4c 89 c2 41 c6 47 35 00 4c 89 ce 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 48 c1 ee 03 0f b6 14 02 <0f> b6 04 06 4c 89 c6 83 e6 07 40 38 f2 40 0f 9e c6 84 d2 0f 95 c2
RSP: 0018:ffff8880ba007768 EFLAGS: 00000a03 ORIG_RAX: ffffffffffffff13
RAX: dffffc0000000000 RBX: 1ffff11017400ef5 RCX: ffffffff8b90df30
RDX: 0000000000000000 RSI: 1ffffffff1721be6 RDI: ffff8880ba0078a8
RBP: 0000000000000002 R08: ffffffff8b90df34 R09: ffffffff8b90df35
R10: 0000000000074071 R11: 0000000000000001 R12: ffff8880ba007fc8
R13: ffff8880ba007885 R14: ffff8880ba007888 R15: ffff8880ba007850
 __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
 save_stack mm/kasan/kasan.c:448 [inline]
 set_track mm/kasan/kasan.c:460 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
 kmem_cache_alloc_node_trace+0x151/0x3b0 mm/slab.c:3668
 __do_kmalloc_node mm/slab.c:3688 [inline]
 __kmalloc_node_track_caller+0x38/0x70 mm/slab.c:3703
 __kmalloc_reserve net/core/skbuff.c:137 [inline]
 __alloc_skb+0xae/0x560 net/core/skbuff.c:205
 skb_copy+0x139/0x2f0 net/core/skbuff.c:1349
 mac80211_hwsim_tx_frame_no_nl.isra.0+0xb8a/0x1330 drivers/net/wireless/mac80211_hwsim.c:1353
 mac80211_hwsim_tx_frame+0x12b/0x210 drivers/net/wireless/mac80211_hwsim.c:1556
 mac80211_hwsim_beacon_tx+0x3f8/0x680 drivers/net/wireless/mac80211_hwsim.c:1595
 __iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
 mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
 __tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
 tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
 __do_softirq+0x26c/0x9a0 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:544 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:_vm_normal_page+0x0/0x510 mm/memory.c:833
Code: e9 3a ff ff ff 48 c7 c7 50 e4 ce 89 e8 79 e9 0c 00 e9 98 fe ff ff 48 c7 c7 e8 e4 ce 89 e8 68 e9 0c 00 e9 d9 fe ff ff 0f 1f 00 <41> 57 41 56 49 89 f6 41 55 49 89 fd 41 54 55 53 48 bb 00 00 00 00
RSP: 0018:ffff8880366df760 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: ffff88802de1a240 RBX: 8000000000000007 RCX: 0000000000000001
RDX: 800000009b4ee007 RSI: 00007f48990e4000 RDI: ffff8880a1592040
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 800000009b4ee007
R13: ffffea00026d3b40 R14: dffffc0000000000 R15: 00007f48990e5000
 zap_pte_range mm/memory.c:1323 [inline]
 zap_pmd_range mm/memory.c:1452 [inline]
 zap_pud_range mm/memory.c:1481 [inline]
 zap_p4d_range mm/memory.c:1502 [inline]
 unmap_page_range+0xfba/0x2a70 mm/memory.c:1523
 unmap_single_vma+0x198/0x300 mm/memory.c:1568
 unmap_vmas+0xa9/0x180 mm/memory.c:1598
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1015 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1036
 exit_mm kernel/exit.c:546 [inline]
 do_exit+0xab5/0x2b70 kernel/exit.c:874
 do_group_exit+0x125/0x310 kernel/exit.c:990
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:821
 exit_to_usermode_loop+0x204/0x2a0 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+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45deb9
Code: Bad RIP value.
RSP: 002b:00007f489841dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 000000000001a440 RCX: 000000000045deb9
RDX: 0000000020000100 RSI: 00000000400454ca RDI: 0000000000000005
RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007ffdda9b422f R14: 00007f489841e9c0 R15: 000000000118bf2c

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/13 00:50 linux-4.19.y 31acccdc8774 16fca0c8 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.