INFO: task syz-executor.5:9619 blocked for more than 145 seconds. Not tainted 6.2.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:25192 pid:9619 ppid:5101 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 __wait_on_freeing_inode fs/inode.c:2196 [inline] find_inode_fast+0x332/0x480 fs/inode.c:950 iget_locked+0xb1/0x830 fs/inode.c:1273 __ext4_iget+0x242/0x3f40 fs/ext4/inode.c:4861 ext4_xattr_inode_cache_find fs/ext4/xattr.c:1491 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1527 [inline] ext4_xattr_set_entry+0x2181/0x3a70 fs/ext4/xattr.c:1669 ext4_xattr_block_set+0x8c3/0x3760 fs/ext4/xattr.c:1975 ext4_xattr_set_handle+0xe1c/0x1680 fs/ext4/xattr.c:2390 ext4_xattr_set+0x245/0x3d0 fs/ext4/xattr.c:2492 __vfs_setxattr+0x485/0x4c0 fs/xattr.c:202 __vfs_setxattr_noperm+0x128/0x5d0 fs/xattr.c:236 vfs_setxattr+0x228/0x450 fs/xattr.c:323 do_setxattr fs/xattr.c:608 [inline] setxattr fs/xattr.c:631 [inline] path_setxattr+0x393/0x4c0 fs/xattr.c:650 __do_sys_setxattr fs/xattr.c:666 [inline] __se_sys_setxattr fs/xattr.c:662 [inline] __x64_sys_setxattr+0xb7/0xd0 fs/xattr.c:662 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa81d48c0a9 RSP: 002b:00007fa813c3e168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fa81d5ac050 RCX: 00007fa81d48c0a9 RDX: 00000000200005c0 RSI: 0000000020000180 RDI: 00000000200000c0 RBP: 00007fa81d4e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd23f263af R14: 00007fa813c3e300 R15: 0000000000022000 INFO: task syz-executor.5:9625 blocked for more than 147 seconds. Not tainted 6.2.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:24168 pid:9625 ppid:5101 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 mb_cache_entry_wait_unused+0x165/0x240 fs/mbcache.c:148 ext4_evict_ea_inode+0x148/0x300 fs/ext4/xattr.c:449 ext4_evict_inode+0x112/0x10b0 fs/ext4/inode.c:181 evict+0x2a4/0x620 fs/inode.c:664 ext4_xattr_set_entry+0x1c00/0x3a70 fs/ext4/xattr.c:1806 ext4_xattr_block_set+0xf78/0x3760 fs/ext4/xattr.c:1906 ext4_xattr_set_handle+0xe1c/0x1680 fs/ext4/xattr.c:2390 ext4_xattr_set+0x245/0x3d0 fs/ext4/xattr.c:2492 __vfs_setxattr+0x485/0x4c0 fs/xattr.c:202 __vfs_setxattr_noperm+0x128/0x5d0 fs/xattr.c:236 vfs_setxattr+0x228/0x450 fs/xattr.c:323 do_setxattr fs/xattr.c:608 [inline] setxattr fs/xattr.c:631 [inline] path_setxattr+0x393/0x4c0 fs/xattr.c:650 __do_sys_setxattr fs/xattr.c:666 [inline] __se_sys_setxattr fs/xattr.c:662 [inline] __x64_sys_setxattr+0xb7/0xd0 fs/xattr.c:662 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa81d48c0a9 RSP: 002b:00007fa813c1d168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fa81d5ac120 RCX: 00007fa81d48c0a9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000020000000 RBP: 00007fa81d4e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd23f263af R14: 00007fa813c1d300 R15: 0000000000022000 Showing all locks held in the system: 5 locks held by kworker/u4:1/11: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d5239d0 (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: ffffffff8d5241d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 3 locks held by kworker/0:1/14: #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc90000137d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffffffff8d528ec8 (rcu_state.exp_wake_mutex){+.+.}-{3:3}, at: rcu_exp_wait_wake kernel/rcu/tree_exp.h:693 [inline] #2: ffffffff8d528ec8 (rcu_state.exp_wake_mutex){+.+.}-{3:3}, at: rcu_exp_sel_wait_wake+0x1838/0x1dc0 kernel/rcu/tree_exp.h:722 1 lock held by khungtaskd/28: #0: ffffffff8d523800 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4743: #0: ffff88814b949098 (&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+0x6e8/0x1e50 drivers/tty/n_tty.c:2177 3 locks held by kworker/1:4/5150: 3 locks held by kworker/1:11/6683: 3 locks held by syz-executor.5/9619: #0: ffff88802ad26460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff8880359cde48 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff8880359cde48 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: vfs_setxattr+0x1e8/0x450 fs/xattr.c:322 #2: ffff8880359cdb10 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff8880359cdb10 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x26b/0x1680 fs/ext4/xattr.c:2305 3 locks held by syz-executor.5/9625: #0: ffff88802ad26460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff888030b8c030 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff888030b8c030 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_setxattr+0x1e8/0x450 fs/xattr.c:322 #2: ffff888030b8bcf8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff888030b8bcf8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x26b/0x1680 fs/ext4/xattr.c:2305 2 locks held by syz-executor.5/11117: #0: ffffffff8e658150 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x332/0x5a0 net/core/net_namespace.c:479 #1: ffffffff8d528e38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8d528e38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a6/0x890 kernel/rcu/tree_exp.h:946 2 locks held by syz-executor.0/11118: #0: ffffffff8e658150 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x332/0x5a0 net/core/net_namespace.c:479 #1: ffffffff8d528e38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #1: ffffffff8d528e38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46f/0x890 kernel/rcu/tree_exp.h:946 2 locks held by syz-executor.1/11116: 2 locks held by syz-executor.2/11133: #0: ffffffff8e658150 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x332/0x5a0 net/core/net_namespace.c:479 #1: ffffffff8d528d00 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x5f0 kernel/rcu/tree.c:3997 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc2-syzkaller #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+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e3/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x19b/0x3e0 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: 11116 Comm: syz-executor.1 Not tainted 6.2.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:check_preemption_disabled+0x0/0x120 lib/smp_processor_id.c:13 Code: ff 48 c7 c7 40 05 5c 8d 48 89 de e8 5a ad bf f9 e9 64 ff ff ff cc cc cc cc cc 48 c7 c7 a0 77 69 8b 48 c7 c6 e0 77 69 8b eb 00 <41> 57 41 56 41 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 RSP: 0018:ffffc9000324f950 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 0000000000000001 RCX: 1ffffffff24b8ce0 RDX: 0000000000000000 RSI: ffffffff8b0daac0 RDI: ffffffff8b697800 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1d60446 R10: fffffbfff1d60446 R11: 1ffffffff1d60445 R12: 0000000000000246 R13: ffff88801e1dba80 R14: 00000000ffffffff R15: ffffffff8d523780 FS: 00007fe7c411b700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faf0493b000 CR3: 000000007e6fc000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_finish kernel/locking/lockdep.c:466 [inline] lock_is_held_type+0x10a/0x190 kernel/locking/lockdep.c:5712 lock_is_held include/linux/lockdep.h:283 [inline] __might_resched+0xdf/0x6a0 kernel/sched/core.c:9947 inet_twsk_purge+0x115/0x980 net/ipv4/inet_timewait_sock.c:267 ops_exit_list net/core/net_namespace.c:174 [inline] setup_net+0xa9b/0xd80 net/core/net_namespace.c:356 copy_net_ns+0x34c/0x5a0 net/core/net_namespace.c:483 create_new_namespaces+0x4db/0x8e0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x11e/0x180 kernel/nsproxy.c:228 ksys_unshare+0x57f/0xb30 kernel/fork.c:3202 __do_sys_unshare kernel/fork.c:3273 [inline] __se_sys_unshare kernel/fork.c:3271 [inline] __x64_sys_unshare+0x34/0x40 kernel/fork.c:3271 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe7c348c0a9 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:00007fe7c411b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007fe7c35ac1f0 RCX: 00007fe7c348c0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000400 RBP: 00007fe7c34e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe8296768f R14: 00007fe7c411b300 R15: 0000000000022000