INFO: task syz-executor.4:10361 blocked for more than 143 seconds. Not tainted 6.3.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27776 pid:10361 ppid:5124 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x179d/0x4690 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 rwsem_down_read_slowpath+0x5f4/0x950 kernel/locking/rwsem.c:1086 __down_read_common+0x61/0x2c0 kernel/locking/rwsem.c:1250 inode_lock_shared include/linux/fs.h:768 [inline] open_last_lookups fs/namei.c:3483 [inline] path_openat+0x7ab/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_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1375 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:0x7fbbc008c0f9 RSP: 002b:00007fbbc0e6e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fbbc01ac050 RCX: 00007fbbc008c0f9 RDX: 0000000000010200 RSI: 0000000020000280 RDI: ffffffffffffff9c RBP: 00007fbbc00e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff0cba3aaf R14: 00007fbbc0e6e300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25f30 (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: ffffffff8cf26730 (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: ffffffff8cf25d60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:3/46: 2 locks held by getty/4750: #0: ffff88802c5f4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 2 locks held by kworker/1:12/5476: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x788/0x1280 kernel/workqueue.c:2363 #1: ffffc90005f1fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7d2/0x1280 kernel/workqueue.c:2365 6 locks held by syz-executor.4/10357: 2 locks held by syz-executor.4/10361: #0: ffff88803224c460 (sb_writers#23){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff8880736cbc50 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #1: ffff8880736cbc50 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: open_last_lookups fs/namei.c:3483 [inline] #1: ffff8880736cbc50 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: path_openat+0x7ab/0x3170 fs/namei.c:3712 6 locks held by syz-executor.0/10569: 2 locks held by syz-executor.0/10587: #0: ffff8880792a8460 (sb_writers#23){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff8880736ca2b0 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #1: ffff8880736ca2b0 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: open_last_lookups fs/namei.c:3483 [inline] #1: ffff8880736ca2b0 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: path_openat+0x7ab/0x3170 fs/namei.c:3712 3 locks held by syz-executor.4/10967: #0: ffff88802987c460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write_file+0x5e/0x1f0 fs/namespace.c:438 #1: ffff888076d02218 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888076d02218 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: vfs_fileattr_set+0x139/0xd40 fs/ioctl.c:681 #2: ffff88802987eb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_ind_migrate+0x258/0x760 fs/ext4/migrate.c:624 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc2-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+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+0xf9d/0xfe0 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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 11007 Comm: syz-executor.1 Not tainted 6.3.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline] RIP: 0010:mark_lock+0xa2/0x340 kernel/locking/lockdep.c:4613 Code: 00 8b 1b 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 c0 c1 2d 90 be 08 00 00 00 e8 f6 10 76 00 48 0f a3 1d 4e 96 c2 0e <73> 11 48 8d 04 5b 48 c1 e0 06 48 8d 98 c0 20 fd 8f eb 23 48 c7 c0 RSP: 0000:ffffc90004897798 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 000000000000019d RCX: ffffffff816b2b6a RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff902dc1f0 RBP: 0000000000000007 R08: dffffc0000000000 R09: fffffbfff205b83f R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880322dc4d8 R13: dffffc0000000000 R14: 0000000000000080 R15: ffff8880322dc4b8 FS: 00007f5ea333b700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5e9ac00000 CR3: 000000001cdb4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_held_locks kernel/locking/lockdep.c:4237 [inline] __trace_hardirqs_on_caller kernel/locking/lockdep.c:4263 [inline] lockdep_hardirqs_on_prepare+0x3a4/0x7a0 kernel/locking/lockdep.c:4322 trace_hardirqs_on+0x28/0x40 kernel/trace/trace_preemptirq.c:61 put_cpu_partial+0xe8/0x180 mm/slub.c:2710 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x68/0x3a0 mm/slab.h:769 slab_alloc_node mm/slub.c:3452 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc+0x12c/0x280 mm/slub.c:3476 ptlock_alloc+0x20/0x70 mm/memory.c:5821 ptlock_init include/linux/mm.h:2620 [inline] pgtable_pte_page_ctor include/linux/mm.h:2647 [inline] __pte_alloc_one include/asm-generic/pgalloc.h:66 [inline] pte_alloc_one+0xd5/0x360 arch/x86/mm/pgtable.c:33 __pte_alloc+0x79/0x220 mm/memory.c:421 do_anonymous_page mm/memory.c:4020 [inline] handle_pte_fault mm/memory.c:4907 [inline] __handle_mm_fault mm/memory.c:5051 [inline] handle_mm_fault+0x47c9/0x51c0 mm/memory.c:5197 do_user_addr_fault arch/x86/mm/fault.c:1407 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x679/0x890 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7f5ea26291c7 Code: 78 48 63 d5 48 01 c2 49 3b 55 08 77 56 8d 55 ff 85 ed 74 35 0f 1f 80 00 00 00 00 48 39 c1 77 1c 49 8b 75 00 49 89 c1 49 29 c9 <46> 0f b6 0c 0e 45 84 c9 74 08 44 88 0c 06 49 8b 45 10 48 83 c0 01 RSP: 002b:00007f5ea333a600 EFLAGS: 00010206 RAX: 0000000001e01001 RBX: 00007f5ea333a660 RCX: 0000000000000001 RDX: 00000000000000e9 RSI: 00007f5e98dff000 RDI: 00007f5ea333a700 RBP: 0000000000000102 R08: 0000000000000000 R09: 0000000001e01000 R10: 0000000000000000 R11: 00007f5ea333a670 R12: 00007f5ea333a670 R13: 00007f5ea333a700 R14: 0000000000000001 R15: 0000000000000000