INFO: task kworker/0:4:4747 blocked for more than 143 seconds. Not tainted 6.3.0-rc3-next-20230324-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:4 state:D stack:23960 pid:4747 ppid:2 flags:0x00004000 Workqueue: events_long flush_old_commits Call Trace: context_switch kernel/sched/core.c:5323 [inline] __schedule+0x1d23/0x5650 kernel/sched/core.c:6648 schedule+0xde/0x1a0 kernel/sched/core.c:6724 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6783 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 reiserfs_write_lock+0x79/0x100 fs/reiserfs/lock.c:27 reiserfs_sync_fs+0x81/0x130 fs/reiserfs/super.c:76 flush_old_commits+0xfb/0x200 fs/reiserfs/super.c:111 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x33e/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c795270 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:519 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c794f70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:519 1 lock held by khungtaskd/28: #0: ffffffff8c795e80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6545 4 locks held by kworker/0:4/4747: #0: ffff888012471538 ((wq_completion)events_long){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012471538 ((wq_completion)events_long){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012471538 ((wq_completion)events_long){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888012471538 ((wq_completion)events_long){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff888012471538 ((wq_completion)events_long){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff888012471538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc9000370fdb0 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffff8880781d00e0 (&type->s_umount_key#53){++++}-{3:3}, at: flush_old_commits+0x7c/0x200 fs/reiserfs/super.c:97 #3: ffff888060a93090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x79/0x100 fs/reiserfs/lock.c:27 2 locks held by getty/4762: #0: ffff888027f2b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 7 locks held by syz-executor.5/20340: 2 locks held by syz-executor.4/21706: #0: ffff8880781d00e0 ( &type->s_umount_key#53){++++}-{3:3}, at: iterate_supers+0xdf/0x2a0 fs/super.c:743 #1: ffff888060a93090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x79/0x100 fs/reiserfs/lock.c:27 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc3-next-20230324-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x33e/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 20340 Comm: syz-executor.5 Not tainted 6.3.0-rc3-next-20230324-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:printk_get_next_message+0x1de/0x710 kernel/printk/printk.c:2810 Code: 1b 00 45 84 f6 74 78 e8 00 c6 1b 00 4c 8b 6c 24 38 48 b8 00 00 00 00 00 fc ff df 49 8d 7d 13 48 89 fa 48 c1 ea 03 0f b6 04 02 <48> 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 5e 04 00 00 45 0f b6 6d RSP: 0018:ffffc9000bdfeab0 EFLAGS: 00000a02 RAX: 0000000000000000 RBX: ffffc9000bdfecc0 RCX: ffffc9000cdaa000 RDX: 1ffff920017bfd67 RSI: ffffffff81671060 RDI: ffffc9000bdfeb3b RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffffc9000bdfeb28 R14: 0000000000000001 R15: ffffc9000bdfeae8 FS: 00007f3f3bb9f700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c01e079000 CR3: 0000000079edb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: console_emit_next_record kernel/printk/printk.c:2853 [inline] console_flush_all+0x371/0xcc0 kernel/printk/printk.c:2942 console_unlock+0xb8/0x1f0 kernel/printk/printk.c:3016 vprintk_emit+0x1bd/0x600 kernel/printk/printk.c:2316 vprintk+0x84/0xa0 kernel/printk/printk_safe.c:50 _printk+0xbf/0xf0 kernel/printk/printk.c:2337 __reiserfs_warning+0xf9/0x190 fs/reiserfs/prints.c:290 reiserfs_read_bitmap_block+0x196/0x520 fs/reiserfs/bitmap.c:1434 scan_bitmap_block.constprop.0+0x1dc/0xfd0 fs/reiserfs/bitmap.c:164 scan_bitmap fs/reiserfs/bitmap.c:402 [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+0x2c9c/0x5790 fs/reiserfs/bitmap.c:1375 reiserfs_new_unf_blocknrs fs/reiserfs/reiserfs.h:3361 [inline] _allocate_block fs/reiserfs/inode.c:645 [inline] reiserfs_get_block+0x9da/0x4100 fs/reiserfs/inode.c:756 reiserfs_get_blocks_direct_io+0xdd/0x300 fs/reiserfs/inode.c:522 get_more_blocks fs/direct-io.c:639 [inline] do_direct_IO fs/direct-io.c:927 [inline] __blockdev_direct_IO+0x1bfe/0x3490 fs/direct-io.c:1239 blockdev_direct_IO include/linux/fs.h:2792 [inline] reiserfs_direct_IO+0x10d/0x280 fs/reiserfs/inode.c:3243 generic_file_direct_write+0x239/0x560 mm/filemap.c:3845 __generic_file_write_iter+0x1a6/0x500 mm/filemap.c:4005 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4081 call_write_iter include/linux/fs.h:1854 [inline] do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735 do_iter_write+0x182/0x700 fs/read_write.c:861 vfs_writev+0x1aa/0x670 fs/read_write.c:934 do_pwritev+0x1b6/0x270 fs/read_write.c:1031 __do_sys_pwritev2 fs/read_write.c:1090 [inline] __se_sys_pwritev2 fs/read_write.c:1081 [inline] __x64_sys_pwritev2+0xef/0x150 fs/read_write.c:1081 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3f3ae8c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3f3bb9f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f3f3afabf80 RCX: 00007f3f3ae8c0f9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007f3f3aee7b39 R08: 000000000000d600 R09: 0000000000000003 R10: 0000000000001400 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdceac868f R14: 00007f3f3bb9f300 R15: 0000000000022000