bisecting fixing commit since aec3002d07fd2564cd32e56f126fa6db14a168bb building syzkaller on 7509bf360eba1461ac6059e4cacfbc29c9d2d4c7 testing commit aec3002d07fd2564cd32e56f126fa6db14a168bb with gcc (GCC) 8.1.0 kernel signature: 7b60d036e18a78c8f8b7428082abc3c2da43de285fe795512e7498ada25ab6b4 all runs: crashed: general protection fault in gcmaes_crypt_by_sg testing current HEAD d18b78abc0c6e7d3119367c931c583e02d466495 testing commit d18b78abc0c6e7d3119367c931c583e02d466495 with gcc (GCC) 8.1.0 kernel signature: 733c1e67a27fa99696379fdfe946660aee832d4b3e4309baecd15b37df3ba047 all runs: crashed: general protection fault in gcmaes_crypt_by_sg revisions tested: 2, total time: 27m7.470161164s (build: 19m3.865583736s, test: 6m20.248404619s) the crash still happens on HEAD commit msg: Linux 4.19.141 crash: general protection fault in gcmaes_crypt_by_sg R13: 00000000004c8ae6 R14: 00000000004debf0 R15: 0000000000000005 kasan: CONFIG_KASAN_INLINE enabled IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready kasan: GPF could be caused by NULL-ptr deref or user memory access IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bond: link becomes ready general protection fault: 0000 [#1] PREEMPT SMP KASAN kasan: CONFIG_KASAN_INLINE enabled CPU: 1 PID: 7160 Comm: syz-executor.0 Not tainted 4.19.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:73 [inline] RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:98 [inline] RIP: 0010:scatterwalk_done include/crypto/scatterwalk.h:106 [inline] RIP: 0010:gcmaes_crypt_by_sg.constprop.16+0xf8b/0x14c0 arch/x86/crypto/aesni-intel_glue.c:868 Code: 85 c9 89 84 24 90 00 00 00 0f 85 de f7 ff ff e9 3d f8 ff ff 4c 89 e7 e8 03 77 c2 01 48 8d 78 08 49 89 c4 48 89 f8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 74 08 3c 03 0f 8e fb 04 00 00 41 8b 44 24 08 RSP: 0018:ffff88808c5c72f0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000034 RCX: 0000000000000007 RDX: 1ffff11010b83d94 RSI: ffff888085c1ecac RDI: 0000000000000008 RBP: ffff88808c5c7620 R08: 0000000000000007 R09: 000000000000000d R10: ffff88809b6a8020 R11: 0000000000000010 R12: 0000000000000000 R13: ffff888085c1ea98 R14: dffffc0000000000 R15: 0000000000000007 FS: 00007f30a33ca700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f729aabe000 CR3: 000000009ab44000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kasan: GPF could be caused by NULL-ptr deref or user memory access gcmaes_encrypt.constprop.15+0x59f/0xda0 arch/x86/crypto/aesni-intel_glue.c:932 generic_gcmaes_encrypt+0xfd/0x150 arch/x86/crypto/aesni-intel_glue.c:1297 crypto_aead_encrypt include/crypto/aead.h:335 [inline] gcmaes_wrapper_encrypt+0x109/0x180 arch/x86/crypto/aesni-intel_glue.c:1130 crypto_aead_encrypt include/crypto/aead.h:335 [inline] tls_do_encryption net/tls/tls_sw.c:193 [inline] tls_push_record+0x9ae/0x1600 net/tls/tls_sw.c:228 tls_sw_sendpage+0x458/0xc00 net/tls/tls_sw.c:585 inet_sendpage+0x122/0x600 net/ipv4/af_inet.c:815 kernel_sendpage+0x60/0xd0 net/socket.c:3378 sock_sendpage+0x6d/0xd0 net/socket.c:847 pipe_to_sendpage+0x212/0x430 fs/splice.c:452 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x2cb/0x720 fs/splice.c:627 splice_from_pipe+0xbb/0x120 fs/splice.c:662 generic_splice_sendpage+0x10/0x20 fs/splice.c:833 do_splice_from fs/splice.c:852 [inline] do_splice+0x4fd/0x12d0 fs/splice.c:1154 __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice fs/splice.c:1408 [inline] __x64_sys_splice+0x248/0x300 fs/splice.c:1408 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459599 Code: 7d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 4b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f30a33c9c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007f30a33c9c90 RCX: 0000000000459599 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000075bfc8 R08: 0000000100000300 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f30a33ca6d4 R13: 00000000004c8ae6 R14: 00000000004debf0 R15: 0000000000000005 Modules linked in: general protection fault: 0000 [#2] PREEMPT SMP KASAN ---[ end trace 40d090543853f61f ]--- CPU: 0 PID: 7149 Comm: syz-executor.4 Tainted: G D 4.19.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:73 [inline] RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:98 [inline] RIP: 0010:scatterwalk_done include/crypto/scatterwalk.h:106 [inline] RIP: 0010:gcmaes_crypt_by_sg.constprop.16+0xf8b/0x14c0 arch/x86/crypto/aesni-intel_glue.c:868 Code: 85 c9 89 84 24 90 00 00 00 0f 85 de f7 ff ff e9 3d f8 ff ff 4c 89 e7 e8 03 77 c2 01 48 8d 78 08 49 89 c4 48 89 f8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 74 08 3c 03 0f 8e fb 04 00 00 41 8b 44 24 08 RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:73 [inline] RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:98 [inline] RIP: 0010:scatterwalk_done include/crypto/scatterwalk.h:106 [inline] RIP: 0010:gcmaes_crypt_by_sg.constprop.16+0xf8b/0x14c0 arch/x86/crypto/aesni-intel_glue.c:868 RSP: 0018:ffff88809aaff2f0 EFLAGS: 00010202 Code: 85 c9 89 84 24 90 00 00 00 0f 85 de f7 ff ff e9 3d f8 ff ff 4c 89 e7 e8 03 77 c2 01 48 8d 78 08 49 89 c4 48 89 f8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 74 08 3c 03 0f 8e fb 04 00 00 41 8b 44 24 08 RAX: 0000000000000001 RBX: 0000000000000034 RCX: 0000000000000007 RDX: 1ffff11012f8cdbc RSI: ffff888097c66dec RDI: 0000000000000008 RBP: ffff88809aaff620 R08: 0000000000000007 R09: 000000000000000d R10: ffff88809c8bb020 R11: 0000000000000010 R12: 0000000000000000 R13: ffff888097c66bd8 R14: dffffc0000000000 R15: 0000000000000007 FS: 00007fa60880d700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f729aab8000 CR3: 000000008e429000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: RSP: 0018:ffff88808c5c72f0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000034 RCX: 0000000000000007 gcmaes_encrypt.constprop.15+0x59f/0xda0 arch/x86/crypto/aesni-intel_glue.c:932 RDX: 1ffff11010b83d94 RSI: ffff888085c1ecac RDI: 0000000000000008 RBP: ffff88808c5c7620 R08: 0000000000000007 R09: 000000000000000d R10: ffff88809b6a8020 R11: 0000000000000010 R12: 0000000000000000 R13: ffff888085c1ea98 R14: dffffc0000000000 R15: 0000000000000007 FS: 00007f30a33ca700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 generic_gcmaes_encrypt+0xfd/0x150 arch/x86/crypto/aesni-intel_glue.c:1297 CR2: 00007f729aabe000 CR3: 000000009ab44000 CR4: 00000000001406e0 crypto_aead_encrypt include/crypto/aead.h:335 [inline] gcmaes_wrapper_encrypt+0x109/0x180 arch/x86/crypto/aesni-intel_glue.c:1130 crypto_aead_encrypt include/crypto/aead.h:335 [inline] tls_do_encryption net/tls/tls_sw.c:193 [inline] tls_push_record+0x9ae/0x1600 net/tls/tls_sw.c:228 tls_sw_sendpage+0x458/0xc00 net/tls/tls_sw.c:585 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 inet_sendpage+0x122/0x600 net/ipv4/af_inet.c:815 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400