INFO: task syz-executor.2:31093 blocked for more than 143 seconds. Not tainted 6.7.0-rc2-syzkaller-00206-gb46ae77f6787 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:22608 pid:31093 tgid:31091 ppid:5092 flags:0x00004006 Call Trace: 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 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x6a3/0xd60 kernel/locking/mutex.c:747 reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27 map_block_for_writepage fs/reiserfs/inode.c:2380 [inline] reiserfs_write_full_folio fs/reiserfs/inode.c:2576 [inline] reiserfs_writepage+0xa21/0x38b0 fs/reiserfs/inode.c:2729 writepage_cb+0x64/0x130 mm/page-writeback.c:2537 write_cache_pages+0x827/0x1400 mm/page-writeback.c:2474 do_writepages+0x412/0x670 mm/page-writeback.c:2558 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:387 __filemap_fdatawrite_range mm/filemap.c:420 [inline] file_write_and_wait_range+0x20f/0x300 mm/filemap.c:778 reiserfs_sync_file+0x70/0x270 fs/reiserfs/file.c:151 generic_write_sync include/linux/fs.h:2653 [inline] generic_file_write_iter+0x2a1/0x310 mm/filemap.c:4043 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x792/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 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:0x7f259587cae9 RSP: 002b:00007f25965220c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f259599bf80 RCX: 00007f259587cae9 RDX: 00000000fffffdef RSI: 0000000020000140 RDI: 0000000000000005 RBP: 00007f25958c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f259599bf80 R15: 00007ffe11674438 INFO: task syz-executor.2:31110 blocked for more than 143 seconds. Not tainted 6.7.0-rc2-syzkaller-00206-gb46ae77f6787 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:25936 pid:31110 tgid:31091 ppid:5092 flags:0x00004006 Call Trace: 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 io_schedule+0x8c/0x100 kernel/sched/core.c:8998 folio_wait_bit_common+0x881/0x12b0 mm/filemap.c:1273 __filemap_get_folio+0xa3/0xbb0 mm/filemap.c:1864 pagecache_get_page+0x2c/0x1f0 mm/folio-compat.c:99 find_or_create_page include/linux/pagemap.h:740 [inline] grab_cache_page include/linux/pagemap.h:856 [inline] convert_tail_for_hole fs/reiserfs/inode.c:592 [inline] reiserfs_get_block+0x3a26/0x5130 fs/reiserfs/inode.c:921 __block_write_begin_int+0x54d/0x1ad0 fs/buffer.c:2119 reiserfs_write_begin+0x24d/0x520 fs/reiserfs/inode.c:2767 generic_cont_expand_simple+0x18b/0x2a0 fs/buffer.c:2473 reiserfs_setattr+0x57d/0x1140 fs/reiserfs/inode.c:3298 notify_change+0xb99/0xe60 fs/attr.c:499 do_truncate+0x220/0x300 fs/open.c:66 do_sys_ftruncate+0x2f3/0x390 fs/open.c:194 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:0x7f259587cae9 RSP: 002b:00007f25965010c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f259599c050 RCX: 00007f259587cae9 RDX: 0000000000000000 RSI: 0000000007000000 RDI: 0000000000000006 RBP: 00007f25958c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f259599c050 R15: 00007ffe11674438 Showing all locks held in the system: 2 locks held by kworker/u4:0/11: #0: ffff8880b993c358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #1: ffff8880b9928808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988 4 locks held by kworker/1:0/23: #0: ffff888012c71538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012c71538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #1: ffffc900001d7d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc900001d7d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #2: ffff8880540440e0 (&type->s_umount_key#25){++++}-{3:3}, at: flush_old_commits+0xcb/0x2f0 fs/reiserfs/super.c:97 #3: ffff888029148090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27 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 2 locks held by getty/4815: #0: ffff88802623e0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.1/5091: 3 locks held by kworker/u4:6/29514: #0: ffff888141a59938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888141a59938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #1: ffffc90015937d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90015937d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #2: ffff8880540440e0 (&type->s_umount_key#25){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:610 3 locks held by syz-executor.2/31093: #0: ffff88801ff31248 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2b0/0x340 fs/file.c:1177 #1: ffff888054044418 (sb_writers#29){.+.+}-{0:0}, at: vfs_write+0x223/0xb20 fs/read_write.c:580 #2: ffff888029148090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27 3 locks held by syz-executor.2/31110: #0: ffff888054044418 (sb_writers#29){.+.+}-{0:0}, at: do_sys_ftruncate+0x258/0x390 fs/open.c:191 #1: ffff88804d4dc520 (&sb->s_type->i_mutex_key#35){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88804d4dc520 (&sb->s_type->i_mutex_key#35){+.+.}-{3:3}, at: do_truncate+0x20c/0x300 fs/open.c:64 #2: ffff888029148090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 fs/reiserfs/lock.c:78 2 locks held by kworker/0:2/31235: #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #1: ffffc9001627fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc9001627fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 1 lock held by syz-executor.0/32592: #0: ffff88802a9f4418 (sb_writers#4){.+.+}-{0:0}, at: vfs_writev fs/read_write.c:932 [inline] #0: ffff88802a9f4418 (sb_writers#4){.+.+}-{0:0}, at: do_pwritev+0x1fe/0x360 fs/read_write.c:1030 2 locks held by syz-executor.5/32589: 5 locks held by syz-executor.3/32593: 2 locks held by syz-executor.2/32591: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc2-syzkaller-00206-gb46ae77f6787 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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+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 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5091 Comm: syz-executor.1 Not tainted 6.7.0-rc2-syzkaller-00206-gb46ae77f6787 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:122 [inline] RIP: 0010:rcu_is_watching+0x15/0xb0 kernel/rcu/tree.c:700 Code: 2b ff ff ff e8 6c 47 a0 09 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 41 57 41 56 53 65 ff 05 08 1a 8d 7e e8 2b 64 a0 09 <89> c3 83 f8 08 73 76 49 bf 00 00 00 00 00 fc ff df 4c 8d 34 dd 40 RSP: 0018:ffffc90003e5f530 EFLAGS: 00000282 RAX: 0000000000000001 RBX: ffffea000110a180 RCX: ffff888023221dc0 RDX: ffff888023221dc0 RSI: ffffffff8bbdf5a0 RDI: ffffffff8bbdf560 RBP: 0000000000000001 R08: ffffffff81f5c231 R09: 1ffffffff21ba86c R10: dffffc0000000000 R11: fffffbfff21ba86d R12: ffffea000110a198 R13: dffffc0000000000 R14: ffffffff81f5c200 R15: ffffea000110a188 FS: 00005555556f7480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2bd7d95e70 CR3: 000000005ca95000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock include/linux/rcupdate.h:748 [inline] page_ext_get+0x5a/0x2a0 mm/page_ext.c:508 __page_table_check_zero+0x13d/0x4a0 mm/page_table_check.c:140 page_table_check_free include/linux/page_table_check.h:41 [inline] free_pages_prepare mm/page_alloc.c:1138 [inline] free_unref_page_prepare+0x945/0xa60 mm/page_alloc.c:2347 free_unref_page_list+0x5a0/0x840 mm/page_alloc.c:2533 release_pages+0x2117/0x2400 mm/swap.c:1042 __folio_batch_release+0x84/0x100 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] shmem_undo_range+0x6aa/0x19d0 mm/shmem.c:1004 shmem_truncate_range mm/shmem.c:1096 [inline] shmem_evict_inode+0x29b/0xa60 mm/shmem.c:1224 evict+0x2a4/0x630 fs/inode.c:666 __dentry_kill+0x436/0x660 fs/dcache.c:607 dentry_kill+0xbb/0x290 dput+0x21e/0x470 fs/dcache.c:913 __fput+0x60b/0xa10 fs/file_table.c:402 task_work_run+0x24a/0x300 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x150 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x69/0x2a0 kernel/entry/common.c:296 do_syscall_64+0x52/0x110 arch/x86/entry/common.c:88 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f301287de17 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fffaaeebd88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f301287de17 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fffaaeebe40 RBP: 00007fffaaeebe40 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffaaeecf00 R13: 00007f30128c73b9 R14: 00000000001d01bb R15: 0000000000000017