syzbot


general protection fault in blkcipher_walk_done (2)

Status: closed as dup on 2018/01/03 19:43
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+9da652f470afd0313350@syzkaller.appspotmail.com
First crash: 2245d, last: 2239d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: wild-memory-access Write in scatterwalk_copychunks crypto C 15 2242d 2268d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in blkcipher_walk_done (2) 1 (2) 2018/01/03 19:42
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in blkcipher_walk_done crypto C 47 2246d 2281d 3/26 fixed on 2018/01/03 02:35

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
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: 1 PID: 3497 Comm: syzkaller167371 Not tainted 4.15.0-rc6+ #245
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:ffff8801bf92f340 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 00000000a74a7bf1 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000400 RDI: 0000000000000008
RBP: ffff8801bf92f390 R08: 00000000fffff8f8 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: ffff8801bf92f640
R13: ffff8801bf92f4f0 R14: ffff8801bf92f538 R15: ffff8801bf92f518
FS:  000000000078d880(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000201c9000 CR3: 00000001bfd09006 CR4: 00000000001606e0
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:712 [inline]
 skcipher_decrypt_ablkcipher+0x312/0x420 crypto/skcipher.c:730
 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
 chachapoly_decrypt+0x73/0x90 crypto/chacha20poly1305.c:488
 crypto_aead_decrypt include/crypto/aead.h:362 [inline]
 _aead_recvmsg crypto/algif_aead.c:314 [inline]
 aead_recvmsg+0x154a/0x1cf0 crypto/algif_aead.c:335
 sock_recvmsg_nosec net/socket.c:809 [inline]
 sock_recvmsg+0xc9/0x110 net/socket.c:816
 ___sys_recvmsg+0x2a4/0x640 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+0x23/0x9a
RIP: 0033:0x43fee9
RSP: 002b:00007ffdb85bedc8 EFLAGS: 00000217 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fee9
RDX: 0000000000000000 RSI: 0000000020318fc8 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401850
R13: 00000000004018e0 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: ffff8801bf92f340
RIP: scatterwalk_pagedone include/crypto/scatterwalk.h:111 [inline] RSP: ffff8801bf92f340
RIP: scatterwalk_done include/crypto/scatterwalk.h:119 [inline] RSP: ffff8801bf92f340
RIP: blkcipher_walk_done+0x300/0xde0 crypto/blkcipher.c:124 RSP: ffff8801bf92f340
---[ end trace f8eb21d2614e4cb0 ]---

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/03 08:34 upstream 30a7acd57389 00193447 .config console log report syz C ci-upstream-kasan-gce
2018/01/03 08:20 net-next-old 72bca2084a21 00193447 .config console log report syz C ci-upstream-net-kasan-gce
2018/01/09 01:15 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/07 18:18 net-next-old d0adb51edb73 19c05fff .config console log report ci-upstream-net-kasan-gce
2018/01/07 16:08 net-next-old d0adb51edb73 19c05fff .config console log report ci-upstream-net-kasan-gce
2018/01/06 07:00 net-next-old d0adb51edb73 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/05 07:14 net-next-old 8a4816cad00b 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/03 08:06 net-next-old 72bca2084a21 00193447 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.