bisecting fixing commit since c98875d930e915d01e8c40c7d3c16f00b3c8abe1 building syzkaller on 53199d6e8aee5f0ebd3775d2b1c674f4e6e64e2b testing commit c98875d930e915d01e8c40c7d3c16f00b3c8abe1 with gcc (GCC) 8.1.0 kernel signature: 659aeb4b21640604aa75b72924ba440f59940640003856fee6a1782086b454ef all runs: crashed: INFO: task hung in aead_recvmsg testing current HEAD 399849e4654ea496a6217ba4e5ee3d304c995ab4 testing commit 399849e4654ea496a6217ba4e5ee3d304c995ab4 with gcc (GCC) 8.1.0 kernel signature: ac46fa51fd88dd5290aa443c0261ed4fc18c1b9b9524a0c6a7666cc9bc1d932b all runs: crashed: INFO: task hung in aead_recvmsg revisions tested: 2, total time: 27m57.874068747s (build: 16m10.463954983s, test: 11m18.389750847s) the crash still happens on HEAD commit msg: Linux 4.19.131 crash: INFO: task hung in aead_recvmsg IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 INFO: task syz-executor.3:7211 blocked for more than 140 seconds. Not tainted 4.19.131-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D28552 7211 6251 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x792/0x1c20 kernel/sched/core.c:3515 schedule+0x7f/0x1b0 kernel/sched/core.c:3559 schedule_timeout+0x6d7/0xda0 kernel/time/timer.c:1782 do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common kernel/sched/completion.c:115 [inline] wait_for_completion+0x282/0x460 kernel/sched/completion.c:136 crypto_wait_req include/linux/crypto.h:517 [inline] _aead_recvmsg crypto/algif_aead.c:313 [inline] aead_recvmsg+0x1182/0x1fb0 crypto/algif_aead.c:334 sock_recvmsg_nosec net/socket.c:795 [inline] sock_recvmsg+0xb9/0xf0 net/socket.c:802 sock_read_iter+0x252/0x430 net/socket.c:879 call_read_iter include/linux/fs.h:1815 [inline] do_iter_readv_writev+0x3f2/0x960 fs/read_write.c:679 do_iter_read+0x1db/0x580 fs/read_write.c:923 vfs_readv+0xc9/0x130 fs/read_write.c:987 do_readv+0x110/0x330 fs/read_write.c:1020 __do_sys_readv fs/read_write.c:1107 [inline] __se_sys_readv fs/read_write.c:1104 [inline] __x64_sys_readv+0x70/0xb0 fs/read_write.c:1104 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458c29 Code: Bad RIP value. RSP: 002b:00007f2484b3ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458c29 RDX: 0000000000000001 RSI: 00000000200007c0 RDI: 0000000000000004 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2484b3b6d4 R13: 00000000004c5985 R14: 00000000004d9fe0 R15: 00000000ffffffff INFO: task syz-executor.2:7240 blocked for more than 140 seconds. Not tainted 4.19.131-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D28408 7240 6258 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x792/0x1c20 kernel/sched/core.c:3515 schedule+0x7f/0x1b0 kernel/sched/core.c:3559 schedule_timeout+0x6d7/0xda0 kernel/time/timer.c:1782 do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common kernel/sched/completion.c:115 [inline] wait_for_completion+0x282/0x460 kernel/sched/completion.c:136 crypto_wait_req include/linux/crypto.h:517 [inline] _aead_recvmsg crypto/algif_aead.c:313 [inline] aead_recvmsg+0x1182/0x1fb0 crypto/algif_aead.c:334 sock_recvmsg_nosec net/socket.c:795 [inline] sock_recvmsg+0xb9/0xf0 net/socket.c:802 sock_read_iter+0x252/0x430 net/socket.c:879 call_read_iter include/linux/fs.h:1815 [inline] do_iter_readv_writev+0x3f2/0x960 fs/read_write.c:679 do_iter_read+0x1db/0x580 fs/read_write.c:923 vfs_readv+0xc9/0x130 fs/read_write.c:987 do_readv+0x110/0x330 fs/read_write.c:1020 __do_sys_readv fs/read_write.c:1107 [inline] __se_sys_readv fs/read_write.c:1104 [inline] __x64_sys_readv+0x70/0xb0 fs/read_write.c:1104 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458c29 Code: 45 7d 1d 00 48 89 04 24 48 c7 44 24 08 01 00 00 00 e8 7b b9 fd ff 48 8b 44 24 18 48 89 04 24 e8 ad b6 fd ff e8 68 b2 fd ff e8 b0 fd ff e9 00 ff ff ff e8 19 b0 fd ff 48 8d 05 26 e7 1f 00 48 RSP: 002b:00007fe33f95ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458c29 RDX: 0000000000000001 RSI: 00000000200007c0 RDI: 0000000000000004 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe33f95f6d4 R13: 00000000004c5985 R14: 00000000004d9fe0 R15: 00000000ffffffff INFO: task syz-executor.2:7247 blocked for more than 140 seconds. Not tainted 4.19.131-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D28344 7247 6258 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x792/0x1c20 kernel/sched/core.c:3515 schedule+0x7f/0x1b0 kernel/sched/core.c:3559 schedule_timeout+0x6d7/0xda0 kernel/time/timer.c:1782 do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common kernel/sched/completion.c:115 [inline] wait_for_completion+0x282/0x460 kernel/sched/completion.c:136 crypto_wait_req include/linux/crypto.h:517 [inline] _aead_recvmsg crypto/algif_aead.c:313 [inline] aead_recvmsg+0x1182/0x1fb0 crypto/algif_aead.c:334 sock_recvmsg_nosec net/socket.c:795 [inline] sock_recvmsg+0xb9/0xf0 net/socket.c:802 sock_read_iter+0x252/0x430 net/socket.c:879 call_read_iter include/linux/fs.h:1815 [inline] do_iter_readv_writev+0x3f2/0x960 fs/read_write.c:679 do_iter_read+0x1db/0x580 fs/read_write.c:923 vfs_readv+0xc9/0x130 fs/read_write.c:987 do_readv+0x110/0x330 fs/read_write.c:1020 __do_sys_readv fs/read_write.c:1107 [inline] __se_sys_readv fs/read_write.c:1104 [inline] __x64_sys_readv+0x70/0xb0 fs/read_write.c:1104 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458c29 Code: 45 7d 1d 00 48 89 04 24 48 c7 44 24 08 01 00 00 00 e8 7b b9 fd ff 48 8b 44 24 18 48 89 04 24 e8 ad b6 fd ff e8 68 b2 fd ff e8 b0 fd ff e9 00 ff ff ff e8 19 b0 fd ff 48 8d 05 26 e7 1f 00 48 RSP: 002b:00007fe33f93dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458c29 RDX: 0000000000000001 RSI: 00000000200007c0 RDI: 0000000000000004 RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe33f93e6d4 R13: 00000000004c5985 R14: 00000000004d9fe0 R15: 00000000ffffffff Showing all locks held in the system: 1 lock held by khungtaskd/1036: #0: 000000009e28bc9d (rcu_read_lock){....}, at: debug_show_all_locks+0x5b/0x27a kernel/locking/lockdep.c:4442 1 lock held by in:imklog/5792: #0: 00000000d8bdbcef (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xa7/0xd0 fs/file.c:767 1 lock held by syz-executor.3/7211: #0: 000000007dba3cae (sk_lock-AF_ALG){+.+.}, at: lock_sock include/net/sock.h:1506 [inline] #0: 000000007dba3cae (sk_lock-AF_ALG){+.+.}, at: af_alg_wait_for_data+0x1b3/0x440 crypto/af_alg.c:774 1 lock held by syz-executor.2/7240: #0: 000000008cad0bab (sk_lock-AF_ALG){+.+.}, at: lock_sock include/net/sock.h:1506 [inline] #0: 000000008cad0bab (sk_lock-AF_ALG){+.+.}, at: af_alg_wait_for_data+0x1b3/0x440 crypto/af_alg.c:774 1 lock held by syz-executor.2/7247: #0: 0000000076539498 (sk_lock-AF_ALG){+.+.}, at: lock_sock include/net/sock.h:1506 [inline] #0: 0000000076539498 (sk_lock-AF_ALG){+.+.}, at: af_alg_wait_for_data+0x1b3/0x440 crypto/af_alg.c:774 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1036 Comm: khungtaskd Not tainted 4.19.131-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x123/0x177 lib/dump_stack.c:118 nmi_cpu_backtrace.cold.4+0x3e/0x76 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0xe6/0x11a lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x5c3/0xb40 kernel/hung_task.c:287 kthread+0x327/0x3f0 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3511 Comm: systemd-journal Not tainted 4.19.131-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:set_root+0x19e/0x4d0 fs/namei.c:819 Code: 03 38 d0 7c 08 84 d2 0f 85 cc 02 00 00 41 8b 4e 40 f6 c1 01 0f 85 cc 01 00 00 49 8d 7f 20 48 89 f8 48 c1 e8 03 66 83 3c 18 00 <0f> 85 12 02 00 00 49 8d 7e 70 48 89 f8 48 c1 e8 03 66 83 3c 18 00 RSP: 0018:ffff88809560fa20 EFLAGS: 00000246 RAX: 1ffff11012ac1fa6 RBX: dffffc0000000000 RCX: 0000000000000002 RDX: 0000000000000000 RSI: ffff8880956068c8 RDI: ffff88809560fd30 RBP: ffff88809560fa78 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880968ca240 R13: ffffffff88120d40 R14: ffff8880968ca200 R15: ffff88809560fd10 FS: 00007f3cbd5718c0(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3cba93e000 CR3: 0000000095133000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: path_init+0xf36/0x1550 fs/namei.c:2208 path_openat+0x176/0x3c60 fs/namei.c:3535 do_filp_open+0x177/0x250 fs/namei.c:3567 do_sys_open+0x1dd/0x350 fs/open.c:1085 __do_sys_open fs/open.c:1103 [inline] __se_sys_open fs/open.c:1098 [inline] __x64_sys_open+0x79/0xb0 fs/open.c:1098 do_syscall_64+0xd6/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3cbcb01840 Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 RSP: 002b:00007ffcb874cbd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffcb874cee0 RCX: 00007f3cbcb01840 RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055f00ad226b0 RBP: 000000000000000d R08: 000000000000c0ff R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff R13: 000055f00ad15060 R14: 00007ffcb874cea0 R15: 000055f00ad223e0