INFO: task syz-executor.3:11318 blocked for more than 143 seconds. Not tainted 5.19.0-syzkaller-01583-g7d0d3fa7339e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27344 pid:11318 ppid: 3637 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xda/0x1b0 kernel/sched/core.c:6534 rwsem_down_read_slowpath+0x5c1/0xb00 kernel/locking/rwsem.c:1087 __down_read_common kernel/locking/rwsem.c:1252 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0xe2/0x450 kernel/locking/rwsem.c:1501 filemap_invalidate_lock_shared include/linux/fs.h:814 [inline] filemap_fault+0xba1/0x24e0 mm/filemap.c:3140 __do_fault+0x10d/0x650 mm/memory.c:4165 do_read_fault mm/memory.c:4514 [inline] do_fault mm/memory.c:4643 [inline] handle_pte_fault mm/memory.c:4907 [inline] __handle_mm_fault+0x2767/0x40b0 mm/memory.c:5046 handle_mm_fault+0x1c8/0x790 mm/memory.c:5144 do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1484 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1540 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:fault_in_readable+0x106/0x290 mm/gup.c:1820 Code: ff 0f 01 cb 0f ae e8 48 89 eb 31 ff 81 e3 ff 0f 00 00 48 89 de e8 7a aa c9 ff 48 85 db 0f 84 ea 00 00 00 e8 0c ae c9 ff 31 db <8a> 45 00 31 ff 89 de 88 44 24 28 e8 3a aa c9 ff 85 db 0f 85 4f 01 RSP: 0018:ffffc900147ff9e0 EFLAGS: 00050246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90003c06000 RDX: 0000000000040000 RSI: ffffffff81b0d514 RDI: 0000000000000007 RBP: 00000000200e4040 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000000001 R12: 0000000000001000 R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff920028fff3d fault_in_iov_iter_readable lib/iov_iter.c:458 [inline] fault_in_iov_iter_readable+0x11f/0x1f0 lib/iov_iter.c:444 generic_perform_write+0x19e/0x560 mm/filemap.c:3769 ext4_buffered_write_iter+0x15b/0x330 fs/ext4/file.c:270 ext4_file_write_iter+0x43c/0x1520 fs/ext4/file.c:679 call_write_iter include/linux/fs.h:2186 [inline] new_sync_write+0x38a/0x560 fs/read_write.c:504 vfs_write+0x7c0/0xac0 fs/read_write.c:591 ksys_write+0x127/0x250 fs/read_write.c:644 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5995089209 RSP: 002b:00007f5996104168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f599519bf60 RCX: 00007f5995089209 RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f59950e3161 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc52d2a61f R14: 00007f5996104300 R15: 0000000000022000 INFO: task syz-executor.4:11348 blocked for more than 144 seconds. Not tainted 5.19.0-syzkaller-01583-g7d0d3fa7339e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:28440 pid:11348 ppid: 3638 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xda/0x1b0 kernel/sched/core.c:6534 rwsem_down_write_slowpath+0x697/0x11e0 kernel/locking/rwsem.c:1182 __down_write_common kernel/locking/rwsem.c:1297 [inline] __down_write_common kernel/locking/rwsem.c:1294 [inline] __down_write kernel/locking/rwsem.c:1306 [inline] down_write+0x135/0x150 kernel/locking/rwsem.c:1553 filemap_invalidate_lock include/linux/fs.h:804 [inline] blk_ioctl_zeroout block/ioctl.c:182 [inline] blkdev_common_ioctl+0xf8a/0x1a50 block/ioctl.c:485 blkdev_ioctl+0x2be/0x800 block/ioctl.c:608 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fdd25889209 RSP: 002b:00007fdd247fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fdd2599bf60 RCX: 00007fdd25889209 RDX: 0000000020000100 RSI: 000000000000127f RDI: 0000000000000003 RBP: 00007fdd258e3161 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdb05b448f R14: 00007fdd247fe300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/28: #0: ffffffff8bd87820 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492 2 locks held by getty/3288: #0: ffff88802659c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2124 3 locks held by syz-fuzzer/3633: #0: ffff88814a67c460 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x17f/0x650 fs/namei.c:4239 #1: ffff88802df75440 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:794 [inline] #1: ffff88802df75440 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x26c/0x650 fs/namei.c:4243 #2: ffff88802de34a38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:759 [inline] #2: ffff88802de34a38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: vfs_unlink+0xd5/0x920 fs/namei.c:4181 5 locks held by syz-executor.3/11318: #0: ffff888011a240e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe3/0x100 fs/file.c:1036 #1: ffff88814a67c460 (sb_writers#4){.+.+}-{0:0}, at: ksys_write+0x127/0x250 fs/read_write.c:644 #2: ffff88802de34a38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:759 [inline] #2: ffff88802de34a38 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xb0/0x330 fs/ext4/file.c:264 #3: ffff88807ea34028 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #3: ffff88807ea34028 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x285/0x11c0 arch/x86/mm/fault.c:1338 #4: ffff888140c913c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:814 [inline] #4: ffff888140c913c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_fault+0xba1/0x24e0 mm/filemap.c:3140 3 locks held by syz-executor.3/11333: 1 lock held by syz-executor.4/11348: #0: ffff888140c913c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:804 [inline] #0: ffff888140c913c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff888140c913c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0xf8a/0x1a50 block/ioctl.c:485 1 lock held by syz-executor.4/11437: #0: ffff888140c913c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:804 [inline] #0: ffff888140c913c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff888140c913c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0xf8a/0x1a50 block/ioctl.c:485 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.19.0-syzkaller-01583-g7d0d3fa7339e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:369 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5885 Comm: kworker/u4:9 Not tainted 5.19.0-syzkaller-01583-g7d0d3fa7339e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:check_region_inline mm/kasan/generic.c:170 [inline] RIP: 0010:kasan_check_range+0x12c/0x180 mm/kasan/generic.c:189 Code: 00 74 ef 49 8d 04 2c 48 85 d2 75 0b 48 89 da 48 29 c2 e9 55 ff ff ff 49 39 d2 75 17 49 0f be 02 41 83 e1 07 49 39 c1 7d 0a 5b 01 00 00 00 5d 41 5c c3 44 89 c2 e8 c3 ef ff ff 5b 83 f0 01 5d RSP: 0018:ffffc900145079a0 EFLAGS: 00000046 RAX: fffffbfff20d0b3e RBX: 0000000000000746 RCX: ffffffff815e1a8e RDX: fffffbfff20d0b3e RSI: 0000000000000008 RDI: ffffffff906859e8 RBP: fffffbfff20d0b3d R08: 0000000000000000 R09: ffffffff906859ef R10: fffffbfff20d0b3d R11: 0000000000000000 R12: ffff888029a28ab0 R13: ffff888029a28000 R14: 0000000000000000 R15: bca2fcab8fa7f911 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c006067788 CR3: 000000000ba8e000 CR4: 0000000000350ef0 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] hlock_class kernel/locking/lockdep.c:227 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3741 [inline] validate_chain kernel/locking/lockdep.c:3797 [inline] __lock_acquire+0x163e/0x5660 kernel/locking/lockdep.c:5053 lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:354 [inline] batadv_nc_purge_paths+0xdf/0x3a0 net/batman-adv/network-coding.c:442 batadv_nc_worker+0x8f9/0xfa0 net/batman-adv/network-coding.c:720 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306