syzbot


INFO: task hung in xfs_buf_item_unpin

Status: auto-obsoleted due to no activity on 2023/10/11 09:07
Reported-by: syzbot+666446d4aba279647315@syzkaller.appspotmail.com
First crash: 581d, last: 470d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in xfs_buf_item_unpin 2 540d 552d 0/3 auto-obsoleted due to no activity on 2023/08/21 23:02
upstream INFO: task hung in xfs_buf_item_unpin xfs C error done 147 288d 595d 0/28 auto-obsoleted due to no activity on 2024/03/11 08:02
upstream INFO: task hung in xfs_buf_item_unpin (2) xfs C done 83 2d11h 60d 0/28 upstream: reported C repro on 2024/08/16 05:17

Sample crash report:
INFO: task kworker/0:1H:52 blocked for more than 143 seconds.
      Not tainted 6.1.22-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:1H    state:D stack:25856 pid:52    ppid:2      flags:0x00004000
Workqueue: xfs-log/loop3 xlog_ioend_work
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x132c/0x4330 kernel/sched/core.c:6554
 schedule+0xbf/0x180 kernel/sched/core.c:6630
 schedule_timeout+0xac/0x300 kernel/time/timer.c:1911
 ___down_common+0x336/0x5d0 kernel/locking/semaphore.c:225
 __down_common+0x8c/0x360 kernel/locking/semaphore.c:246
 down+0x80/0xb0 kernel/locking/semaphore.c:63
 xfs_buf_lock+0x171/0x5b0 fs/xfs/xfs_buf.c:1120
 xfs_buf_item_unpin+0x209/0x7b0 fs/xfs/xfs_buf_item.c:547
 xfs_trans_committed_bulk+0x342/0x830 fs/xfs/xfs_trans.c:806
 xlog_cil_committed+0x269/0xed0 fs/xfs/xfs_log_cil.c:795
 xlog_cil_process_committed+0x155/0x1a0 fs/xfs/xfs_log_cil.c:823
 xlog_state_shutdown_callbacks+0x2b6/0x3a0 fs/xfs/xfs_log.c:538
 xlog_force_shutdown+0x328/0x380 fs/xfs/xfs_log.c:3821
 xlog_ioend_work+0xa9/0x100 fs/xfs/xfs_log.c:1402
 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289
 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
 kthread+0x268/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
INFO: task syz-executor.3:14752 blocked for more than 144 seconds.
      Not tainted 6.1.22-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:21928 pid:14752 ppid:3691   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x132c/0x4330 kernel/sched/core.c:6554
 schedule+0xbf/0x180 kernel/sched/core.c:6630
 xlog_wait+0x166/0x1e0 fs/xfs/xfs_log_priv.h:617
 xlog_wait_on_iclog+0x31c/0x560 fs/xfs/xfs_log.c:907
 xfs_log_force_seq+0x1d6/0x440 fs/xfs/xfs_log.c:3393
 __xfs_trans_commit+0xb70/0x1080 fs/xfs/xfs_trans.c:1014
 xfs_sync_sb_buf+0x14b/0x1e0 fs/xfs/libxfs/xfs_sb.c:1108
 xfs_ioc_setlabel fs/xfs/xfs_ioctl.c:1805 [inline]
 xfs_file_ioctl+0x126b/0x1700 fs/xfs/xfs_ioctl.c:1903
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f632388c0f9
RSP: 002b:00007f632468c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f63239abf80 RCX: 00007f632388c0f9
RDX: 0000000020000200 RSI: 0000000041009432 RDI: 0000000000000004
RBP: 00007f63238e7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe474a5bff R14: 00007f632468c300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8cf26830 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8cf27030 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
2 locks held by kworker/0:1/14:
 #0: ffff888012466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77a/0x11f0
 #1: ffffc90000137d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7bd/0x11f0 kernel/workqueue.c:2264
1 lock held by khungtaskd/28:
 #0: ffffffff8cf26660 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/0:1H/52:
 #0: ffff8880988f1d38 ((wq_completion)xfs-log/loop3){+.+.}-{0:0}, at: process_one_work+0x77a/0x11f0
 #1: ffffc90000bd7d20 ((work_completion)(&iclog->ic_end_io_work)){+.+.}-{0:0}, at: process_one_work+0x7bd/0x11f0 kernel/workqueue.c:2264
1 lock held by syslogd/2979:
2 locks held by getty/3314:
 #0: ffff888144e63098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2177
