INFO: task syz-executor.5:32239 blocked for more than 143 seconds.
Not tainted 6.6.0-rc3-syzkaller-00146-g9f3ebbef746f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:25704 pid:32239 ppid:5065 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x196c/0x4af0 kernel/sched/core.c:6695
schedule+0xc3/0x180 kernel/sched/core.c:6771
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6830
rwsem_down_write_slowpath+0xee6/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:802 [inline]
f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline]
__f2fs_ioctl+0x35a0/0xb9b0 fs/f2fs/file.c:4224
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:871 [inline]
__se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f055e27cae9
RSP: 002b:00007f055f0a80c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f055e39c050 RCX: 00007f055e27cae9
RDX: 0000000000008301 RSI: 000000000000f502 RDI: 0000000000000005
RBP: 00007f055e2c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f055e39c050 R15: 00007fff59a1dca8
Showing all locks held in the system:
1 lock held by khungtaskd/29:
#0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline]
#0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline]
#0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613
2 locks held by getty/4786:
#0: ffff88801629e0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900015c72f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206
1 lock held by syz-executor.1/5063:
#0: ffff88807efce0e0 (&type->s_umount_key#66){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88807efce0e0 (&type->s_umount_key#66){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff88807efce0e0 (&type->s_umount_key#66){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:513
4 locks held by kworker/u4:12/20614:
4 locks held by kworker/u4:2/27419:
#0: ffff8880132cdd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
#0: ffff8880132cdd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703
#1: ffffc9000a587d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
#1: ffffc9000a587d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703
#2: ffff88804212a0e0 (&type->s_umount_key#66){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:607
#3: ffff8880786552a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2132 [inline]
#3: ffff8880786552a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437
2 locks held by kworker/1:1/29398:
#0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
#0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703
#1: ffffc900166f7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
#1: ffffc900166f7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703
2 locks held by syz-executor.5/32239:
#0: ffff88804212a410 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:447
#1: ffff888077201300 (&sb->s_type->i_mutex_key#27){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
#1: ffff888077201300 (&sb->s_type->i_mutex_key#27){+.+.}-{3:3}, at: f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline]
#1: ffff888077201300 (&sb->s_type->i_mutex_key#27){+.+.}-{3:3}, at: __f2fs_ioctl+0x35a0/0xb9b0 fs/f2fs/file.c:4224
10 locks held by syz-executor.5/32240:
1 lock held by syz-executor.5/32508:
#0:
ffff88804212a0e0 (&type->s_umount_key#66){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline]
ffff88804212a0e0 (&type->s_umount_key#66){++++}-{3:3}, at: super_lock+0x129/0x390 fs/super.c:117
1 lock held by syz-executor.5/305:
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc3-syzkaller-00146-g9f3ebbef746f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__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+0xfa9/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:304
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 305 Comm: syz-executor.5 Not tainted 6.6.0-rc3-syzkaller-00146-g9f3ebbef746f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:folio_mapping+0x1f9/0x550
Code: e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 ef e8 f4 44 1d 00 49 8b 5d 00 31 c0 48 89 de 48 83 e6 03 <48> 0f 45 d8 31 ff e8 2c d7 c2 ff 48 89 d8 48 83 c4 08 5b 41 5c 41
RSP: 0018:ffffc90015777860 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88802902d338 RCX: dffffc0000000000
RDX: ffffc90017601000 RSI: 0000000000000000 RDI: 0000000000040000
RBP: 0000000000000000 R08: ffffffff81cb373f R09: 1ffffd400017c560
R10: dffffc0000000000 R11: fffff9400017c561 R12: 1ffffd400017c560
R13: ffffea0000be2b18 R14: ffffea0000be2b08 R15: 0000000000000000
FS: 00007f1f13fb06c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c00afb1000 CR3: 00000000327c5000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__folio_cancel_dirty+0x2c/0x5a0 mm/page-writeback.c:2824
folio_cancel_dirty include/linux/pagemap.h:1151 [inline]
truncate_cleanup_folio+0x282/0x5c0 mm/truncate.c:185
truncate_inode_folio+0x55/0x70 mm/truncate.c:194
shmem_undo_range+0x443/0x19c0 mm/shmem.c:1018
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x29e/0xa80 mm/shmem.c:1243
evict+0x2a4/0x620 fs/inode.c:664
__dentry_kill+0x436/0x650 fs/dcache.c:607
dentry_kill+0xbb/0x290
dput+0x21e/0x470 fs/dcache.c:913
__fput+0x60d/0x910 fs/file_table.c:392
__do_sys_close fs/open.c:1572 [inline]
__se_sys_close+0x15f/0x220 fs/open.c:1557
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1f1327b9da
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007f1f13fafe80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f1f1327b9da
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000010 R08: 0000000000000000 R09: 00000000000054f3
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 00007f1f13faff3c R14: 00007f1f13fb0670 R15: 00007f1f099ff000