INFO: task syz-executor.5:6076 blocked for more than 143 seconds. Not tainted 6.2.0-rc3-syzkaller-00021-g7dd4b804e080 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:18512 pid:6076 ppid:5096 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 io_schedule+0x83/0x100 kernel/sched/core.c:8811 folio_wait_bit_common+0x83a/0x12a0 mm/filemap.c:1297 __folio_lock mm/filemap.c:1660 [inline] folio_lock include/linux/pagemap.h:938 [inline] __filemap_get_folio+0x566/0x1250 mm/filemap.c:1932 pagecache_get_page+0x28/0x250 mm/folio-compat.c:98 find_or_create_page include/linux/pagemap.h:612 [inline] grab_cache_page include/linux/pagemap.h:742 [inline] grab_tail_page fs/reiserfs/inode.c:2201 [inline] reiserfs_truncate_file+0x1e3/0x790 fs/reiserfs/inode.c:2269 reiserfs_vfs_truncate_file+0x29/0x40 fs/reiserfs/file.c:133 reiserfs_direct_IO+0x1df/0x200 fs/reiserfs/inode.c:3258 generic_file_direct_write+0x294/0x610 mm/filemap.c:3696 __generic_file_write_iter+0x1c4/0x400 mm/filemap.c:3856 generic_file_write_iter+0xab/0x310 mm/filemap.c:3932 do_iter_write+0x6c2/0xc20 fs/read_write.c:861 iter_file_splice_write+0x7fc/0xfc0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0xe6/0x1c0 fs/splice.c:931 splice_direct_to_actor+0x4e4/0xc00 fs/splice.c:886 do_splice_direct+0x279/0x3d0 fs/splice.c:974 do_sendfile+0x5fb/0xf80 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x14f/0x1b0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ffad1c8c0c9 RSP: 002b:00007ffad2a4c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007ffad1dabf80 RCX: 00007ffad1c8c0c9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006 RBP: 00007ffad1ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 00008400fffffffa R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff94aa3e3f R14: 00007ffad2a4c300 R15: 0000000000022000 INFO: task syz-executor.5:6105 blocked for more than 143 seconds. Not tainted 6.2.0-rc3-syzkaller-00021-g7dd4b804e080 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:19976 pid:6105 ppid:5096 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6690 __mutex_lock_common+0xe4f/0x26e0 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 reiserfs_write_lock+0x77/0xd0 fs/reiserfs/lock.c:27 reiserfs_get_block+0x24e/0x5180 fs/reiserfs/inode.c:680 do_mpage_readpage+0x970/0x1c50 fs/mpage.c:208 mpage_readahead+0x210/0x380 fs/mpage.c:361 read_pages+0x169/0x9c0 mm/readahead.c:161 page_cache_ra_unbounded+0x703/0x820 mm/readahead.c:270 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline] filemap_get_pages+0x465/0x10d0 mm/filemap.c:2600 filemap_read+0x3cf/0xea0 mm/filemap.c:2694 call_read_iter include/linux/fs.h:2183 [inline] generic_file_splice_read+0x1ff/0x5d0 fs/splice.c:309 do_splice_to fs/splice.c:793 [inline] splice_direct_to_actor+0x41b/0xc00 fs/splice.c:865 do_splice_direct+0x279/0x3d0 fs/splice.c:974 do_sendfile+0x5fb/0xf80 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x14f/0x1b0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ffad1c8c0c9 RSP: 002b:00007ffad2a2b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007ffad1dac050 RCX: 00007ffad1c8c0c9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007ffad1ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 00008400fffffffa R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff94aa3e3f R14: 00007ffad2a2b300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d326f50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d327750 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d326d80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4746: #0: ffff88802c12b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 4 locks held by kworker/1:7/5221: #0: ffff888012871538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc90004bcfd00 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 #2: ffff8880221da0e0 (&type->s_umount_key#70){.+.+}-{3:3}, at: flush_old_commits+0xd4/0x300 fs/reiserfs/super.c:97 #3: ffff88802bd74090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x77/0xd0 fs/reiserfs/lock.c:27 4 locks held by syz-executor.5/6076: #0: ffff8880221da460 (sb_writers#21){.+.+}-{0:0}, at: do_sendfile+0x5d6/0xf80 fs/read_write.c:1254 #1: ffff888035cd0980 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff888035cd0980 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: generic_file_write_iter+0x7f/0x310 mm/filemap.c:3929 #2: ffff888035cd0758 (&ei->tailpack){+.+.}-{3:3}, at: reiserfs_vfs_truncate_file+0x1c/0x40 fs/reiserfs/file.c:132 #3: ffff88802bd74090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x77/0xd0 fs/reiserfs/lock.c:27 3 locks held by syz-executor.5/6105: #0: ffff8880221da460 (sb_writers#21){.+.+}-{0:0}, at: do_sendfile+0x5d6/0xf80 fs/read_write.c:1254 #1: ffff888035cd0b20 (mapping.invalidate_lock#4){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #1: ffff888035cd0b20 (mapping.invalidate_lock#4){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xe9/0x820 mm/readahead.c:226 #2: ffff88802bd74090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x77/0xd0 fs/reiserfs/lock.c:27 2 locks held by syz-executor.4/6436: #0: ffff8880221da0e0 (&type->s_umount_key#70){.+.+}-{3:3}, at: iterate_supers+0xb0/0x1f0 fs/super.c:722 #1: ffff88802bd74090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x77/0xd0 fs/reiserfs/lock.c:27 2 locks held by syz-executor.4/6495: #0: ffff8880221da0e0 (&type->s_umount_key#70){.+.+}-{3:3}, at: iterate_supers+0xb0/0x1f0 fs/super.c:722 #1: ffff88802bd74090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x77/0xd0 fs/reiserfs/lock.c:27 2 locks held by syz-executor.4/6647: #0: ffff8880221da0e0 (&type->s_umount_key#70){.+.+}-{3:3}, at: iterate_supers+0xb0/0x1f0 fs/super.c:722 #1: ffff88802bd74090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x77/0xd0 fs/reiserfs/lock.c:27 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc3-syzkaller-00021-g7dd4b804e080 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ba/0x420 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 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: 11 Comm: kworker/u4:1 Not tainted 6.2.0-rc3-syzkaller-00021-g7dd4b804e080 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:match_held_lock+0x1/0xb0 kernel/locking/lockdep.c:5113 Code: ff ff ff 31 db 48 c7 c7 80 ba ed 8a 48 c7 c6 c0 ba ed 8a 31 c0 e8 5f 76 a1 f6 0f 0b e9 38 ff ff ff e8 c3 fa ff ff 0f 1f 00 55 <53> bd 01 00 00 00 48 39 77 10 74 67 48 89 fb 81 7f 20 00 00 10 00 RSP: 0018:ffffc900001078e8 EFLAGS: 00000097 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8d326d00 RDI: ffff88813fef44b8 RBP: ffff88813fef44b8 R08: dffffc0000000000 R09: fffffbfff1d2ccf6 R10: fffffbfff1d2ccf6 R11: 1ffffffff1d2ccf5 R12: 0000000000000246 R13: ffff88813fef3a80 R14: 00000000ffffffff R15: ffffffff8d326d00 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00098d000 CR3: 000000002bbd8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_is_held kernel/locking/lockdep.c:5409 [inline] lock_is_held_type+0xa1/0x180 kernel/locking/lockdep.c:5711 lock_is_held include/linux/lockdep.h:283 [inline] rcu_read_lock_sched_held+0x87/0x110 kernel/rcu/update.c:125 trace_lock_acquire+0x98/0x260 include/trace/events/lock.h:24 lock_acquire+0xa4/0x3c0 kernel/locking/lockdep.c:5639 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:325 rcu_read_lock include/linux/rcupdate.h:764 [inline] batadv_nc_process_nc_paths+0xc1/0x370 net/batman-adv/network-coding.c:687 batadv_nc_worker+0x4d5/0x5b0 net/batman-adv/network-coding.c:735 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308