INFO: task kworker/1:6:5130 blocked for more than 143 seconds. Not tainted 6.6.0-rc3-syzkaller-00165-g3b517966c561 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:6 state:D stack:24328 pid:5130 ppid:2 flags:0x00004000 Workqueue: events_long flush_old_commits 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 __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 reiserfs_sync_fs fs/reiserfs/super.c:76 [inline] flush_old_commits+0x1e3/0x2f0 fs/reiserfs/super.c:111 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5f/0xff0 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:304 INFO: task syz-executor.0:8558 blocked for more than 144 seconds. Not tainted 6.6.0-rc3-syzkaller-00165-g3b517966c561 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:26104 pid:8558 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] __blockdev_direct_IO+0x336/0x4900 fs/direct-io.c:1144 blockdev_direct_IO include/linux/fs.h:2969 [inline] reiserfs_direct_IO+0xef/0x210 fs/reiserfs/inode.c:3242 generic_file_read_iter+0x342/0x550 mm/filemap.c:2808 call_read_iter include/linux/fs.h:1950 [inline] copy_splice_read+0x4c9/0x9c0 fs/splice.c:364 splice_direct_to_actor+0x2c4/0x9e0 fs/splice.c:1069 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194 do_sendfile+0x623/0x1070 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308 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:0x7f636607cae9 RSP: 002b:00007f6366dcc0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f636619c050 RCX: 00007f636607cae9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006 RBP: 00007f63660c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f636619c050 R15: 00007ffe9eb87658 INFO: task syz-executor.0:8559 blocked for more than 146 seconds. Not tainted 6.6.0-rc3-syzkaller-00165-g3b517966c561 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:29032 pid:8559 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 __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 reiserfs_ioctl+0x74/0x2f0 fs/reiserfs/ioctl.c:81 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:0x7f636607cae9 RSP: 002b:00007f6366dab0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f636619c120 RCX: 00007f636607cae9 RDX: 0000000020000240 RSI: 00000000c0c0583b RDI: 0000000000000005 RBP: 00007f63660c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f636619c120 R15: 00007ffe9eb87658 INFO: task syz-executor.0:8561 blocked for more than 147 seconds. Not tainted 6.6.0-rc3-syzkaller-00165-g3b517966c561 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:27528 pid:8561 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 __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 reiserfs_setattr+0x3e0/0x1140 fs/reiserfs/inode.c:3281 notify_change+0xb99/0xe60 fs/attr.c:499 do_truncate+0x220/0x300 fs/open.c:66 handle_truncate fs/namei.c:3298 [inline] do_open fs/namei.c:3643 [inline] path_openat+0x2959/0x3180 fs/namei.c:3796 do_filp_open+0x234/0x490 fs/namei.c:3823 do_sys_openat2+0x13e/0x1d0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1448 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:0x7f636607cae9 RSP: 002b:00007f6366d8a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f636619c1f0 RCX: 00007f636607cae9 RDX: 0000000000007a05 RSI: 0000000020000140 RDI: ffffffffffffff9c RBP: 00007f63660c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001700 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f636619c1f0 R15: 00007ffe9eb87658 Showing all locks held in the system: 4 locks held by kworker/1:0/23: #0: ffff888012871538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012871538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 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/0x1400 kernel/workqueue.c:2703 #2: ffff888034d940e0 (&type->s_umount_key#24){++++}-{3:3}, at: flush_old_commits+0xcb/0x2f0 fs/reiserfs/super.c:97 #3: ffff888035645090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27 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/4789: #0: ffff88802aea20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000311b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206 3 locks held by syz-executor.1/5064: 4 locks held by kworker/1:6/5130: #0: ffff888012871538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012871538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc900047a7d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc900047a7d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff888069aba0e0 (&type->s_umount_key#24){++++}-{3:3}, at: flush_old_commits+0xcb/0x2f0 fs/reiserfs/super.c:97 #3: ffff88803806b090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27 2 locks held by kworker/1:8/5174: #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: ffffc9000496fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc9000496fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 3 locks held by syz-executor.0/8545: 2 locks held by syz-executor.0/8558: #0: ffff888069aba410 (sb_writers#27){.+.+}-{0:0}, at: do_sendfile+0x600/0x1070 fs/read_write.c:1253 #1: ffff888037331020 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888037331020 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: __blockdev_direct_IO+0x336/0x4900 fs/direct-io.c:1144 1 lock held by syz-executor.0/8559: #0: ffff88803806b090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27 3 locks held by syz-executor.0/8561: #0: ffff888069aba410 (sb_writers#27){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:403 #1: ffff888037330980 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888037330980 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: do_truncate+0x20c/0x300 fs/open.c:64 #2: ffff88803806b090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27 3 locks held by syz-executor.3/8720: 2 locks held by syz-executor.3/8734: #0: ffff888034d94410 (sb_writers#27){.+.+}-{0:0}, at: do_sendfile+0x600/0x1070 fs/read_write.c:1253 #1: ffff888037332aa0 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888037332aa0 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: __blockdev_direct_IO+0x336/0x4900 fs/direct-io.c:1144 4 locks held by syz-executor.3/8735: #0: ffff88801ab77c48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2b0/0x340 fs/file.c:1064 #1: ffff888034d94410 (sb_writers#27){.+.+}-{0:0}, at: vfs_write+0x216/0xaf0 fs/read_write.c:580 #2: ffff888037332400 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #2: ffff888037332400 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 mm/filemap.c:4087 #3: ffff888035645090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27 1 lock held by syz-executor.3/8897: #0: ffffffff8d331db8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8d331db8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992 1 lock held by syz-executor.5/9426: #0: ffff88801d106360 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_set_status+0x2a/0x910 drivers/block/loop.c:1269 1 lock held by syz-executor.2/9430: 5 locks held by syz-executor.4/9432: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc3-syzkaller-00165-g3b517966c561 #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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8720 Comm: syz-executor.3 Not tainted 6.6.0-rc3-syzkaller-00165-g3b517966c561 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:vsnprintf+0x194/0x1d80 lib/vsprintf.c:2774 Code: 24 80 00 00 00 41 0f b6 fe 48 c7 c6 c0 f0 82 8e e8 a1 b9 c6 f6 4c 89 74 24 40 41 0f b6 c6 83 f8 08 0f 8e ba 00 00 00 83 f8 0c <48> 8b 54 24 10 0f 8e 5d 01 00 00 83 f8 0f 48 8b 4c 24 40 0f 8e 02 RSP: 0018:ffffc90016d65b00 EFLAGS: 00000293 RAX: 0000000000000009 RBX: 0000000000000004 RCX: 0000000000040000 RDX: 0000000000000012 RSI: ffffffff8e82f0c0 RDI: 0000000000000009 RBP: ffffc90016d65bf0 R08: 0000000000000001 R09: ffffffff8ac7558f R10: 0000000000000012 R11: ffff888022c45940 R12: ffffffff8b0b6385 R13: dffffc0000000000 R14: ffff0a0000000509 R15: ffffffff8b0b6381 FS: 00007f25dd0056c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffda9cb7088 CR3: 000000007afd4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sprintf+0xda/0x120 lib/vsprintf.c:3022 print_time kernel/printk/printk.c:1327 [inline] info_print_prefix+0x16b/0x300 kernel/printk/printk.c:1353 record_print_text kernel/printk/printk.c:1402 [inline] printk_get_next_message+0x408/0xce0 kernel/printk/printk.c:2842 console_emit_next_record kernel/printk/printk.c:2877 [inline] console_flush_all+0x411/0xec0 kernel/printk/printk.c:2966 console_unlock+0x13b/0x4d0 kernel/printk/printk.c:3035 vprintk_emit+0x508/0x720 kernel/printk/printk.c:2307 _printk+0xd5/0x120 kernel/printk/printk.c:2332 __reiserfs_warning+0x153/0x1a0 fs/reiserfs/prints.c:290 reiserfs_read_bitmap_block+0x236/0x6d0 fs/reiserfs/bitmap.c:1434 scan_bitmap_block+0x1a1/0xff0 fs/reiserfs/bitmap.c:164 scan_bitmap fs/reiserfs/bitmap.c:391 [inline] allocate_without_wrapping_disk fs/reiserfs/bitmap.c:1161 [inline] blocknrs_and_prealloc_arrays_from_search_start fs/reiserfs/bitmap.c:1274 [inline] reiserfs_allocate_blocknrs+0x2b0a/0x5070 fs/reiserfs/bitmap.c:1375 reiserfs_new_form_blocknrs fs/reiserfs/reiserfs.h:3342 [inline] get_empty_nodes+0x7c2/0xd70 fs/reiserfs/fix_node.c:879 fix_nodes+0x261b/0x8ce0 fs/reiserfs/fix_node.c:2663 reiserfs_paste_into_item+0x654/0x870 fs/reiserfs/stree.c:2128 reiserfs_get_block+0x2250/0x5130 fs/reiserfs/inode.c:1069 __block_write_begin_int+0x54d/0x1ac0 fs/buffer.c:2120 reiserfs_write_begin+0x24d/0x520 fs/reiserfs/inode.c:2771 generic_cont_expand_simple+0x18b/0x2a0 fs/buffer.c:2476 reiserfs_setattr+0x57d/0x1140 fs/reiserfs/inode.c:3302 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:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f25dc27cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f25dd0050c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f25dc39bf80 RCX: 00007f25dc27cae9 RDX: 0000000000000000 RSI: 0000000002007ffb RDI: 0000000000000007 RBP: 00007f25dc2c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f25dc39bf80 R15: 00007ffcb2958aa8