syzbot


general protection fault in blkcipher_walk_done

Status: fixed on 2018/01/03 02:35
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+3401d9494b9380f7244bcc7fec49680878fccba6@syzkaller.appspotmail.com
Fix commit: 11edb555966e crypto: af_alg - wait for data at beginning of recvmsg
First crash: 2575d, last: 2537d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in blkcipher_walk_done (2) crypto C 8 2530d 2536d 0/28 closed as dup on 2018/01/03 19:43

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 3155 Comm: syzkaller324238 Not tainted 4.15.0-rc3+ #220
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:86 [inline]
RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:111 [inline]
RIP: 0010:scatterwalk_done include/crypto/scatterwalk.h:119 [inline]
RIP: 0010:blkcipher_walk_done+0x300/0xde0 crypto/blkcipher.c:124
RSP: 0018:ffff8801c765f330 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000060453082 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000f60 RDI: 0000000000000008
RBP: ffff8801c765f380 R08: 00000000fffff8f8 R09: 0000000000000000
R10: 0000000000000004 R11: ffff8801bc0a8f50 R12: ffff8801c765f630
R13: ffff8801c765f4e0 R14: ffff8801c765f528 R15: ffff8801c765f508
FS:  0000000001553880(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002022efc8 CR3: 00000001c5a0c000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 glue_ctr_crypt_128bit+0x597/0xc20 arch/x86/crypto/glue_helper.c:289
 ctr_crypt+0x34/0x40 arch/x86/crypto/serpent_avx2_glue.c:168
 __ablk_encrypt+0x1d1/0x2d0 crypto/ablk_helper.c:64
 ablk_encrypt+0x23e/0x2c0 crypto/ablk_helper.c:84
 skcipher_crypt_ablkcipher crypto/skcipher.c:714 [inline]
 skcipher_decrypt_ablkcipher+0x312/0x420 crypto/skcipher.c:732
 crypto_skcipher_decrypt include/crypto/skcipher.h:463 [inline]
 chacha_decrypt crypto/chacha20poly1305.c:152 [inline]
 poly_tail_continue+0x42a/0x6b0 crypto/chacha20poly1305.c:167
 poly_tail+0x40f/0x520 crypto/chacha20poly1305.c:201
 poly_cipherpad+0x33e/0x470 crypto/chacha20poly1305.c:231
 poly_cipher+0x303/0x440 crypto/chacha20poly1305.c:262
 poly_adpad+0x347/0x480 crypto/chacha20poly1305.c:292
 poly_ad+0x25c/0x300 crypto/chacha20poly1305.c:316
 poly_setkey+0x2fc/0x3e0 crypto/chacha20poly1305.c:343
 poly_init+0x16c/0x1d0 crypto/chacha20poly1305.c:366
 poly_genkey+0x422/0x590 crypto/chacha20poly1305.c:406
 chacha_encrypt crypto/chacha20poly1305.c:446 [inline]
 chachapoly_encrypt+0x418/0x620 crypto/chacha20poly1305.c:467
 crypto_aead_encrypt include/crypto/aead.h:330 [inline]
 _aead_recvmsg crypto/algif_aead.c:308 [inline]
 aead_recvmsg+0x1295/0x1bc0 crypto/algif_aead.c:329
 sock_recvmsg_nosec net/socket.c:809 [inline]
 sock_recvmsg+0xc9/0x110 net/socket.c:816
 ___sys_recvmsg+0x29b/0x630 net/socket.c:2185
 __sys_recvmsg+0xe2/0x210 net/socket.c:2230
 SYSC_recvmsg net/socket.c:2242 [inline]
 SyS_recvmsg+0x2d/0x50 net/socket.c:2237
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x43ff89
RSP: 002b:00007fff86e0e4d8 EFLAGS: 00000217 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff89
RDX: 0000000000000002 RSI: 000000002022efc8 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004018f0
R13: 0000000000401980 R14: 0000000000000000 R15: 0000000000000000
Code: 00 fc ff df 48 c1 e9 03 80 3c 11 00 0f 85 7a 09 00 00 48 8d 78 08 48 ba 00 00 00 00 00 fc ff df 49 89 45 20 48 89 f9 48 c1 e9 03 <0f> b6 14 11 84 d2 74 09 80 fa 03 0f 8e 3e 09 00 00 4c 89 f9 8b 
RIP: scatterwalk_start include/crypto/scatterwalk.h:86 [inline] RSP: ffff8801c765f330
RIP: scatterwalk_pagedone include/crypto/scatterwalk.h:111 [inline] RSP: ffff8801c765f330
RIP: scatterwalk_done include/crypto/scatterwalk.h:119 [inline] RSP: ffff8801c765f330
RIP: blkcipher_walk_done+0x300/0xde0 crypto/blkcipher.c:124 RSP: ffff8801c765f330
---[ end trace 20fe68159d7b58aa ]---

Crashes (47):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/14 16:05 upstream 7c5cac1bc717 ac20b98c .config console log report syz C ci-upstream-kasan-gce
2017/12/13 01:04 upstream a638349bf6c2 414a185f .config console log report syz C ci-upstream-kasan-gce
2017/12/05 23:15 upstream fd6d2e506ce6 de212f1a .config console log report syz C ci-upstream-kasan-gce
2017/11/24 14:23 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report syz C ci-upstream-kasan-gce
2017/12/14 16:04 net-next-old 5c13e07580c8 ac20b98c .config console log report syz C ci-upstream-net-kasan-gce
2017/12/12 14:29 net-next-old c360f2b58ee4 32f694fc .config console log report syz C ci-upstream-net-kasan-gce
2017/12/03 11:21 net-next-old 75d0de8c7e70 48359b97 .config console log report syz C ci-upstream-net-kasan-gce
2017/11/24 14:53 net-next-old 0c86a6bd85ff ddf7b3e0 .config console log report syz C ci-upstream-net-kasan-gce
2017/12/16 16:15 mmots 82bcf1def3b5 b6f0c91b .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/14 23:24 mmots 82bcf1def3b5 ac20b98c .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/12 22:29 linux-next d20787938ddb 414a185f .config console log report syz C ci-upstream-next-kasan-gce
2017/12/09 05:58 mmots 82bcf1def3b5 5ad0ce95 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/06 23:22 linux-next d5c52866f560 5d643f8e .config console log report syz C ci-upstream-next-kasan-gce
2017/11/24 14:08 mmots 1ea8d039f9ed deb5f6ae .config console log report syz C ci-upstream-mmots-kasan-gce
2017/11/24 13:55 linux-next 6fc478f80f68 4bd70f88 .config console log report syz C ci-upstream-next-kasan-gce
2017/12/25 09:55 upstream 464e1d5f23cc 73aba437 .config console log report ci-upstream-kasan-gce
2017/12/14 08:26 upstream 7c5cac1bc717 ac20b98c .config console log report ci-upstream-kasan-gce
2017/12/12 13:03 upstream a638349bf6c2 081721ff .config console log report ci-upstream-kasan-gce
2017/12/11 08:48 upstream 50c4c4e268a2 5ad0ce95 .config console log report ci-upstream-kasan-gce
2017/11/26 04:43 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/25 23:50 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2018/01/02 08:19 net-next-old 6bb8824732f6 00193447 .config console log report ci-upstream-net-kasan-gce
2017/12/31 18:29 net-next-old 6bb8824732f6 00193447 .config console log report ci-upstream-net-kasan-gce
2017/12/31 02:16 net-next-old 6bb8824732f6 bb6384b8 .config console log report ci-upstream-net-kasan-gce
2017/12/30 19:20 net-next-old 6bb8824732f6 bb6384b8 .config console log report ci-upstream-net-kasan-gce
2017/12/29 19:37 net-next-old d367341b25bd 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/29 08:40 net-next-old d367341b25bd 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/28 23:59 net-next-old 836df24a7062 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/27 11:04 net-next-old 214bb1c78a4d 09c8f4c0 .config console log report ci-upstream-net-kasan-gce
2017/12/25 12:23 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/25 08:39 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/24 07:35 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/22 18:28 net-next-old 0a80f0c26bf5 81fe66b4 .config console log report ci-upstream-net-kasan-gce
2017/12/21 21:46 net-next-old 90bbec0f912a 81fe66b4 .config console log report ci-upstream-net-kasan-gce
2017/12/21 12:58 net-next-old 8f36e0006543 eaadba98 .config console log report ci-upstream-net-kasan-gce
2017/12/20 22:26 net-next-old f39a5c01c3d2 90a46995 .config console log report ci-upstream-net-kasan-gce
2017/12/20 11:00 net-next-old f39a5c01c3d2 2d836b1d .config console log report ci-upstream-net-kasan-gce
2017/12/19 08:54 net-next-old 962b582785b6 1c4160ef .config console log report ci-upstream-net-kasan-gce
2017/12/17 07:22 net-next-old c30abd5e40dd b6f0c91b .config console log report ci-upstream-net-kasan-gce
2017/12/13 14:58 net-next-old 48d79b49e168 ce7f2399 .config console log report ci-upstream-net-kasan-gce
2017/12/06 22:30 net-next-old 92425c40676d 5d643f8e .config console log report ci-upstream-net-kasan-gce
2017/12/02 22:23 net-next-old c5f66a858997 48359b97 .config console log report ci-upstream-net-kasan-gce
2017/11/28 04:02 net-next-old 1d3b78bbc6e9 29b0fd90 .config console log report ci-upstream-net-kasan-gce
2017/11/27 09:58 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-net-kasan-gce
2017/12/29 02:04 mmots 37759fa6d0fa 7d240098 .config console log report ci-upstream-mmots-kasan-gce
2017/12/21 04:47 linux-next 7dc9f647127d 90a46995 .config console log report ci-upstream-next-kasan-gce
2017/12/17 06:22 mmots 82bcf1def3b5 b6f0c91b .config console log report ci-upstream-mmots-kasan-gce
* Struck through repros no longer work on HEAD.