syzbot


INFO: rcu detected stall in mmap_pgoff (5)

Status: auto-obsoleted due to no activity on 2023/10/25 16:56
Subsystems: mm fs
[Documentation on labels]
First crash: 311d, last: 281d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in mmap_pgoff syz error 2 1108d 1177d 0/1 upstream: reported syz repro on 2021/02/11 18:33
linux-5.15 INFO: rcu detected stall in mmap_pgoff 1 207d 207d 0/3 auto-obsoleted due to no activity on 2024/01/17 20:08
upstream INFO: rcu detected stall in mmap_pgoff (4) mm 1 409d 409d 0/26 auto-obsoleted due to no activity on 2023/05/21 07:37
upstream INFO: rcu detected stall in mmap_pgoff crypto 3 902d 910d 0/26 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in mmap_pgoff (3) mm 1 599d 599d 0/26 auto-obsoleted due to no activity on 2022/12/11 19:43
upstream INFO: rcu detected stall in mmap_pgoff (2) kernel 1 798d 798d 0/26 auto-closed as invalid on 2022/05/26 19:52

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 ticks this GP) idle=371c/1/0x4000000000000000 softirq=47614/47614 fqs=2
rcu: 	(detected by 1, t=10503 jiffies, g=61601, q=141 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 13594 Comm: syz-executor.5 Not tainted 6.5.0-rc3-syzkaller-00044-g0a8db05b571a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:228 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:240 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline]
RIP: 0010:mark_lock+0x10a/0x1950 kernel/locking/lockdep.c:4663
Code: 81 e2 ff 1f 0f b7 d2 be 08 00 00 00 48 89 d0 48 89 54 24 38 48 c1 e8 06 48 8d 3c c5 80 0e 84 91 e8 fb 8e 72 00 48 8b 54 24 38 <48> 0f a3 15 4e fd 1d 10 0f 83 61 01 00 00 48 69 d2 d0 00 00 00 48
RSP: 0018:ffffc90000007920 EFLAGS: 00000046
RAX: 0000000000000001 RBX: ffff88803655ac28 RCX: ffffffff81661125
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff91840e80
RBP: ffffc90000007a88 R08: 0000000000000000 R09: fffffbfff23081d0
R10: ffffffff91840e87 R11: ffffc90000007ff8 R12: 0000000000000001
R13: 0000000000000000 R14: 1ffff92000000f2c R15: ffff88803655ac48
FS:  00007f0e6fc526c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000203e2030 CR3: 0000000025d4d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 mark_usage kernel/locking/lockdep.c:4571 [inline]
 __lock_acquire+0x163e/0x5de0 kernel/locking/lockdep.c:5098
 lock_acquire kernel/locking/lockdep.c:5761 [inline]
 lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x3a/0x50 kernel/locking/spinlock.c:162
 debug_object_activate+0x1a4/0x490 lib/debugobjects.c:717
 debug_hrtimer_activate kernel/time/hrtimer.c:422 [inline]
 debug_activate kernel/time/hrtimer.c:477 [inline]
 enqueue_hrtimer+0x23/0x310 kernel/time/hrtimer.c:1087
 __run_hrtimer kernel/time/hrtimer.c:1705 [inline]
 __hrtimer_run_queues+0xa0a/0xc10 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1098 [inline]
 __sysvec_apic_timer_interrupt+0x14a/0x430 arch/x86/kernel/apic/apic.c:1115
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1109
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:first_map_page mm/filemap.c:3482 [inline]
RIP: 0010:filemap_map_pages+0x1d6/0x1150 mm/filemap.c:3509
Code: 68 a4 0e b2 81 48 c7 c7 40 33 9a 8c e8 e3 90 b4 ff e8 0e f2 7e 08 31 ff 89 c3 89 c6 e8 f3 75 d3 ff 85 db 58 0f 85 66 0a 00 00 <e8> 75 7a d3 ff 4c 8b 7c 24 20 48 8d 9c 24 98 00 00 00 48 89 df 48
RSP: 0018:ffffc90005947890 EFLAGS: 00000202
RAX: 0000000000000002 RBX: 0000000000000001 RCX: ffffffff81b21971
RDX: ffff88803655a0c0 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90005947a48 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000000c2de R12: 00000000000005f0
R13: ffff888021940a00 R14: 00000000000005f3 R15: 0000000000000200
 do_fault_around mm/memory.c:4510 [inline]
 do_read_fault mm/memory.c:4542 [inline]
 do_fault mm/memory.c:4670 [inline]
 do_pte_missing mm/memory.c:3664 [inline]
 handle_pte_fault mm/memory.c:4939 [inline]
 __handle_mm_fault+0x2784/0x3b80 mm/memory.c:5079
 handle_mm_fault+0x2ab/0x9d0 mm/memory.c:5233
 faultin_page mm/gup.c:959 [inline]
 __get_user_pages+0x5c1/0x1010 mm/gup.c:1258
 populate_vma_page_range+0x2d4/0x410 mm/gup.c:1649
 __mm_populate+0x1d7/0x380 mm/gup.c:1758
 mm_populate include/linux/mm.h:3196 [inline]
 vm_mmap_pgoff+0x2c9/0x3b0 mm/util.c:548
 ksys_mmap_pgoff+0x7d/0x5b0 mm/mmap.c:1408
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0e6ee7cb29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0e6fc520c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f0e6ef9bf80 RCX: 00007f0e6ee7cb29
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007f0e6eec847a R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f0e6ef9bf80 R15: 00007fff9404b4e8
 </TASK>
