syzbot


BUG: soft lockup in sys_process_vm_writev

Status: auto-obsoleted due to no activity on 2022/12/08 06:45
Reported-by: syzbot+82b19d619e87a29998c0@syzkaller.appspotmail.com
First crash: 847d, last: 847d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_process_vm_writev mm 2 1192d 1225d 0/28 auto-closed as invalid on 2021/11/28 06:21
upstream INFO: rcu detected stall in sys_process_vm_writev (3) cgroups block 1 171d 171d 0/28 auto-obsoleted due to no activity on 2024/09/14 02:49
upstream INFO: rcu detected stall in sys_process_vm_writev (2) block cgroups 1 527d 527d 0/28 auto-obsoleted due to no activity on 2023/09/24 05:04

Sample crash report:
EXT4-fs (loop5): DAX enabled. Warning: EXPERIMENTAL, use at your own risk
validate_nla: 8 callbacks suppressed
netlink: 'syz-executor.3': attribute type 12 has an invalid length.
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.2:7558]
Modules linked in:
irq event stamp: 2643092
hardirqs last  enabled at (2643091): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2643092): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (2638400): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (2638303): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (2638303): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 7558 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
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:ffff888187f376f0 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffff110165f4355
RDX: 0000000000000001 RSI: ffffffff8167a995 RDI: 0000000000000286
RBP: ffff8880b2fa1aa8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000006672
R13: ffffed10165f4355 R14: 0000000000000001 R15: ffff8880ba02be00
FS:  00007fa90cb8a700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa90cae5718 CR3: 0000000198e81000 CR4: 00000000003406f0
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]
 follow_page_pte+0x248/0x16e0 mm/gup.c:95
 follow_pmd_mask mm/gup.c:325 [inline]
 follow_pud_mask mm/gup.c:370 [inline]
 follow_p4d_mask mm/gup.c:396 [inline]
 follow_page_mask+0xd52/0x1d00 mm/gup.c:449
 __get_user_pages+0x5e3/0x1710 mm/gup.c:742
 __get_user_pages_locked mm/gup.c:916 [inline]
 get_user_pages_remote+0x220/0x460 mm/gup.c:1108
 process_vm_rw_single_vec mm/process_vm_access.c:113 [inline]
 process_vm_rw_core.constprop.0+0x400/0xb00 mm/process_vm_access.c:220
 process_vm_rw+0x21a/0x250 mm/process_vm_access.c:288
 __do_sys_process_vm_writev mm/process_vm_access.c:310 [inline]
 __se_sys_process_vm_writev mm/process_vm_access.c:305 [inline]
 __x64_sys_process_vm_writev+0xdf/0x1b0 mm/process_vm_access.c:305
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa90e236279
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa90cb8a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000137
RAX: ffffffffffffffda RBX: 00007fa90e349050 RCX: 00007fa90e236279
RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000005d62
RBP: 00007fa90e290189 R08: 000000000000023a R09: 0000000000000000
R10: 0000000020121000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4417838f R14: 00007fa90cb8a300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7520 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:native_apic_mem_write+0x8/0x10 arch/x86/include/asm/apic.h:109
Code: 3d cc 17 3d 0b 01 7f 02 5d c3 89 ef 5d e9 f5 fe c9 06 48 c7 c7 00 97 65 8c e8 84 e2 6f 00 eb df 66 90 89 ff 89 b7 00 c0 5f ff <c3> 0f 1f 80 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 53 89 fb 48
RSP: 0018:ffff8880ba1074c8 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffffffff89cfb1a0 RCX: 0000000000000020
RDX: 1ffffffff139f636 RSI: 0000000000000117 RDI: 0000000000000380
RBP: ffff8880ba11e2c0 R08: ffffffff8c665058 R09: 0000000000000000
R10: 0000000000000007 R11: ffffffff8c66505b R12: 0000000000000117
R13: 0000000000000000 R14: ffff8880ba124cc0 R15: ffff8880ba124d30
FS:  00007fa90cbab700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000208f9f09 CR3: 0000000198e81000 CR4: 00000000003406e0
DR0: fffffffffffffffe DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 apic_write arch/x86/include/asm/apic.h:389 [inline]
 lapic_next_event+0x4d/0x80 arch/x86/kernel/apic/apic.c:460
 clockevents_program_event+0x234/0x350 kernel/time/clockevents.c:344
 tick_program_event+0xac/0x140 kernel/time/tick-oneshot.c:48
 hrtimer_interrupt+0x40a/0x9e0 kernel/time/hrtimer.c:1598
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:orc_ip arch/x86/kernel/unwind_orc.c:26 [inline]
RIP: 0010:__orc_find+0x7c/0xf0 arch/x86/kernel/unwind_orc.c:48
Code: e8 3f 48 c1 fa 02 48 01 d0 48 d1 f8 48 8d 5c 85 00 48 89 d8 48 c1 e8 03 42 0f b6 14 38 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 <84> d2 75 48 48 63 03 48 01 d8 48 39 c1 73 b0 4c 8d 63 fc 49 39 ec
RSP: 0018:ffff8880ba1076e8 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffffffff8b37d6dc RCX: ffffffff8181e732
RDX: 0000000000000000 RSI: ffffffff8b981eb6 RDI: ffffffff8b37d6d8
RBP: ffffffff8b37d6d8 R08: 0000000000000000 R09: ffffffff8b981eb6
R10: ffff8880ba1078bf R11: 0000000000074071 R12: ffffffff8b37d6e4
R13: ffffffff8b37d6d8 R14: ffffffff8b37d6d8 R15: dffffc0000000000
 orc_find arch/x86/kernel/unwind_orc.c:159 [inline]
 unwind_next_frame+0x339/0x1400 arch/x86/kernel/unwind_orc.c:422
 __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+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:4352
 ieee80211_beacon_get_tim+0x88/0x890 net/mac80211/tx.c:4463
 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:536 [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:mark_page_lazyfree+0x2/0x8f0 mm/swap.c:634
Code: ff ff 4c 89 ef e8 be 7a 16 00 e9 27 fd ff ff 4c 89 f7 e8 41 7b 16 00 e9 f7 fe ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 41 57 <41> 56 41 55 41 54 55 48 89 fd 53 4c 8d 65 08 e8 2a 9e e0 ff 4c 89
RSP: 0018:ffff888185c9f908 EFLAGS: 00000296 ORIG_RAX: ffffffffffffff13
RAX: ffff888199096600 RBX: 0000000020400000 RCX: ffffffff81915532
RDX: 0000000000000000 RSI: ffffffff81915685 RDI: ffffea0006c3f040
RBP: 00000000202fe000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888191bd87f0
R13: 0000000000000000 R14: 0000000000000000 R15: ffffea0006c3f040
 madvise_free_pte_range+0x1411/0x2250 mm/madvise.c:427
 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:0x7fa90e236279
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa90cbab168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007fa90e348f80 RCX: 00007fa90e236279
RDX: 0000000000000008 RSI: 0000000000600003 RDI: 0000000020000000
RBP: 00007fa90e290189 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4417838f R14: 00007fa90cbab300 R15: 0000000000022000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/10 06:44 linux-4.19.y 3f8a27f9e27b c2a623d6 .config console log report info ci2-linux-4-19 BUG: soft lockup in sys_process_vm_writev
* Struck through repros no longer work on HEAD.