syzbot


general protection fault in gcmaes_crypt_by_sg (2)

Status: fixed on 2020/03/11 20:34
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+675c45cea768b3819803@syzkaller.appspotmail.com
Fix commit: db885e66d268 net/tls: fix async operation
First crash: 1598d, last: 1551d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit db885e66d268884dc72967279b7e84f522556abc
Author: Jakub Kicinski <jakub.kicinski@netronome.com>
Date: Fri Jan 10 12:38:32 2020 +0000

  net/tls: fix async operation

  
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in gcmaes_crypt_by_sg (2) 0 (3) 2020/02/19 11:48
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in gcmaes_crypt_by_sg C error 7 940d 1813d 0/1 upstream: reported C repro on 2019/05/03 04:23
upstream general protection fault in gcmaes_crypt_by_sg crypto 3 2014d 2022d 11/26 fixed on 2019/02/26 22:09

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] PREEMPT SMP KASAN
CPU: 1 PID: 721 Comm: kworker/u4:9 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: pencrypt_parallel padata_parallel_worker
RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:68 [inline]
RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:93 [inline]
RIP: 0010:scatterwalk_done include/crypto/scatterwalk.h:101 [inline]
RIP: 0010:gcmaes_crypt_by_sg.constprop.0+0x1035/0x1aa0 arch/x86/crypto/aesni-intel_glue.c:786
Code: e8 30 f7 52 02 48 89 84 24 a8 00 00 00 48 83 c0 08 48 89 c2 48 89 84 24 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 30 09 00 00 48 8b 84 24 a8 00
RSP: 0018:ffffc90003307750 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000004000 RCX: ffffffff838ccec9
RDX: 0000000000000001 RSI: ffffffff838ccf1b RDI: 0000000000000007
RBP: ffffc90003307b20 R08: ffff8880a742c040 R09: 000000000000000d
R10: ffff88809afb6660 R11: 00000000000000d0 R12: 0000000000004000
R13: 0000000000000000 R14: ffff88809afb6300 R15: 0000000000004000
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd3f512e5c CR3: 000000000986d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 gcmaes_encrypt arch/x86/crypto/aesni-intel_glue.c:840 [inline]
 generic_gcmaes_encrypt+0x10d/0x160 arch/x86/crypto/aesni-intel_glue.c:1019
 crypto_aead_encrypt+0xaf/0xf0 crypto/aead.c:94
 simd_aead_encrypt+0x1a6/0x2b0 crypto/simd.c:335
 crypto_aead_encrypt+0xaf/0xf0 crypto/aead.c:94
 pcrypt_aead_enc+0x19/0x80 crypto/pcrypt.c:76
 padata_parallel_worker+0x28f/0x470 kernel/padata.c:81
 process_one_work+0x9af/0x1740 kernel/workqueue.c:2264
 worker_thread+0x98/0xe40 kernel/workqueue.c:2410
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 721 at kernel/locking/mutex.c:1419 mutex_trylock+0x279/0x2f0 kernel/locking/mutex.c:1427

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/15 05:52 upstream 07c4b9e9f71a eef6e580 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/12/15 01:44 upstream e31736d9fae8 eef6e580 .config console log report syz C ci-upstream-kasan-gce
2019/12/15 01:42 net-old 5c9934b6767b eef6e580 .config console log report syz C ci-upstream-net-this-kasan-gce
2019/12/15 01:11 net-next-old 1d1997db870f eef6e580 .config console log report syz C ci-upstream-net-kasan-gce
2019/12/25 11:06 linux-next 7ddd09fc4b74 be5c2c81 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/01/10 19:48 upstream e69ec487b2c7 4de4e9f0 .config console log report ci-upstream-kasan-gce
2019/12/28 22:43 upstream bf8d1cd43865 af6b8ef8 .config console log report ci-upstream-kasan-gce
2019/12/20 19:40 upstream 7e0165b2f1a9 bc586918 .config console log report ci-upstream-kasan-gce
2019/12/19 00:18 upstream 2187f215ebaa 79b211f7 .config console log report ci-upstream-kasan-gce
2019/12/16 19:30 upstream 510c9788991c b80769fc .config console log report ci-upstream-kasan-gce
2019/12/16 09:54 upstream 07c4b9e9f71a eef6e580 .config console log report ci-upstream-kasan-gce
2019/12/10 12:05 upstream 6794862a16ef 4b83c8fb .config console log report ci-upstream-kasan-gce
2019/12/03 21:26 upstream 76bb8b05960c ae13a849 .config console log report ci-upstream-kasan-gce-root
2020/01/10 20:32 net-old e267371dd376 4de4e9f0 .config console log report ci-upstream-net-this-kasan-gce
2020/01/10 17:45 net-old e267371dd376 4de4e9f0 .config console log report ci-upstream-net-this-kasan-gce
2019/12/21 16:17 net-old 307201a3d494 bc586918 .config console log report ci-upstream-net-this-kasan-gce
2019/12/19 20:18 net-old 6fa9a115fe7c 36650b4b .config console log report ci-upstream-net-this-kasan-gce
2019/12/08 04:46 net-old 5532946e3395 1508f453 .config console log report ci-upstream-net-this-kasan-gce
2020/01/20 05:03 net-next-old 7f013edebaa4 0342f8c7 .config console log report ci-upstream-net-kasan-gce
2020/01/19 00:12 net-next-old 9aaa29494030 bc8bc756 .config console log report ci-upstream-net-kasan-gce
2020/01/16 16:40 net-next-old 1ccf6c13d9c7 3de7aabb .config console log report ci-upstream-net-kasan-gce
2019/12/15 00:17 net-next-old 1d1997db870f eef6e580 .config console log report ci-upstream-net-kasan-gce
2019/12/14 07:05 net-next-old 1f4782ae2457 5b2ca5da .config console log report ci-upstream-net-kasan-gce
2019/12/14 03:24 net-next-old 1f4782ae2457 5b2ca5da .config console log report ci-upstream-net-kasan-gce
2019/12/09 06:45 net-next-old e42617b825f8 1508f453 .config console log report ci-upstream-net-kasan-gce
2020/01/08 09:22 linux-next 264673852033 6738e0b3 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/12/15 00:39 linux-next 32b8acf85223 eef6e580 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/12/14 20:28 linux-next 32b8acf85223 eef6e580 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.