INFO: task syz-executor.1:12807 blocked for more than 143 seconds. Not tainted 6.4.0-rc1-next-20230508-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:25976 pid:12807 ppid:5042 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x1d15/0x5790 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 io_schedule+0xbe/0x130 kernel/sched/core.c:8979 bit_wait_io+0x16/0xe0 kernel/sched/wait_bit.c:209 __wait_on_bit_lock+0x11f/0x1a0 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0xd9/0x110 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer fs/buffer.c:70 [inline] lock_buffer include/linux/buffer_head.h:410 [inline] __sync_dirty_buffer+0x30e/0x380 fs/buffer.c:2877 __ext4_handle_dirty_metadata+0x2b7/0x8e0 fs/ext4/ext4_jbd2.c:387 ext4_convert_inline_data_nolock+0x6e6/0xf10 fs/ext4/inline.c:1252 ext4_convert_inline_data+0x51a/0x5f0 fs/ext4/inline.c:2063 ext4_page_mkwrite+0x360/0x1680 fs/ext4/inode.c:6044 do_page_mkwrite+0x1a1/0x570 mm/memory.c:2935 do_shared_fault mm/memory.c:4599 [inline] do_fault mm/memory.c:4667 [inline] do_pte_missing mm/memory.c:3651 [inline] handle_pte_fault mm/memory.c:4951 [inline] __handle_mm_fault+0x2322/0x3c30 mm/memory.c:5093 handle_mm_fault+0x2af/0x9f0 mm/memory.c:5247 do_user_addr_fault+0x53d/0x1240 arch/x86/mm/fault.c:1462 handle_page_fault arch/x86/mm/fault.c:1556 [inline] exc_page_fault+0x98/0x170 arch/x86/mm/fault.c:1612 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x33/0xb0 arch/x86/lib/copy_user_64.S:56 Code: 46 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb RSP: 0018:ffffc9000531fe50 EFLAGS: 00050246 RAX: 0000000700000006 RBX: 0000000000000008 RCX: 0000000000000008 RDX: fffff52000a63fd6 RSI: ffffc9000531fea8 RDI: 00000000200012c0 RBP: 00000000200012c0 R08: 0000000000000000 R09: ffffc9000531feaf R10: fffff52000a63fd5 R11: 0000000000000001 R12: ffffc9000531fea8 R13: 00000000200012c8 R14: 0000000000000000 R15: 0000000000000000 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] _copy_to_user lib/usercopy.c:41 [inline] _copy_to_user+0xab/0xc0 lib/usercopy.c:34 copy_to_user include/linux/uaccess.h:191 [inline] do_pipe2+0x128/0x1b0 fs/pipe.c:1038 __do_sys_pipe fs/pipe.c:1059 [inline] __se_sys_pipe fs/pipe.c:1057 [inline] __x64_sys_pipe+0x33/0x40 fs/pipe.c:1057 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7c4948c169 RSP: 002b:00007f7c4a126168 EFLAGS: 00000246 ORIG_RAX: 0000000000000016 RAX: ffffffffffffffda RBX: 00007f7c495abf80 RCX: 00007f7c4948c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200012c0 RBP: 00007f7c494e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffdbd0404f R14: 00007f7c4a126300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c798bf0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c7988f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8c799800 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6559 2 locks held by getty/4759: #0: ffff88802c022098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 4 locks held by syz-executor.1/12807: #0: ffff888023a55b68 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:161 [inline] #0: ffff888023a55b68 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault+0x46b/0x1240 arch/x86/mm/fault.c:1403 #1: ffff8880763a0558 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x1a1/0x570 mm/memory.c:2935 #2: ffff888074bda3a0 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:830 [inline] #2: ffff888074bda3a0 (mapping.invalidate_lock){++++}-{3:3}, at: ext4_page_mkwrite+0x358/0x1680 fs/ext4/inode.c:6042 #3: ffff888074bd9ec8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #3: ffff888074bd9ec8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_convert_inline_data+0x352/0x5f0 fs/ext4/inline.c:2061 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc1-next-20230508-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/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+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:379 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: 6808 Comm: kworker/u4:9 Not tainted 6.4.0-rc1-next-20230508-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:trace_lock_acquire+0x49/0x180 include/trace/events/lock.h:24 Code: 00 89 db be 08 00 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 d0 87 7a 8e e8 85 4f 72 00 48 0f a3 1d 7d c9 15 0d 0f 82 df 00 00 00 <48> 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 89 fd 41 89 f4 41 RSP: 0018:ffffc900038af900 EFLAGS: 00000202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff8164be4b RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffffff8c135a20 RBP: ffff888012466078 R08: 0000000000000000 R09: ffffffff8e7a87d7 R10: fffffbfff1cf50fa R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff81c2ca28 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e349000 CR3: 000000000c571000 CR4: 00000000003506f0 Call Trace: lock_acquire+0x32/0xc0 kernel/locking/lockdep.c:5676 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] __get_locked_pte+0x158/0x270 mm/memory.c:1811 get_locked_pte include/linux/mm.h:2634 [inline] __text_poke+0x1b3/0x8d0 arch/x86/kernel/alternative.c:1584 text_poke arch/x86/kernel/alternative.c:1669 [inline] text_poke_bp_batch+0x4d3/0x770 arch/x86/kernel/alternative.c:2048 text_poke_flush arch/x86/kernel/alternative.c:2161 [inline] text_poke_flush arch/x86/kernel/alternative.c:2158 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2168 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b5/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:831 [inline] toggle_allocation_gate+0xf8/0x230 mm/kfence/core.c:823 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308