2 locks held by syz-executor.5/3700:
 #0: ffff8880794580e0 (&type->s_umount_key#95){++++}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:362
 #1: ffffffff8cf2bc38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #1: ffffffff8cf2bc38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3b0/0x8a0 kernel/rcu/tree_exp.h:948
3 locks held by kworker/u4:24/7878:
 #0: ffff888012606938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x77a/0x11f0
 #1: ffffc9000b237d20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7bd/0x11f0 kernel/workqueue.c:2264
 #2: ffffffff8cf2bb00 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x5f0 kernel/rcu/tree.c:3953
3 locks held by kworker/0:11/9045:
 #0: ffff888012464d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77a/0x11f0
 #1: ffffc90003657d20 (fqdir_free_work){+.+.}-{0:0}, at: process_one_work+0x7bd/0x11f0 kernel/workqueue.c:2264
 #2: ffffffff8cf2bb00 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x5f0 kernel/rcu/tree.c:3953
1 lock held by syz-executor.3/14752:
 #0: ffff888098866460 (sb_writers#28){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 fs/namespace.c:437
2 locks held by syz-executor.2/17399:
 #0: ffff88814b552460 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x5f7/0xff0 fs/read_write.c:1254
 #1: ffff88809d8dca38 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff88809d8dca38 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:525 [inline]
 #1: ffff88809d8dca38 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_write_iter+0x5c3/0x18f0 fs/ext4/file.c:698
2 locks held by syz-executor.2/17400:
 #0: ffff88814b552460 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x5f7/0xff0 fs/read_write.c:1254
 #1: ffff88809d8dca38 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff88809d8dca38 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:525 [inline]
 #1: ffff88809d8dca38 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_write_iter+0x5c3/0x18f0 fs/ext4/file.c:698

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.22-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xf18/0xf60 kernel/hung_task.c:377
 kthread+0x268/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5014 Comm: kworker/u4:15 Not tainted 6.1.22-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: phy50 ieee80211_iface_work
RIP: 0010:__kernel_text_address+0x18/0x40 kernel/extable.c:79
Code: 84 00 eb b9 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 53 48 89 fb e8 37 00 00 00 85 c0 0f 95 c0 48 c7 c1 00 20 8f 8f 48 39 cb <0f> 93 c1 48 c7 c2 4c 73 a4 8f 48 39 d3 0f 92 c2 20 ca 08 c2 0f b6
RSP: 0018:ffffc90004bdf750 EFLAGS: 00000283
RAX: 0000000000000001 RBX: ffffffff815a5cdf RCX: ffffffff8f8f2000
RDX: dffffc0000000000 RSI: ffffc90004bd8000 RDI: ffffffff815a5cdf
RBP: ffffc90004bdf810 R08: ffffc90004bdfde0 R09: ffffc90004bdf7d0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88809c969d40
R13: ffffffff81779780 R14: dffffc0000000000 R15: 1ffff9200097bef9
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5cc43e6718 CR3: 000000008c1d9000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516
 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
 kasan_slab_free include/linux/kasan.h:177 [inline]
 slab_free_hook mm/slub.c:1724 [inline]
 slab_free_freelist_hook mm/slub.c:1750 [inline]
 slab_free mm/slub.c:3661 [inline]
 kmem_cache_free+0x292/0x510 mm/slub.c:3683
 kfree_skb include/linux/skbuff.h:1216 [inline]
 ieee80211_iface_work+0x260/0xce0 net/mac80211/iface.c:1688
 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289
 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
 kthread+0x268/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/02 23:04 linux-6.1.y 3b29299e5f60 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in xfs_buf_item_unpin
2023/03/28 10:02 linux-6.1.y e3a87a10f259 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in xfs_buf_item_unpin
2023/07/03 09:07 linux-6.1.y 0f4ac6b4c5f0 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_buf_item_unpin
2023/04/15 21:48 linux-6.1.y 0102425ac76b ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_buf_item_unpin
2023/04/13 12:00 linux-6.1.y 543aff194ab6 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_buf_item_unpin
2023/04/12 05:44 linux-6.1.y 543aff194ab6 49faf98d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_buf_item_unpin
2023/04/11 05:35 linux-6.1.y 543aff194ab6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_buf_item_unpin
2023/04/10 01:57 linux-6.1.y 543aff194ab6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_buf_item_unpin
2023/03/28 14:02 linux-6.1.y e3a87a10f259 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_buf_item_unpin
2023/03/14 03:47 linux-6.1.y 6449a0ba6843 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in xfs_buf_item_unpin
* Struck through repros no longer work on HEAD.