syzbot


general protection fault in scatterwalk_copychunks (2)
Status: fixed on 2018/01/11 01:23
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: e57121d08c38 crypto: chacha20poly1305 - validate the digest size
First crash: 1629d, last: 1601d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in scatterwalk_copychunks (4) C done 97 2d03h 435d 0/22 upstream: reported C repro on 2021/03/16 06:48
upstream general protection fault in scatterwalk_copychunks (3) C 95 1310d 1436d 0/22 closed as invalid on 2019/06/10 23:08
linux-4.14 general protection fault in scatterwalk_copychunks C error 189 13d 1130d 0/1 upstream: reported C repro on 2019/04/21 07:15
linux-4.19 general protection fault in scatterwalk_copychunks C 121 13d 1069d 0/1 upstream: reported C repro on 2019/06/20 18:59
upstream general protection fault in scatterwalk_copychunks C 414 1629d 1638d 3/22 fixed on 2017/12/08 02:32

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: 0 PID: 3137 Comm: syzkaller713350 Not tainted 4.15.0-rc4+ #229
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_copychunks+0x337/0x480 crypto/scatterwalk.c:55
RSP: 0018:ffff8801c914f260 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000fa6 RCX: ffffffff824fa2e9
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008
RBP: ffff8801c914f2c0 R08: ffffed003b3d65e2 R09: ffffed003b3d65e2
R10: 0000000000000002 R11: ffffed003b3d65e1 R12: 0000000000000fa6
R13: ffff8801c914f630 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000001fd6880(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020b10000 CR3: 00000001cb59f003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 skcipher_next_slow crypto/skcipher.c:272 [inline]
 skcipher_walk_next+0x8db/0x1bd0 crypto/skcipher.c:357
 skcipher_walk_first+0x138/0x400 crypto/skcipher.c:442
 skcipher_walk_skcipher+0x519/0x6e0 crypto/skcipher.c:471
 skcipher_walk_virt+0x58/0xd0 crypto/skcipher.c:481
 crypto_chacha20_crypt+0xc9/0xbd0 crypto/chacha20_generic.c:89
 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+0x1289/0x1bb0 crypto/algif_aead.c:329
 sock_recvmsg_nosec net/socket.c:809 [inline]
 sock_recvmsg+0xc9/0x110 net/socket.c:816
 ___sys_recvmsg+0x295/0x620 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:0x43fef9
RSP: 002b:00007fffcb8883b8 EFLAGS: 00000217 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043fef9
RDX: 0000000000000000 RSI: 0000000020c0c000 RDI: 0000000000000005
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401860
R13: 00000000004018f0 R14: 0000000000000000 R15: 0000000000000000
Code: 89 ff e8 4d 68 2a 00 4c 89 ea 49 89 c7 48 c1 ea 03 42 80 3c 32 00 0f 85 c9 00 00 00 49 8d 7f 08 4d 89 7d 00 48 89 fa 48 c1 ea 03 <42> 0f b6 14 32 84 d2 74 09 80 fa 03 0f 8e 9e 00 00 00 48 8b 45 
RIP: scatterwalk_start include/crypto/scatterwalk.h:86 [inline] RSP: ffff8801c914f260
RIP: scatterwalk_pagedone include/crypto/scatterwalk.h:111 [inline] RSP: ffff8801c914f260
RIP: scatterwalk_copychunks+0x337/0x480 crypto/scatterwalk.c:55 RSP: ffff8801c914f260
---[ end trace f1a2043c345cc283 ]---

Crashes (141):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2017/12/20 05:46 upstream 10a7e9d84915 2d836b1d .config log report syz C
ci-upstream-kasan-gce 2017/12/13 05:38 upstream d39a01eff9af ce7f2399 .config log report syz C
ci-upstream-kasan-gce 2017/12/09 05:02 upstream 3625de4b2872 5ad0ce95 .config log report syz C
ci-upstream-net-kasan-gce 2017/12/20 02:05 net-next f39a5c01c3d2 2d836b1d .config log report syz C
ci-upstream-net-kasan-gce 2017/12/12 21:06 net-next c360f2b58ee4 414a185f .config log report syz C
ci-upstream-net-kasan-gce 2017/12/08 03:20 net-next 24e5992a6bae 5d643f8e .config log report syz C
ci-upstream-next-kasan-gce 2017/12/21 15:01 linux-next 0e08c463db38 eaadba98 .config log report syz C
ci-upstream-mmots-kasan-gce 2017/12/21 01:01 mmots 82bcf1def3b5 90a46995 .config log report syz C
ci-upstream-mmots-kasan-gce 2017/12/15 04:22 mmots 82bcf1def3b5 ac20b98c .config log report syz C
ci-upstream-next-kasan-gce 2017/12/13 03:47 linux-next d20787938ddb ce7f2399 .config log report syz C
ci-upstream-mmots-kasan-gce 2017/12/12 09:02 mmots 82bcf1def3b5 da131727 .config log report syz C
ci-upstream-mmots-kasan-gce 2017/12/11 14:48 mmots 82bcf1def3b5 27f5dfef .config log report syz C
ci-upstream-next-kasan-gce 2017/12/09 20:14 linux-next ad4dac17f9d5 5ad0ce95 .config log report syz C
ci-upstream-kasan-gce 2017/12/18 14:29 upstream 1291a0d5049d 1c4160ef .config log report
ci-upstream-net-kasan-gce 2018/01/05 00:43 net-next 8a4816cad00b 00193447 .config log report
ci-upstream-net-kasan-gce 2018/01/04 19:13 net-next 8a4816cad00b 00193447 .config log report
ci-upstream-net-kasan-gce 2017/12/30 18:28 net-next 6bb8824732f6 bb6384b8 .config log report
ci-upstream-net-kasan-gce 2017/12/28 06:47 net-next 55b07a65e15b 7d240098 .config log report
ci-upstream-net-kasan-gce 2017/12/26 00:50 net-next fba961ab29e5 73aba437 .config log report
ci-upstream-net-kasan-gce 2017/12/24 13:55 net-next fba961ab29e5 73aba437 .config log report
ci-upstream-net-kasan-gce 2017/12/23 22:06 net-next fba961ab29e5 73aba437 .config log report
ci-upstream-net-kasan-gce 2017/12/22 12:29 net-next 0a80f0c26bf5 81fe66b4 .config log report
ci-upstream-net-kasan-gce 2017/12/20 17:20 net-next f39a5c01c3d2 90a46995 .config log report
ci-upstream-net-kasan-gce 2017/12/19 13:49 net-next 962b582785b6 af9163c7 .config log report
ci-upstream-net-kasan-gce 2017/12/19 10:48 net-next 962b582785b6 25793abb .config log report
ci-upstream-net-kasan-gce 2017/12/18 11:06 net-next c30abd5e40dd d5beb42a .config log report
ci-upstream-net-kasan-gce 2017/12/18 06:52 net-next c30abd5e40dd d5beb42a .config log report
ci-upstream-net-kasan-gce 2017/12/18 03:37 net-next c30abd5e40dd d5beb42a .config log report
ci-upstream-net-kasan-gce 2017/12/17 10:23 net-next c30abd5e40dd b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/17 09:34 net-next c30abd5e40dd b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/17 08:22 net-next c30abd5e40dd b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/17 06:39 net-next c30abd5e40dd b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/17 05:18 net-next c30abd5e40dd b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/17 04:37 net-next c30abd5e40dd b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/17 04:03 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/17 00:35 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 21:39 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 21:10 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 18:24 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 18:18 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 15:30 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 13:53 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 12:29 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 10:51 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 09:34 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 09:31 net-next 28dc4c8f4557 b6f0c91b .config log report
ci-upstream-net-kasan-gce 2017/12/16 07:10 net-next 28dc4c8f4557 ac20b98c .config log report
ci-upstream-net-kasan-gce 2017/12/15 11:22 net-next 5c13e07580c8 ac20b98c .config log report
ci-upstream-net-kasan-gce 2017/12/15 10:33 net-next 5c13e07580c8 ac20b98c .config log report
ci-upstream-net-kasan-gce 2017/12/15 08:37 net-next 5c13e07580c8 ac20b98c .config log report
ci-upstream-net-kasan-gce 2017/12/15 07:41 net-next 5c13e07580c8 ac20b98c .config log report
ci-upstream-next-kasan-gce 2018/01/01 08:16 linux-next 0e08c463db38 00193447 .config log report
ci-upstream-mmots-kasan-gce 2017/12/25 19:51 mmots 37759fa6d0fa 73aba437 .config log report