syzbot


general protection fault in gcmaes_crypt_by_sg

Status: upstream: reported C repro on 2019/05/03 04:23
Reported-by: syzbot+be9485f400812da3a983@syzkaller.appspotmail.com
First crash: 1817d, last: 944d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in gcmaes_crypt_by_sg crypto 3 2018d 2026d 11/26 fixed on 2019/02/26 22:09
upstream general protection fault in gcmaes_crypt_by_sg (2) crypto C error done 28 1555d 1602d 15/26 fixed on 2020/03/11 20:34
Fix bisection attempts (24)
Created Duration User Patch Repo Result
2021/10/23 03:26 11m bisect fix linux-4.19.y error job log (0)
2021/09/22 09:17 27m bisect fix linux-4.19.y job log (0) log
2021/08/23 08:49 27m bisect fix linux-4.19.y job log (0) log
2021/07/24 08:23 26m bisect fix linux-4.19.y job log (0) log
2021/06/24 08:01 21m bisect fix linux-4.19.y job log (0) log
2021/05/24 23:30 29m bisect fix linux-4.19.y job log (0) log
2021/04/24 22:36 27m bisect fix linux-4.19.y job log (0) log
2021/03/25 14:36 21m bisect fix linux-4.19.y job log (0) log
2021/02/23 12:48 22m bisect fix linux-4.19.y job log (0) log
2021/02/19 08:00 19m bisect fix linux-4.19.y error job log (0)
2021/01/19 17:31 24m bisect fix linux-4.19.y job log (0) log
2020/12/20 17:07 23m bisect fix linux-4.19.y job log (0) log
2020/11/20 16:27 39m bisect fix linux-4.19.y job log (0) log
2020/10/21 07:04 25m bisect fix linux-4.19.y job log (0) log
2020/09/21 06:39 24m bisect fix linux-4.19.y job log (0) log
2020/08/22 06:12 27m bisect fix linux-4.19.y job log (0) log
2020/07/23 05:46 25m bisect fix linux-4.19.y job log (0) log
2020/06/23 05:23 23m bisect fix linux-4.19.y job log (0) log
2020/05/24 04:59 23m bisect fix linux-4.19.y job log (0) log
2020/04/24 04:33 25m bisect fix linux-4.19.y job log (0) log
2020/03/25 04:07 25m bisect fix linux-4.19.y job log (0) log
2020/02/24 03:40 26m bisect fix linux-4.19.y job log (0) log
2020/01/25 02:28 26m bisect fix linux-4.19.y job log (0) log
2019/12/26 01:49 24m bisect fix linux-4.19.y job log (0) log

Sample crash report:
RBP: 0000000000000005 R08: 0000000100000300 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401f90
R13: 0000000000402020 R14: 0000000000000000 R15: 0000000000000000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7967 Comm: syz-executor194 Not tainted 4.19.56 #28
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.0+0xde2/0x1850 arch/x86/crypto/aesni-intel_glue.c:868
Code: 82 f3 f9 ff ff e8 6e ac 35 00 4c 89 f7 e8 c6 c7 eb 01 48 8d 78 08 49 89 c6 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e a5 09 00 00 41 8b 46 08 89 84
RSP: 0018:ffff8880807df230 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000034 RCX: ffffffff83213249
RDX: 0000000000000001 RSI: ffffffff8321329b RDI: 0000000000000008
RBP: ffff8880807df570 R08: ffff88809ee0e340 R09: 000000000000000d
R10: ffff888099456020 R11: 0000000000000010 R12: 0000000000000000
R13: 0000000000000034 R14: 0000000000000000 R15: 0000000000000007
FS:  0000000001deb880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005641ad1e7ae8 CR3: 0000000090e31000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 gcmaes_encrypt.constprop.0+0x62a/0xd90 arch/x86/crypto/aesni-intel_glue.c:932
 generic_gcmaes_encrypt+0x108/0x159 arch/x86/crypto/aesni-intel_glue.c:1297
 crypto_aead_encrypt include/crypto/aead.h:335 [inline]
 gcmaes_wrapper_encrypt+0x15f/0x200 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+0x9c0/0x13a0 net/tls/tls_sw.c:228
 tls_sw_sendpage+0x540/0xd40 net/tls/tls_sw.c:583
 inet_sendpage+0x168/0x630 net/ipv4/af_inet.c:815
 kernel_sendpage+0x92/0xf0 net/socket.c:3377
 sock_sendpage+0x8b/0xc0 net/socket.c:847
 pipe_to_sendpage+0x296/0x360 fs/splice.c:452
 splice_from_pipe_feed fs/splice.c:503 [inline]
 __splice_from_pipe+0x391/0x7d0 fs/splice.c:627
 splice_from_pipe+0x108/0x170 fs/splice.c:662
 generic_splice_sendpage+0x3c/0x50 fs/splice.c:833
 do_splice_from fs/splice.c:852 [inline]
 do_splice+0x642/0x12c0 fs/splice.c:1148
 __do_sys_splice fs/splice.c:1415 [inline]
 __se_sys_splice fs/splice.c:1395 [inline]
 __x64_sys_splice+0x2c6/0x330 fs/splice.c:1395
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4406a9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 5b 14 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd1d5f09f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00007ffd1d5f0a10 RCX: 00000000004406a9
RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000005 R08: 0000000100000300 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401f90
R13: 0000000000402020 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 669fcdfe1266f826 ]---
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.0+0xde2/0x1850 arch/x86/crypto/aesni-intel_glue.c:868
Code: 82 f3 f9 ff ff e8 6e ac 35 00 4c 89 f7 e8 c6 c7 eb 01 48 8d 78 08 49 89 c6 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e a5 09 00 00 41 8b 46 08 89 84
RSP: 0018:ffff8880807df230 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000034 RCX: ffffffff83213249
RDX: 0000000000000001 RSI: ffffffff8321329b RDI: 0000000000000008
RBP: ffff8880807df570 R08: ffff88809ee0e340 R09: 000000000000000d
R10: ffff888099456020 R11: 0000000000000010 R12: 0000000000000000
R13: 0000000000000034 R14: 0000000000000000 R15: 0000000000000007
FS:  0000000001deb880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005641ad1e7ae8 CR3: 0000000090e31000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/27 20:23 linux-4.19.y aec3002d07fd 7509bf36 .config console log report syz C ci2-linux-4-19
2019/11/26 00:32 linux-4.19.y 14260788bbb9 598ca6c8 .config console log report ci2-linux-4-19
2019/10/19 16:51 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report ci2-linux-4-19
2019/07/02 18:06 linux-4.19.y aec3002d07fd 5f175e9c .config console log report ci2-linux-4-19
2019/06/27 19:50 linux-4.19.y aec3002d07fd 7509bf36 .config console log report ci2-linux-4-19
2019/05/03 03:26 linux-4.19.y a03957ab0fd5 e9039493 .config console log report ci2-linux-4-19
2019/05/03 03:22 linux-4.19.y a03957ab0fd5 e9039493 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.