syzbot


BUG: soft lockup in do_swap_page

Status: auto-closed as invalid on 2021/07/18 10:00
Reported-by: syzbot+b62d05cee7d973e834a4@syzkaller.appspotmail.com
First crash: 1354d, last: 1354d

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.1:30008]
Modules linked in:
irq event stamp: 2845064
hardirqs last  enabled at (2845063): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2845064): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (21448): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (21305): [<ffffffff81392675>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (21305): [<ffffffff81392675>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 30008 Comm: syz-executor.1 Not tainted 4.19.181-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3a6/0xae0 kernel/locking/qspinlock.c:474
Code: eb c6 45 01 01 41 bc 00 80 00 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 <41> 83 ec 01 0f 84 38 04 00 00 41 0f b6 45 00 38 d8 7f 08 84 c0 0f
RSP: 0018:ffff8880ae807700 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffff11014a56258
RDX: 0000000000000001 RSI: ffffffff81678335 RDI: 0000000000000286
RBP: ffff8880a52b12c0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 000000000000576a
R13: ffffed1014a56258 R14: 0000000000000001 R15: ffff8880ba02bd80
FS:  00007f3377817700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558166e8e8f0 CR3: 000000005b55e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
 do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
 spin_lock include/linux/spinlock.h:329 [inline]
 __migration_entry_wait+0x70/0x8c0 mm/migrate.c:315
 do_swap_page+0x243a/0x2d20 mm/memory.c:3016
 handle_pte_fault mm/memory.c:4138 [inline]
 __handle_mm_fault+0x225c/0x41c0 mm/memory.c:4258
 handle_mm_fault+0x436/0xb10 mm/memory.c:4295
 __do_page_fault+0x68e/0xd60 arch/x86/mm/fault.c:1412
 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205
RIP: 0010:__put_user_4+0x1c/0x30 arch/x86/lib/putuser.S:70
Code: 1f 00 c3 66 66 2e 0f 1f 84 00 00 00 00 00 65 48 8b 1c 25 80 df 01 00 48 8b 9b 98 14 00 00 48 83 eb 03 48 39 d9 73 3c 0f 1f 00 <89> 01 31 c0 0f 1f 00 c3 66 66 2e 0f 1f 84 00 00 00 00 00 90 65 48
RSP: 0018:ffff8880ae807cd0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00007fffffffeffd RCX: 00000000200018f8
RDX: 000000000003a64a RSI: ffffffff866c3aa2 RDI: 0000000000000286
RBP: 0000000000040000 R08: ffffffff8cd2cfd0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000005e
R13: 00000000200018c0 R14: 0000000000000400 R15: 00000000000003ff
 __sys_sendmmsg+0x1d3/0x470 net/socket.c:2215
 __do_sys_sendmmsg net/socket.c:2239 [inline]
 __se_sys_sendmmsg net/socket.c:2236 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2236
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x466459
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:00007f3377817188 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0492492492492805 RSI: 0000000020000140 RDI: 0000000000000006
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd9323037f R14: 00007f3377817300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 30023 Comm: syz-executor.1 Not tainted 4.19.181-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:mark_lock+0xc2/0x1160 kernel/locking/lockdep.c:3158
Code: fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 04 0d 00 00 4c 89 e0 48 23 43 30 0f 84 ad 00 00 00 b8 01 00 00 00 48 83 c4 18 <5b> 5d 41 5c 41 5d 41 5e 41 5f c3 48 c7 c0 60 c7 23 8d 48 ba 00 00
RSP: 0018:ffff8880ba107570 EFLAGS: 00000092
RAX: 0000000000000001 RBX: ffffffff8cd5c090 RCX: 1ffff11009747966
RDX: 1ffffffff19ab818 RSI: ffff88804ba3cb10 RDI: ffffffff8cd5c0c0
RBP: ffff88804ba3cb10 R08: 000000000000002e R09: 0000000000000005
R10: ffff88804ba3cb10 R11: 0000000000074071 R12: 0000000000000100
R13: ffff88804ba3c1c0 R14: ffff88804ba3cb30 R15: 0000000000000008
FS:  00007f33777f6700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020021000 CR3: 000000005b55e000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __lock_acquire+0x6de/0x3ff0 kernel/locking/lockdep.c:3376
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907
 rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
 rcu_read_lock include/linux/rcupdate.h:627 [inline]
 is_bpf_text_address+0x36/0x1b0 kernel/bpf/core.c:545
 kernel_text_address kernel/extable.c:152 [inline]
 kernel_text_address+0xbd/0xf0 kernel/extable.c:122
 __kernel_text_address+0x9/0x30 kernel/extable.c:107
 unwind_get_return_address arch/x86/kernel/unwind_orc.c:297 [inline]
 unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:292
 __save_stack_trace+0xaf/0x190 arch/x86/kernel/stacktrace.c:45
 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+0x146/0x3b0 mm/slab.c:3649
 __alloc_skb+0x71/0x560 net/core/skbuff.c:193
 __netdev_alloc_skb+0x76/0x460 net/core/skbuff.c:407
 netdev_alloc_skb include/linux/skbuff.h:2680 [inline]
 dev_alloc_skb include/linux/skbuff.h:2693 [inline]
 __ieee80211_beacon_get+0xc7d/0x1a30 net/mac80211/tx.c:4332
 ieee80211_beacon_get_tim+0x88/0x890 net/mac80211/tx.c:4443
 ieee80211_beacon_get include/net/mac80211.h:4484 [inline]
 mac80211_hwsim_beacon_tx+0xff/0x680 drivers/net/wireless/mac80211_hwsim.c:1577
 __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+0x265/0x980 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:535 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:write_comp_data+0x0/0x70 kernel/kcov.c:116
Code: 20 48 8b 88 68 13 00 00 8b 80 64 13 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00 00 00 00 <49> 89 f1 49 89 fa 65 48 8b 34 25 80 df 01 00 65 8b 05 2a 84 9f 7e
RSP: 0018:ffff88804ce17360 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000040000 RBX: ffff8880a5bcaa00 RCX: ffffffff87eb1e70
RDX: 0000000000000001 RSI: 0000000000000007 RDI: 0000000000000005
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff110099c2e74
R13: 0000000000000001 R14: 0000000000000000 R15: ffff8880a5bcafd0
 cpu_max_bits_warn include/linux/cpumask.h:121 [inline]
 cpumask_check include/linux/cpumask.h:128 [inline]
 cpumask_any_but+0x20/0x130 lib/cpumask.c:56
 flush_tlb_mm_range+0x107/0x320 arch/x86/mm/tlb.c:727
 flush_tlb_page arch/x86/include/asm/tlbflush.h:576 [inline]
 ptep_clear_flush+0x123/0x160 mm/pgtable-generic.c:87
 try_to_unmap_one+0x64b/0x2990 mm/rmap.c:1506
 rmap_walk_anon+0x435/0xb90 mm/rmap.c:1833
 rmap_walk_locked+0x12a/0x190 mm/rmap.c:1914
 try_to_unmap+0x1ce/0x380 mm/rmap.c:1722
 unmap_page mm/huge_memory.c:2430 [inline]
 split_huge_page_to_list+0x6a2/0x2fa0 mm/huge_memory.c:2751
 split_huge_page include/linux/huge_mm.h:146 [inline]
 madvise_free_pte_range+0x955/0x2250 mm/madvise.c:375
 walk_pmd_range mm/pagewalk.c:51 [inline]
 walk_pud_range mm/pagewalk.c:109 [inline]
 walk_p4d_range mm/pagewalk.c:135 [inline]
 walk_pgd_range+0x8fe/0x1150 mm/pagewalk.c:161
 __walk_page_range mm/pagewalk.c:254 [inline]
 walk_page_range+0x1a5/0x490 mm/pagewalk.c:335
 madvise_free_page_range.isra.0+0xae/0xf0 mm/madvise.c:454
 madvise_free_single_vma+0x31c/0x4a0 mm/madvise.c:481
 madvise_dontneed_free mm/madvise.c:565 [inline]
 madvise_vma mm/madvise.c:698 [inline]
 __do_sys_madvise mm/madvise.c:873 [inline]
 __se_sys_madvise+0x75c/0x1c10 mm/madvise.c:801
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x466459
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:00007f33777f6188 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000466459
RDX: 0000000000000008 RSI: 000000000060fe01 RDI: 0000000020000000
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008
R13: 00007ffd9323037f R14: 00007f33777f6300 R15: 0000000000022000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/20 09:59 linux-4.19.y ac3af4beac43 e45f5621 .config console log report info ci2-linux-4-19 BUG: soft lockup in do_swap_page
* Struck through repros no longer work on HEAD.