syzbot


INFO: task hung in f2fs_fallocate (2)

Status: auto-obsoleted due to no activity on 2024/02/15 04:04
Subsystems: f2fs
[Documentation on labels]
First crash: 342d, last: 340d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in f2fs_fallocate (3) f2fs 3 227d 243d 0/28 auto-obsoleted due to no activity on 2024/06/07 18:19
upstream INFO: task hung in f2fs_fallocate f2fs 1 558d 558d 0/28 auto-obsoleted due to no activity on 2023/07/12 13:35
linux-5.15 INFO: task hung in f2fs_fallocate 2 2d16h 2d16h 0/3 upstream: reported on 2024/10/20 06:59

Sample crash report:
INFO: task syz-executor.1:9762 blocked for more than 143 seconds.
      Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:29168 pid:9762  tgid:9701  ppid:5088   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
 __schedule_loop kernel/sched/core.c:6763 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6778
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835
 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]
 f2fs_fallocate+0x340/0x6b0 fs/f2fs/file.c:1821
 vfs_fallocate+0x551/0x6b0 fs/open.c:324
 ksys_fallocate fs/open.c:347 [inline]
 __do_sys_fallocate fs/open.c:355 [inline]
 __se_sys_fallocate fs/open.c:353 [inline]
 __x64_sys_fallocate+0xbd/0x100 fs/open.c:353
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f8d3407cae9
RSP: 002b:00007f8d34e2e0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f8d3419c120 RCX: 00007f8d3407cae9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006
RBP: 00007f8d340c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8d3419c120 R15: 00007fffed71d538
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
 #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
 #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613
4 locks held by kworker/u4:9/2851:
 #0: ffff888141a55938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
 #0: ffff888141a55938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703
 #1: ffffc9000a7efd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
 #1: ffffc9000a7efd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703
 #2: ffff888022fa20e0 (&type->s_umount_key#71){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:610
 #3: ffff88807f2f92a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2133 [inline]
 #3: ffff88807f2f92a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437
2 locks held by getty/4810:
 #0: ffff88802a1590a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
5 locks held by syz-executor.1/9707:
2 locks held by syz-executor.1/9762:
 #0: ffff888022fa2418 (sb_writers#24){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2713 [inline]
 #0: ffff888022fa2418 (sb_writers#24){.+.+}-{0:0}, at: vfs_fallocate+0x4c4/0x6b0 fs/open.c:323
 #1: ffff88803a250150 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
 #1: ffff88803a250150 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: f2fs_fallocate+0x340/0x6b0 fs/f2fs/file.c:1821
2 locks held by syz-executor.1/11382:
 #0: ffff888022fa20e0 (&type->s_umount_key#71){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline]
 #0: ffff888022fa20e0 (&type->s_umount_key#71){++++}-{3:3}, at: super_lock+0x176/0x3a0 fs/super.c:117
 #1: ffff88801ca0c7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline]
 #1: ffff88801ca0c7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756

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

NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 11 Comm: kworker/u4:0 Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: events_unbound cfg80211_wiphy_work
RIP: 0010:lockdep_hardirqs_on_prepare+0x14a/0x780 kernel/locking/lockdep.c:4345
Code: 00 00 00 00 00 fc ff df f6 44 24 41 02 0f 85 85 03 00 00 48 c7 c0 00 c3 5c 92 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 5c 05 00 00 <83> 3d 7f d6 ef 10 00 75 33 48 c7 c0 c5 90 00 8f 48 c1 e8 03 0f b6
RSP: 0018:ffffc90000106e60 EFLAGS: 00000097
RAX: 0000000000000004 RBX: 1ffff92000020dd4 RCX: ffffffff925cc303
RDX: dffffc0000000000 RSI: ffffffff8bbdf3e0 RDI: ffffffff8bbdf3a0
RBP: ffffc90000106f08 R08: ffffffff8f00c1ef R09: 1ffffffff1e0183d
R10: dffffc0000000000 R11: fffffbfff1e0183e R12: ffffea000068ce00
R13: ffff888012c41dc0 R14: ffffc90000106ea0 R15: 1ffff92000020dd0
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005563f9f0e600 CR3: 000000000d730000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 trace_hardirqs_on+0x28/0x40 kernel/trace/trace_preemptirq.c:61
 ___slab_alloc+0x3c7/0x1330 mm/slub.c:3156
 __slab_alloc mm/slub.c:3322 [inline]
 __slab_alloc_node mm/slub.c:3375 [inline]
 slab_alloc_node mm/slub.c:3468 [inline]
 __kmem_cache_alloc_node+0x21d/0x300 mm/slub.c:3517
 __do_kmalloc_node mm/slab_common.c:1006 [inline]
 __kmalloc+0xa2/0x1a0 mm/slab_common.c:1020
 kmalloc include/linux/slab.h:604 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 ieee802_11_parse_elems_full+0xe7/0x2470 net/mac80211/util.c:1628
 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2288 [inline]
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2295 [inline]
 ieee80211_inform_bss+0x146/0x1050 net/mac80211/scan.c:79
 rdev_inform_bss+0x11b/0x480 net/wireless/rdev-ops.h:418
 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2909 [inline]
 cfg80211_inform_bss_frame_data+0xe27/0x17c0 net/wireless/scan.c:2936
 ieee80211_bss_info_update+0x7ca/0xaa0 net/mac80211/scan.c:205
 ieee80211_rx_bss_info net/mac80211/ibss.c:1098 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1577 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x191d/0x2d30 net/mac80211/ibss.c:1604
 ieee80211_iface_process_skb net/mac80211/iface.c:1589 [inline]
 ieee80211_iface_work+0x805/0xd90 net/mac80211/iface.c:1643
 cfg80211_wiphy_work+0x21e/0x250 net/wireless/core.c:435
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2703
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2784
 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>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/17 04:02 upstream 7475e51b8796 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in f2fs_fallocate
2023/11/16 02:42 upstream c42d9eeef8e5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in f2fs_fallocate
2023/11/15 01:06 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in f2fs_fallocate
* Struck through repros no longer work on HEAD.