syzbot


INFO: task hung in btrfs_sync_file (3)

Status: auto-obsoleted due to no activity on 2024/04/15 09:26
Subsystems: btrfs
[Documentation on labels]
First crash: 187d, last: 187d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in btrfs_sync_file (2) btrfs C error 5 419d 415d 23/27 fixed on 2023/09/28 17:51
upstream INFO: task hung in btrfs_sync_file btrfs C error 2 530d 530d 0/27 closed as invalid on 2023/02/08 16:28

Sample crash report:
INFO: task syz-executor.3:7639 blocked for more than 143 seconds.
      Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:23304 pid:7639  tgid:7638  ppid:5075   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5400 [inline]
 __schedule+0x177f/0x4960 kernel/sched/core.c:6727
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6817
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6874
 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock include/linux/fs.h:802 [inline]
 btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:387
 btrfs_sync_file+0x55d/0x1330 fs/btrfs/file.c:1824
 generic_write_sync include/linux/fs.h:2735 [inline]
 btrfs_do_write_iter+0xbc5/0x1190 fs/btrfs/file.c:1697
 call_write_iter include/linux/fs.h:2085 [inline]
 iter_file_splice_write+0xa64/0x1320 fs/splice.c:743
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0xf6/0x1e0 fs/splice.c:1164
 splice_direct_to_actor+0x54e/0xc80 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0x28c/0x3e0 fs/splice.c:1233
 do_sendfile+0x56d/0xdb0 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1362 [inline]
 __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1348
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f94c147cda9
RSP: 002b:00007f94c218d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f94c15abf80 RCX: 00007f94c147cda9
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007f94c14c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f94c15abf80 R15: 00007ffc937c9298
 </TASK>
INFO: task syz-executor.3:7705 blocked for more than 144 seconds.
      Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:24104 pid:7705  tgid:7638  ppid:5075   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5400 [inline]
 __schedule+0x177f/0x4960 kernel/sched/core.c:6727
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6817
 wait_extent_bit fs/btrfs/extent-io-tree.c:822 [inline]
 lock_extent+0x69d/0x850 fs/btrfs/extent-io-tree.c:1868
 btrfs_page_mkwrite+0x743/0x10c0 fs/btrfs/inode.c:8176
 do_page_mkwrite+0x197/0x470 mm/memory.c:2966
 wp_page_shared mm/memory.c:3353 [inline]
 do_wp_page+0x20e3/0x4c80 mm/memory.c:3493
 handle_pte_fault mm/memory.c:5160 [inline]
 __handle_mm_fault+0x26a3/0x72b0 mm/memory.c:5285
 handle_mm_fault+0x27e/0x770 mm/memory.c:5450
 do_user_addr_fault arch/x86/mm/fault.c:1415 [inline]
 handle_page_fault arch/x86/mm/fault.c:1507 [inline]
 exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1563
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:rep_movs_alternative+0x33/0x70 arch/x86/lib/copy_user_64.S:58
Code: 40 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb
RSP: 0018:ffffc90015b37530 EFLAGS: 00050206
RAX: 0000000000000000 RBX: 0000000020000218 RCX: 0000000000000038
RDX: 0000000000000000 RSI: ffffc90015b375e0 RDI: 00000000200001e0
RBP: ffffc90015b37690 R08: ffffc90015b37617 R09: 1ffff92002b66ec2
R10: dffffc0000000000 R11: fffff52002b66ec3 R12: 0000000000000038
R13: ffffc90015b375e0 R14: 00000000200001e0 R15: ffffc90015b375e0
 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline]
 _copy_to_user+0x86/0xa0 lib/usercopy.c:41
 copy_to_user include/linux/uaccess.h:191 [inline]
 fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:145
 emit_last_fiemap_cache fs/btrfs/extent_io.c:2555 [inline]
 extent_fiemap+0x1b9c/0x1fe0 fs/btrfs/extent_io.c:3082
 btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7844
 ioctl_fiemap fs/ioctl.c:220 [inline]
 do_vfs_ioctl+0x19ea/0x2b40 fs/ioctl.c:811
 __do_sys_ioctl fs/ioctl.c:869 [inline]
 __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f94c147cda9
RSP: 002b:00007f94c212a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f94c15ac1f0 RCX: 00007f94c147cda9
RDX: 00000000200001c0 RSI: 00000000c020660b RDI: 0000000000000004
RBP: 00007f94c14c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f94c15ac1f0 R15: 00007ffc937c9298
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x310 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xfaf/0xff0 kernel/hung_task.c:379
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7938 Comm: udevd Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0033:0x7ff35ba739a1
Code: 8b 38 31 c0 e8 d0 ad ff ff 49 8b 55 f8 49 8b 75 f0 49 89 e8 48 89 d9 48 8d 3d fe 61 02 00 31 c0 e8 e6 f2 ff ff e9 4a 01 00 00 <4d> 8b 6d 00 e9 77 ff ff ff 48 8d 40 28 4d 8d 6c 24 18 49 89 6c 24
RSP: 002b:00007ffee440e380 EFLAGS: 00000287
RAX: 0000000000040000 RBX: 000000000000fc00 RCX: 0000000001000000
RDX: 0000000000010000 RSI: 0000000001000000 RDI: 000055ce584c0e30
RBP: 0000000000000400 R08: 0000000000000009 R09: 0000000002000000
R10: 0000000000000053 R11: 0000000000000246 R12: 000055ce584c0480
R13: 000055ce584c0498 R14: 000055ce584c0e88 R15: 000055ce584c0e30
FS:  00007ff35b9acc80 GS:  0000000000000000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/16 09:19 upstream 052d534373b7 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in btrfs_sync_file
* Struck through repros no longer work on HEAD.