rcu: rcu_preempt kthread starved for 10495 jiffies! g61601 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:28032 pid:15    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0xee1/0x59f0 kernel/sched/core.c:6710
 schedule+0xe7/0x1b0 kernel/sched/core.c:6786
 schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x1ec/0xa50 kernel/rcu/tree.c:1609
 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1808
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296
RIP: 0000:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 13597 Comm: syz-executor.1 Not tainted 6.5.0-rc3-syzkaller-00044-g0a8db05b571a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:csd_lock_wait kernel/smp.c:296 [inline]
RIP: 0010:smp_call_function_many_cond+0x4d6/0x1570 kernel/smp.c:835
Code: 0b 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 fc 4c 89 fd 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 dc 5e 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 3c 0e 00 00 8b 43 08 31
RSP: 0018:ffffc90005a178b8 EFLAGS: 00000246
RAX: 0000000000040000 RBX: ffffe8ffffc0b360 RCX: ffffc9000c199000
RDX: 0000000000040000 RSI: ffffffff817a2a94 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: fffff91ffff8166d
R13: 0000000000000001 R14: ffff8880b993d5c0 R15: ffffe8ffffc0b368
FS:  00007f1bd0dfe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000004c36b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1003
 kill_bdev block/bdev.c:75 [inline]
 set_blocksize+0x2a5/0x360 block/bdev.c:152
 sb_set_blocksize+0x47/0x120 block/bdev.c:161
 udf_load_vrs+0xe8/0x1010 fs/udf/super.c:1943
 udf_fill_super+0x86d/0x1b70 fs/udf/super.c:2147
 mount_bdev+0x30d/0x3d0 fs/super.c:1391
 legacy_get_tree+0x109/0x220 fs/fs_context.c:611
 vfs_get_tree+0x88/0x350 fs/super.c:1519
 do_new_mount fs/namespace.c:3335 [inline]
 path_mount+0x1492/0x1ed0 fs/namespace.c:3662
 do_mount fs/namespace.c:3675 [inline]
 __do_sys_mount fs/namespace.c:3884 [inline]
 __se_sys_mount fs/namespace.c:3861 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:3861
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1bd227e22a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1bd0dfdee8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f1bd0dfdf80 RCX: 00007f1bd227e22a
RDX: 00000000200000c0 RSI: 0000000020000c80 RDI: 00007f1bd0dfdf40
RBP: 00000000200000c0 R08: 00007f1bd0dfdf80 R09: 0000000002000044
R10: 0000000002000044 R11: 0000000000000202 R12: 0000000020000c80
R13: 00007f1bd0dfdf40 R14: 0000000000000c3b R15: 00000000200001c0
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/27 16:47 upstream 0a8db05b571a 92476829 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in mmap_pgoff
2023/06/28 00:50 upstream e8f75c0270d9 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in mmap_pgoff
* Struck through repros no longer work on HEAD.