INFO: task syz-executor.3:8162 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller-00089-gcb0856346a60 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27992 pid:8162 ppid:6973 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:758 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x7ba/0x3170 fs/namei.c:3712 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1368 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:0x7f65f508c169 RSP: 002b:00007f65eb9dd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f65f51ac050 RCX: 00007f65f508c169 RDX: 0000000000000000 RSI: 0000000000145142 RDI: 0000000020007f80 RBP: 00007f65f50e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc20af928f R14: 00007f65eb9dd300 R15: 0000000000022000 INFO: task syz-executor.3:8163 blocked for more than 144 seconds. Not tainted 6.3.0-rc7-syzkaller-00089-gcb0856346a60 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27992 pid:8163 ppid:6973 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:758 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x7ba/0x3170 fs/namei.c:3712 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1368 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:0x7f65f508c169 RSP: 002b:00007f65eb9bc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f65f51ac120 RCX: 00007f65f508c169 RDX: 0000000000000000 RSI: 0000000000141a42 RDI: 0000000020000a40 RBP: 00007f65f50e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc20af928f R14: 00007f65eb9bc300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25570 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf25d70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf253a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:4/75: 2 locks held by getty/4740: #0: ffff88802c1ec098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.5/5104: #0: ffff8880b993be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 2 locks held by syz-executor.2/5121: #0: ffff88802f8c20e0 (&type->s_umount_key#50){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361 #1: ffffffff8cf2a878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #1: ffffffff8cf2a878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:989 2 locks held by kworker/1:5/5151: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90004f07d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 2 locks held by kworker/0:11/5378: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90005abfd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 6 locks held by syz-executor.3/8157: 2 locks held by syz-executor.3/8162: #0: ffff888048b3a460 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888034cdef90 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888034cdef90 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff888034cdef90 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 2 locks held by syz-executor.3/8163: #0: ffff888048b3a460 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888034cdef90 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888034cdef90 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff888034cdef90 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 6 locks held by syz-executor.1/8327: 2 locks held by syz-executor.1/8350: #0: ffff888032d94460 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888074f375f8 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888074f375f8 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff888074f375f8 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 2 locks held by syz-executor.1/8352: #0: ffff888032d94460 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888074f375f8 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888074f375f8 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff888074f375f8 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 2 locks held by syz-executor.1/9388: 2 locks held by dhcpcd/9419: #0: ffff888078c72130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1697 [inline] #0: ffff888078c72130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xbd0 net/packet/af_packet.c:3193 #1: ffffffff8cf2a878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffffffff8cf2a878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:989 1 lock held by dhcpcd/9420: #0: ffff888020a8a130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1697 [inline] #0: ffff888020a8a130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xbd0 net/packet/af_packet.c:3193 3 locks held by syz-executor.4/9422: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc7-syzkaller-00089-gcb0856346a60 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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+0x187/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+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x270/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: 8157 Comm: syz-executor.3 Not tainted 6.3.0-rc7-syzkaller-00089-gcb0856346a60 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:__kasan_check_write+0x6/0x20 mm/kasan/shadow.c:37 Code: db eb d4 90 f3 0f 1e fa 89 f6 48 8b 0c 24 31 d2 e9 2f eb ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 f3 0f 1e fa 89 f6 <48> 8b 0c 24 ba 01 00 00 00 e9 0c eb ff ff 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc900152f6508 EFLAGS: 00000246 RAX: ffffffff81b97388 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc90003e42000 RSI: 0000000000000008 RDI: ffffea0000e83a80 RBP: ffffc900152f6648 R08: ffffffff81b9737b R09: fffffbfff1ca695e R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000025 R13: 0000000000000007 R14: ffffea0000e83a80 R15: dffffc0000000000 FS: 00007f65f3bfe700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4e0b385998 CR3: 0000000028dd3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read_write include/linux/instrumented.h:102 [inline] test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:57 [inline] folio_trylock include/linux/pagemap.h:915 [inline] folio_lock+0x75/0x1b0 include/linux/pagemap.h:951 __filemap_get_folio+0x44e/0xe50 mm/filemap.c:1936 pagecache_get_page+0x2c/0x240 mm/folio-compat.c:99 find_or_create_page include/linux/pagemap.h:632 [inline] grab_cache_page include/linux/pagemap.h:754 [inline] nilfs_grab_buffer+0xb1/0x540 fs/nilfs2/page.c:57 nilfs_btnode_submit_block+0xdf/0x720 fs/nilfs2/btnode.c:81 __nilfs_btree_get_block+0x18d/0x7e0 fs/nilfs2/btree.c:480 nilfs_btree_do_lookup+0x57b/0xce0 fs/nilfs2/btree.c:578 nilfs_btree_lookup+0x1ac/0x1e0 fs/nilfs2/btree.c:695 nilfs_bmap_lookup_at_level+0x10b/0x370 fs/nilfs2/bmap.c:69 nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline] nilfs_mdt_submit_block+0x358/0x790 fs/nilfs2/mdt.c:142 nilfs_mdt_read_block+0xeb/0x430 fs/nilfs2/mdt.c:176 nilfs_mdt_get_block+0x11d/0xa50 fs/nilfs2/mdt.c:251 nilfs_palloc_get_block+0x142/0x240 fs/nilfs2/alloc.c:216 nilfs_palloc_get_entry_block+0x8e/0xa0 fs/nilfs2/alloc.c:318 nilfs_dat_translate+0xb6/0x560 fs/nilfs2/dat.c:416 nilfs_bmap_lookup_at_level+0x1fe/0x370 fs/nilfs2/bmap.c:75 nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline] nilfs_mdt_submit_block+0x358/0x790 fs/nilfs2/mdt.c:142 nilfs_mdt_read_block+0xeb/0x430 fs/nilfs2/mdt.c:176 nilfs_mdt_get_block+0x11d/0xa50 fs/nilfs2/mdt.c:251 nilfs_palloc_get_block+0x142/0x240 fs/nilfs2/alloc.c:216 nilfs_palloc_get_desc_block fs/nilfs2/alloc.c:265 [inline] nilfs_palloc_prepare_alloc_entry+0x3e4/0xfe0 fs/nilfs2/alloc.c:524 nilfs_ifile_create_inode+0x9d/0x2d0 fs/nilfs2/ifile.c:64 nilfs_new_inode+0x257/0xa30 fs/nilfs2/inode.c:347 nilfs_create+0xfd/0x2c0 fs/nilfs2/namei.c:85 lookup_open fs/namei.c:3416 [inline] open_last_lookups fs/namei.c:3484 [inline] path_openat+0x13df/0x3170 fs/namei.c:3712 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1368 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:0x7f65f508c169 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:00007f65f3bfe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f65f51abf80 RCX: 00007f65f508c169 RDX: 0000000000000000 RSI: 0000000000060142 RDI: 0000000020000000 RBP: 00007f65f50e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc20af928f R14: 00007f65f3bfe300 R15: 0000000000022000