INFO: task syz-executor.1:6974 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:21168 pid:6974 ppid:5121 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 __lock_metapage+0x209/0x330 fs/jfs/jfs_metapage.c:50 lock_metapage fs/jfs/jfs_metapage.c:64 [inline] __get_metapage+0x849/0xff0 fs/jfs/jfs_metapage.c:639 diIAGRead fs/jfs/jfs_imap.c:2662 [inline] diNewExt+0x2bea/0x3e00 fs/jfs/jfs_imap.c:2230 diAllocExt fs/jfs/jfs_imap.c:1945 [inline] diAllocAG+0xc6a/0x1f80 fs/jfs/jfs_imap.c:1662 diAlloc+0x3dd/0x1700 fs/jfs/jfs_imap.c:1583 ialloc+0x8c/0xa80 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x141/0xb00 fs/jfs/namei.c:225 vfs_mkdir+0x3b3/0x590 fs/namei.c:4036 do_mkdirat+0x25b/0x530 fs/namei.c:4061 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4074 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:0x7f7ac428c0a9 RSP: 002b:00007f7ac50d6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f7ac43abf80 RCX: 00007f7ac428c0a9 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000005 RBP: 00007f7ac42e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc880b9d8f R14: 00007f7ac50d6300 R15: 0000000000022000 INFO: task syz-executor.1:7006 blocked for more than 144 seconds. Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:25008 pid:7006 ppid:5121 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 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write_nested+0x23f/0x280 kernel/locking/rwsem.c:1673 inode_lock_nested include/linux/fs.h:791 [inline] filename_create+0x22a/0x4f0 fs/namei.c:3807 do_mkdirat+0xb5/0x530 fs/namei.c:4051 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4074 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:0x7f7ac428c0a9 RSP: 002b:00007f7ac50b5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f7ac43ac050 RCX: 00007f7ac428c0a9 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000004 RBP: 00007f7ac42e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc880b9d8f R14: 00007f7ac50b5300 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/4755: #0: ffff888017bc4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 2 locks held by syz-executor.3/5102: #0: ffff88808c6260e0 (&type->s_umount_key#66){++++}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362 #1: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946 2 locks held by kworker/1:12/6378: #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc900034dfd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 4 locks held by syz-executor.1/6974: #0: ffff888036236460 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff8880356fa140 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff8880356fa140 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: filename_create+0x22a/0x4f0 fs/namei.c:3807 #2: ffff88807e070920 (&(imap->im_aglock[index])){+.+.}-{3:3}, at: diAlloc+0x3c3/0x1700 #3: ffff8880356f8a78 (&jfs_ip->rdwrlock/1){.+.+}-{3:3}, at: diAllocExt fs/jfs/jfs_imap.c:1910 [inline] #3: ffff8880356f8a78 (&jfs_ip->rdwrlock/1){.+.+}-{3:3}, at: diAllocAG+0x2b8/0x1f80 fs/jfs/jfs_imap.c:1662 2 locks held by syz-executor.1/7006: #0: ffff888036236460 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff8880356fa140 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff8880356fa140 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: filename_create+0x22a/0x4f0 fs/namei.c:3807 4 locks held by syz-executor.0/7063: #0: ffff888089e10460 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff888035690ec0 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff888035690ec0 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: filename_create+0x22a/0x4f0 fs/namei.c:3807 #2: ffff888086a78920 (&(imap->im_aglock[index])){+.+.}-{3:3}, at: diAlloc+0x3c3/0x1700 #3: ffff888035690138 (&jfs_ip->rdwrlock/1){.+.+}-{3:3}, at: diAllocExt fs/jfs/jfs_imap.c:1910 [inline] #3: ffff888035690138 (&jfs_ip->rdwrlock/1){.+.+}-{3:3}, at: diAllocAG+0x2b8/0x1f80 fs/jfs/jfs_imap.c:1662 2 locks held by syz-executor.0/7078: #0: ffff888089e10460 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff888035690ec0 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff888035690ec0 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: filename_create+0x22a/0x4f0 fs/namei.c:3807 1 lock held by syz-executor.2/8901: #0: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #0: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x455/0x860 kernel/rcu/tree_exp.h:946 2 locks held by syz-executor.0/8947: 2 locks held by syz-executor.4/8955: 2 locks held by syz-executor.1/8956: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #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: 8943 Comm: syz-executor.5 Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:__lock_is_held kernel/locking/lockdep.c:5406 [inline] RIP: 0010:lock_is_held_type+0xaf/0x180 kernel/locking/lockdep.c:5711 Code: c5 38 0a 00 00 31 db 0f 1f 40 00 48 83 fb 31 73 24 48 89 ef 4c 89 fe e8 2f 02 00 00 85 c0 75 2a 48 ff c3 49 63 85 30 0a 00 00 <48> 83 c5 28 48 39 c3 7c d8 eb 11 48 c7 c7 e0 43 1f 8d 48 89 de e8 RSP: 0018:ffffc90019427778 EFLAGS: 00000002 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffff88801d59d7c0 RDX: 0000000000000000 RSI: ffffffff8d326d00 RDI: ffff88801d59e1f8 RBP: ffff88801d59e1f8 R08: ffffffff8aa6b161 R09: ffffffff8aa6ad0d R10: 0000000000000003 R11: ffff88801d59d7c0 R12: 0000000000000246 R13: ffff88801d59d7c0 R14: 00000000ffffffff R15: ffffffff8d326d00 FS: 00005555564d0400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff95c568718 CR3: 0000000022fef000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:283 [inline] __might_resched+0xdf/0x6b0 kernel/sched/core.c:9947 down_read+0x15/0x50 kernel/locking/rwsem.c:1508 anon_vma_lock_read include/linux/rmap.h:131 [inline] validate_mm+0x199/0x330 mm/mmap.c:340 vma_expand+0x963/0x9c0 mm/mmap.c:601 mmap_region+0xcae/0x1e20 mm/mmap.c:2588 do_mmap+0x8d9/0xf30 mm/mmap.c:1411 vm_mmap_pgoff+0x19e/0x2b0 mm/util.c:520 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:0x7ff95b88c0f2 Code: 00 00 00 00 00 0f 1f 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 c7 c0 b8 ff ff ff 64 RSP: 002b:00007ffd5a4addf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000020022 RCX: 00007ff95b88c0f2 RDX: 0000000000000000 RSI: 0000000000021000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000020022 R11: 0000000000000246 R12: 00007ffd5a4ae000 R13: 00007ff95abff700 R14: 0000000000000000 R15: 0000000000022000