syzbot
general protection fault in crypto_remove_spawns
Status:
fixed on 2018/01/19 01:24
Subsystems:
crypto
[Documentation on labels]
Reported-by: syzbot+b6e703f648ebbbf57a4528d4314e0c2a5c893dc2@syzkaller.appspotmail.com
Fix commit:
9a00674213a3
crypto: algapi - fix NULL dereference in crypto_remove_spawns()
First crash: 3166d, last: 3125d
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: 27740 Comm: cryptomgr_test Not tainted 4.14.0+ #102
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801c313e4c0 task.stack: ffff8801c4140000
RIP: 0010:crypto_remove_spawns+0x58c/0x1260 crypto/algapi.c:159
RSP: 0018:ffff8801c41479e8 EFLAGS: 00010206
RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffffffff82252f3b
RDX: 0000000000000000 RSI: 1ffff10038828fa6 RDI: 0000000000000018
RBP: ffff8801c4147dd8 R08: ffff8801c4147d70 R09: 0000000000000004
R10: 0000000000000000 R11: ffffffff8747dd60 R12: 0000000000000000
R13: ffff8801c305bba0 R14: ffffed0038828f4e R15: ffff8801c4147db0
FS: 0000000000000000(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff45f27e30 CR3: 00000001d517b000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
crypto_alg_tested+0x514/0x6f0 crypto/algapi.c:311
cryptomgr_test+0x17/0x30 crypto/algboss.c:226
kthread+0x37a/0x440 kernel/kthread.c:238
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:437
Code: 84 e3 01 00 00 e8 a5 c3 4a ff 4c 89 e8 48 c1 e8 03 80 3c 18 00 0f 85 d8 09 00 00 4d 8b 65 00 49 8d 7c 24 18 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 b4 09 00 00 4d 8b 6c 24 18 4c 3b ad 50 fc ff
RIP: crypto_remove_spawns+0x58c/0x1260 crypto/algapi.c:159 RSP: ffff8801c41479e8
---[ end trace 8a97902cbf4190c4 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
(ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..
* Struck through repros no longer work on HEAD.