syzbot


INFO: rcu detected stall in mmap_pgoff

Status: upstream: reported syz repro on 2021/02/11 18:33
Reported-by: syzbot+c0c8c6ab6ebab7287dac@syzkaller.appspotmail.com
First crash: 1379d, last: 1310d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in mmap_pgoff (5) mm fs 2 483d 512d 0/28 auto-obsoleted due to no activity on 2023/10/25 16:56
linux-5.15 INFO: rcu detected stall in mmap_pgoff 1 408d 408d 0/3 auto-obsoleted due to no activity on 2024/01/17 20:08
linux-5.15 INFO: rcu detected stall in mmap_pgoff (2) 3 22d 140d 0/3 upstream: reported on 2024/07/04 06:23
upstream INFO: rcu detected stall in mmap_pgoff (4) mm 1 610d 610d 0/28 auto-obsoleted due to no activity on 2023/05/21 07:37
upstream INFO: rcu detected stall in mmap_pgoff crypto 3 1103d 1111d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in mmap_pgoff (3) mm 1 800d 800d 0/28 auto-obsoleted due to no activity on 2022/12/11 19:43
upstream INFO: rcu detected stall in mmap_pgoff (2) kernel 1 999d 999d 0/28 auto-closed as invalid on 2022/05/26 19:52

Sample crash report:
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.3:20092]
Modules linked in:
irq event stamp: 2272464
hardirqs last  enabled at (2272463): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2272464): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (2267822): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (2267687): [<ffffffff813926d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (2267687): [<ffffffff813926d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 20092 Comm: syz-executor.3 Not tainted 4.19.188-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:123 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:436 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3b0/0xae0 kernel/locking/qspinlock.c:474
Code: 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 85 75 05 00 00 0f b6 45 00 84
RSP: 0018:ffff88807f95f628 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffffffff140418c
RDX: 0000000000000001 RSI: ffffffff81678675 RDI: 0000000000000286
RBP: ffffffff8a020c60 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 000000000000090f
R13: fffffbfff140418c R14: 0000000000000001 R15: ffff8880ba02bd80
FS:  00007f6f57de2700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000050e110 CR3: 00000000a7d19000 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]
 alloc_huge_page+0x3a6/0xea0 mm/hugetlb.c:2103
 hugetlb_no_page+0x2b0/0x1090 mm/hugetlb.c:3865
 hugetlb_fault+0xc68/0x1200 mm/hugetlb.c:4034
 follow_hugetlb_page+0x5da/0x11d0 mm/hugetlb.c:4343
 __get_user_pages+0x37e/0x1640 mm/gup.c:713
 populate_vma_page_range+0x200/0x290 mm/gup.c:1234
 __mm_populate+0x1ea/0x350 mm/gup.c:1282
 mm_populate include/linux/mm.h:2335 [inline]
 vm_mmap_pgoff+0x1e2/0x200 mm/util.c:362
 ksys_mmap_pgoff+0x298/0x5a0 mm/mmap.c:1580
 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:00007f6f57de2188 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000002000006 RSI: 0000000000400017 RDI: 0000000020200000
RBP: 00000000004bf9fb R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000002012 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007fff39f7065f R14: 00007f6f57de2300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9550 Comm: kworker/u4:7 Not tainted 4.19.188-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy2 ieee80211_iface_work
RIP: 0010:__sanitizer_cov_trace_pc+0x22/0x50 kernel/kcov.c:101
Code: 90 90 90 90 90 90 90 90 48 8b 34 24 65 48 8b 04 25 80 df 01 00 65 8b 15 3c 81 9f 7e 81 e2 00 01 1f 00 75 2b 8b 90 60 13 00 00 <83> fa 02 75 20 48 8b 88 68 13 00 00 8b 80 64 13 00 00 48 8b 11 48
RSP: 0018:ffff8880b2e97ca0 EFLAGS: 00000246
RAX: ffff88809eaee080 RBX: 0000000000000000 RCX: 1ffff11013d5dd2a
RDX: 0000000000000000 RSI: ffffffff866fe30f RDI: 0000000000000286
RBP: ffff88809bf3a080 R08: 0000000000400000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809bf3a164
R13: 0000000000000080 R14: ffffffff879a2729 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000050e110 CR3: 00000000aa8f8000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __kfree_skb net/core/skbuff.c:655 [inline]
 kfree_skb+0x11f/0x3d0 net/core/skbuff.c:672
 ieee80211_iface_work+0x289/0x8a0 net/mac80211/iface.c:1357
 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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/21 15:56 linux-4.19.y 2965db2e004c 95777977 .config console log report syz ci2-linux-4-19 BUG: soft lockup in mmap_pgoff
2021/02/11 18:32 linux-4.19.y 811218eceeaa a5f86b15 .config console log report info ci2-linux-4-19 INFO: rcu detected stall in mmap_pgoff
* Struck through repros no longer work on HEAD.