INFO: task syz-executor.3:18001 can't die for more than 143 seconds. task:syz-executor.3 state:D stack:29216 pid:18001 ppid: 6537 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4984 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6265 schedule+0xd2/0x260 kernel/sched/core.c:6338 rwsem_down_write_slowpath+0x761/0x1130 kernel/locking/rwsem.c:1117 __down_write_common kernel/locking/rwsem.c:1272 [inline] __down_write_common kernel/locking/rwsem.c:1269 [inline] __down_write kernel/locking/rwsem.c:1281 [inline] down_write+0x135/0x150 kernel/locking/rwsem.c:1528 inode_lock include/linux/fs.h:783 [inline] vfs_setxattr+0x11c/0x330 fs/xattr.c:300 setxattr+0x218/0x2b0 fs/xattr.c:575 path_setxattr+0x197/0x1c0 fs/xattr.c:595 __do_sys_setxattr fs/xattr.c:611 [inline] __se_sys_setxattr fs/xattr.c:607 [inline] __x64_sys_setxattr+0xc0/0x160 fs/xattr.c:607 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fc660b07ae9 RSP: 002b:00007fc65e03b188 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fc660c1b0e0 RCX: 00007fc660b07ae9 RDX: 0000000020000040 RSI: 0000000020000180 RDI: 0000000020000080 RBP: 00007fc660b61f25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008004 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe45ef955f R14: 00007fc65e03b300 R15: 0000000000022000 INFO: task syz-executor.3:18001 blocked for more than 143 seconds. Not tainted 5.15.0-next-20211105-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:29216 pid:18001 ppid: 6537 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4984 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6265 schedule+0xd2/0x260 kernel/sched/core.c:6338 rwsem_down_write_slowpath+0x761/0x1130 kernel/locking/rwsem.c:1117 __down_write_common kernel/locking/rwsem.c:1272 [inline] __down_write_common kernel/locking/rwsem.c:1269 [inline] __down_write kernel/locking/rwsem.c:1281 [inline] down_write+0x135/0x150 kernel/locking/rwsem.c:1528 inode_lock include/linux/fs.h:783 [inline] vfs_setxattr+0x11c/0x330 fs/xattr.c:300 setxattr+0x218/0x2b0 fs/xattr.c:575 path_setxattr+0x197/0x1c0 fs/xattr.c:595 __do_sys_setxattr fs/xattr.c:611 [inline] __se_sys_setxattr fs/xattr.c:607 [inline] __x64_sys_setxattr+0xc0/0x160 fs/xattr.c:607 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fc660b07ae9 RSP: 002b:00007fc65e03b188 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fc660c1b0e0 RCX: 00007fc660b07ae9 RDX: 0000000020000040 RSI: 0000000020000180 RDI: 0000000020000080 RBP: 00007fc660b61f25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008004 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe45ef955f R14: 00007fc65e03b300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb83a60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 2 locks held by kworker/1:2/1674: #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269 #1: ffffc90005bc7db0 ((work_completion)(&m->wq)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 3 locks held by in:imklog/6222: #0: ffff88801eeeeff0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 #1: ffff8880b9d39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #2: ffff8880b9d279c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3a6/0x490 kernel/sched/psi.c:880 2 locks held by syz-executor.3/17968: #0: ffff88807a1c0460 (sb_writers#17){.+.+}-{0:0}, at: path_setxattr+0xb2/0x1c0 fs/xattr.c:593 #1: ffff888037ae6818 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:783 [inline] #1: ffff888037ae6818 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: vfs_setxattr+0x11c/0x330 fs/xattr.c:300 2 locks held by syz-executor.3/18001: #0: ffff88807a1c0460 (sb_writers#17){.+.+}-{0:0}, at: path_setxattr+0xb2/0x1c0 fs/xattr.c:593 #1: ffff888037ae6818 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:783 [inline] #1: ffff888037ae6818 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: vfs_setxattr+0x11c/0x330 fs/xattr.c:300 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.0-next-20211105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:254 [inline] watchdog+0xcb7/0xed0 kernel/hung_task.c:339 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 1050 Comm: kworker/u4:5 Not tainted 5.15.0-next-20211105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-kex-wg2 wg_packet_handshake_send_worker RIP: 0010:fsub arch/x86/crypto/curve25519-x86_64.c:120 [inline] RIP: 0010:point_add_and_double+0x46d/0x610 arch/x86/crypto/curve25519-x86_64.c:810 Code: 1b 4e 08 4d 8b 54 24 10 4d 1b 56 10 4d 8b 5c 24 18 4d 1b 5e 18 48 c7 c0 00 00 00 00 48 c7 c1 26 00 00 00 48 0f 42 c1 49 29 c0 <49> 83 d9 00 49 83 da 00 49 83 db 00 48 c7 c0 00 00 00 00 48 0f 42 RSP: 0018:ffffc90004bc75c0 EFLAGS: 00000216 RAX: 0000000000000026 RBX: ffffc90004bc7788 RCX: 0000000000000026 RDX: 1ffff92000978ef4 RSI: ffffc90004bc7748 RDI: ffffc90004bc77a0 RBP: ffffc90004bc7708 R08: 1a7f78ef80df912e R09: 423f62af60750cc9 R10: 867f0f5113b6c1c8 R11: 46554a179fd05b39 R12: ffffc90004bc77c8 R13: d41d8dd5c34b71aa R14: ffffc90004bc77e8 R15: ffffc90004bc7668 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f37edc000 CR3: 000000006ff2e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: montgomery_ladder.constprop.0+0x385/0x560 arch/x86/crypto/curve25519-x86_64.c:887 curve25519_ever64 arch/x86/crypto/curve25519-x86_64.c:1041 [inline] curve25519_arch+0x18d/0x230 arch/x86/crypto/curve25519-x86_64.c:1388 curve25519 include/crypto/curve25519.h:39 [inline] mix_dh+0x7d/0x130 drivers/net/wireguard/noise.c:378 wg_noise_handshake_create_initiation+0x2ca/0x620 drivers/net/wireguard/noise.c:517 wg_packet_send_handshake_initiation+0x187/0x340 drivers/net/wireguard/send.c:34 wg_packet_handshake_send_worker+0x18/0x30 drivers/net/wireguard/send.c:51 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: 1b 4e 08 sbb 0x8(%rsi),%ecx 3: 4d 8b 54 24 10 mov 0x10(%r12),%r10 8: 4d 1b 56 10 sbb 0x10(%r14),%r10 c: 4d 8b 5c 24 18 mov 0x18(%r12),%r11 11: 4d 1b 5e 18 sbb 0x18(%r14),%r11 15: 48 c7 c0 00 00 00 00 mov $0x0,%rax 1c: 48 c7 c1 26 00 00 00 mov $0x26,%rcx 23: 48 0f 42 c1 cmovb %rcx,%rax 27: 49 29 c0 sub %rax,%r8 * 2a: 49 83 d9 00 sbb $0x0,%r9 <-- trapping instruction 2e: 49 83 da 00 sbb $0x0,%r10 32: 49 83 db 00 sbb $0x0,%r11 36: 48 c7 c0 00 00 00 00 mov $0x0,%rax 3d: 48 rex.W 3e: 0f .byte 0xf 3f: 42 rex.X