syzbot


INFO: task hung in sys_ioctl

Status: auto-obsoleted due to no activity on 2024/07/24 10:29
Subsystems: btrfs
[Documentation on labels]
First crash: 278d, last: 278d

Sample crash report:
INFO: task syz-executor.4:9837 blocked for more than 143 seconds.
      Not tainted 6.9.0-rc5-syzkaller-00042-ge88c4cfcb7b8 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:21776 pid:9837  tgid:9835  ppid:9370   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5409 [inline]
 __schedule+0x1796/0x4a00 kernel/sched/core.c:6746
 __schedule_loop kernel/sched/core.c:6823 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6838
 wait_for_commit+0x230/0x4a0 fs/btrfs/transaction.c:910
 btrfs_wait_for_commit+0x300/0x3b0 fs/btrfs/transaction.c:990
 btrfs_ioctl_wait_sync+0xf0/0x140 fs/btrfs/ioctl.c:3221
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:904 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2e1ee7dea9
RSP: 002b:00007f2e1e9ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f2e1efabf80 RCX: 00007f2e1ee7dea9
RDX: 0000000020000000 RSI: 0000000040089416 RDI: 0000000000000006
RBP: 00007f2e1eeca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f2e1efabf80 R15: 00007ffc577da008
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/u8:1/11:
 #0: ffff8880b953e658 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559
 #1: ffff8880b9528948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988
1 lock held by khungtaskd/29:
 #0: ffffffff8e334d20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
 #0: ffffffff8e334d20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
 #0: ffffffff8e334d20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
3 locks held by kworker/u8:8/2433:
2 locks held by getty/4831:
 #0: ffff88802ad5f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201
2 locks held by syz-executor.2/11854:
1 lock held by syz-executor.3/11887:
1 lock held by syz-executor.0/11883:
2 locks held by syz-executor.4/11934:
3 locks held by rm/11948:

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.9.0-rc5-syzkaller-00042-ge88c4cfcb7b8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
 watchdog+0xfde/0x1020 kernel/hung_task.c:380
 kthread+0x2f0/0x390 kernel/kthread.c:388
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 11948 Comm: rm Not tainted 6.9.0-rc5-syzkaller-00042-ge88c4cfcb7b8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4799 [inline]
RIP: 0010:__lock_acquire+0x91c/0x1fd0 kernel/locking/lockdep.c:5087
Code: 8b e8 78 f3 e5 ff 48 ba 00 00 00 00 00 fc ff df 90 0f 0b 90 90 90 31 db 48 8d ab c4 00 00 00 48 89 e8 48 c1 e8 03 0f b6 04 10 <84> c0 0f 85 91 00 00 00 0f b6 6d 00 40 84 ed 74 32 0f b6 44 24 28
RSP: 0018:ffffc9000e22f2d0 EFLAGS: 00000807
RAX: 0000000000000000 RBX: ffffffff92bfb4b8 RCX: ffffffff817288fe
RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff92f00530
RBP: ffffffff92bfb57c R08: ffffffff92f00537 R09: 1ffffffff25e00a6
R10: dffffc0000000000 R11: fffffbfff25e00a7 R12: 0000000000000000
R13: ffff888059a18af8 R14: 0000000000000000 R15: ffff888059a18af8
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6d96092440 CR3: 000000007e518000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754
 rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
 rcu_read_lock_sched include/linux/rcupdate.h:873 [inline]
 pfn_valid+0x113/0x440 include/linux/mmzone.h:2019
 page_table_check_clear+0x21/0x730 mm/page_table_check.c:68
 get_and_clear_full_ptes include/linux/pgtable.h:634 [inline]
 zap_present_folio_ptes mm/memory.c:1479 [inline]
 zap_present_ptes mm/memory.c:1563 [inline]
 zap_pte_range mm/memory.c:1605 [inline]
 zap_pmd_range mm/memory.c:1722 [inline]
 zap_pud_range mm/memory.c:1751 [inline]
 zap_p4d_range mm/memory.c:1772 [inline]
 unmap_page_range+0x31b0/0x4820 mm/memory.c:1793
 unmap_vmas+0x3cc/0x5f0 mm/memory.c:1883
 exit_mmap+0x2cb/0xd60 mm/mmap.c:3267
 __mmput+0x115/0x3c0 kernel/fork.c:1346
 exit_mm+0x220/0x310 kernel/exit.c:569
 do_exit+0x99e/0x27e0 kernel/exit.c:865
 do_group_exit+0x207/0x2c0 kernel/exit.c:1027
 __do_sys_exit_group kernel/exit.c:1038 [inline]
 __se_sys_exit_group kernel/exit.c:1036 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1036
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6d96150a90
Code: Unable to access opcode bytes at 0x7f6d96150a66.
RSP: 002b:00007ffdab787318 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f6d96241860 RCX: 00007f6d96150a90
RDX: 00000000000000e7 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00007f6d96241860 R08: 00007ffdab787190 R09: 00007ffdab787270
R10: 00007ffdab7871d0 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6d96245658 R15: 0000000000000001
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/25 10:25 upstream e88c4cfcb7b8 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in sys_ioctl
* Struck through repros no longer work on HEAD.