syzbot


BUG: unable to handle kernel NULL pointer dereference in __crypto_alg_lookup

Status: closed as dup on 2017/12/20 22:36
Reported-by: syzbot+08fafbe591c1d2980114c828ef2d7b5a46c19bff@syzkaller.appspotmail.com
First crash: 1822d, last: 1815d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in __list_del_entry_valid (2) C 11 1815d 1817d

Sample crash report:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
IP: __crypto_alg_lookup+0x43/0x190 crypto/api.c:63
PGD 0 P4D 0 
Oops: 0000 [#1] SMP
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 3432 Comm: cryptomgr_probe Not tainted 4.15.0-rc3-next-20171214+ #67
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__crypto_alg_lookup+0x43/0x190 crypto/api.c:63
RSP: 0018:ffffc90001bffd28 EFLAGS: 00010293
RAX: ffff880212cea600 RBX: 0000000000000000 RCX: ffffffff816741f3
RDX: 0000000000000000 RSI: ffff880214e02121 RDI: ffff880210c83089
RBP: ffffc90001bffd70 R08: 0000000000000001 R09: 0000000000000001
R10: ffffc90001bffcf0 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 000000000000240f R15: 0000000000000403
FS:  0000000000000000(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000020 CR3: 000000000301e006 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 crypto_alg_lookup+0x31/0x50 crypto/api.c:201
 crypto_larval_lookup.part.8+0x34/0x1c0 crypto/api.c:218
 crypto_larval_lookup crypto/api.c:212 [inline]
 crypto_alg_mod_lookup+0x77/0x120 crypto/api.c:271
 crypto_find_alg+0x63/0x70 crypto/api.c:501
 crypto_grab_spawn+0x2f/0x80 crypto/algapi.c:631
 crypto_grab_aead+0x35/0x40 crypto/aead.c:336
 pcrypt_create_aead crypto/pcrypt.c:298 [inline]
 pcrypt_create+0xca/0x2c0 crypto/pcrypt.c:346
 cryptomgr_probe+0x40/0x100 crypto/algboss.c:75
 kthread+0x149/0x170 kernel/kthread.c:238
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:524
Code: 89 7d d0 e8 70 61 c4 ff 48 8b 1d 89 df a6 01 48 81 fb 60 21 0e 83 0f 84 4c 01 00 00 c7 45 c4 fe ff ff ff 45 31 e4 e8 4d 61 c4 ff <44> 8b 6b 20 41 f6 c5 60 0f 85 03 01 00 00 e8 3a 61 c4 ff 44 89 
RIP: __crypto_alg_lookup+0x43/0x190 crypto/api.c:63 RSP: ffffc90001bffd28
CR2: 0000000000000020
---[ end trace 92f76e3fa5a0c70f ]---
BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
IP: __crypto_alg_lookup+0x43/0x190 crypto/api.c:63
PGD 214263067 P4D 214263067 PUD 21412f067 PMD 0 
Oops: 0000 [#2] SMP
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 3414 Comm: syzkaller169189 Tainted: G      D          4.15.0-rc3-next-20171214+ #67
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__crypto_alg_lookup+0x43/0x190 crypto/api.c:63
RSP: 0018:ffffc90001bf7cb8 EFLAGS: 00010293
RAX: ffff88021435c800 RBX: 0000000000000000 RCX: ffffffff816741f3
RDX: 0000000000000000 RSI: ffffc90001bf7e99 RDI: ffff880210c83089
RBP: ffffc90001bf7d00 R08: 0000000000000001 R09: ffffffff81674363
R10: ffffc90001bf7c80 R11: 0000000000000000 R12: ffff88021413a800
R13: 0000000000000000 R14: 000000000000240f R15: 0000000000000403
FS:  0000000000c04880(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000020 CR3: 0000000212ee8001 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 crypto_alg_lookup+0x31/0x50 crypto/api.c:201
 crypto_larval_lookup.part.8+0xa0/0x1c0 crypto/api.c:226
 crypto_larval_lookup crypto/api.c:212 [inline]
 crypto_alg_mod_lookup+0x77/0x120 crypto/api.c:271
 crypto_find_alg crypto/api.c:501 [inline]
 crypto_alloc_tfm+0x67/0x180 crypto/api.c:534
 crypto_alloc_aead+0x2c/0x40 crypto/aead.c:342
 aead_bind+0x51/0xc0 crypto/algif_aead.c:488
 alg_bind+0x94/0x180 crypto/af_alg.c:179
 SYSC_bind+0xa8/0x130 net/socket.c:1454
 SyS_bind+0x24/0x30 net/socket.c:1440
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x441359
RSP: 002b:00007ffe5bfb0818 EFLAGS: 00000203 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441359
RDX: 0000000000000058 RSI: 0000000020b5efa8 RDI: 0000000000000003
RBP: 0000000000007098 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000000000
R13: 0000000000000006 R14: 0000000000000000 R15: 0000000000000000
Code: 89 7d d0 e8 70 61 c4 ff 48 8b 1d 89 df a6 01 48 81 fb 60 21 0e 83 0f 84 4c 01 00 00 c7 45 c4 fe ff ff ff 45 31 e4 e8 4d 61 c4 ff <44> 8b 6b 20 41 f6 c5 60 0f 85 03 01 00 00 e8 3a 61 c4 ff 44 89 
RIP: __crypto_alg_lookup+0x43/0x190 crypto/api.c:63 RSP: ffffc90001bf7cb8
CR2: 0000000000000020
---[ end trace 92f76e3fa5a0c710 ]---

Crashes (47):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-next-kasan-gce 2017/12/19 17:20 linux-next 6084b576dca2 af9163c7 .config log report syz C
ci-upstream-next-kasan-gce 2017/12/19 07:24 linux-next 6084b576dca2 1c4160ef .config log report syz C
ci-upstream-next-kasan-gce 2017/12/19 01:04 linux-next 6084b576dca2 1c4160ef .config log report syz C
ci-upstream-next-kasan-gce 2017/12/14 07:29 linux-next 41d8c16909eb 06ea774d .config log report syz C
ci-upstream-next-kasan-gce 2017/12/13 23:34 linux-next 41d8c16909eb 06ea774d .config log report syz C
ci-upstream-next-kasan-gce 2017/12/13 21:01 linux-next 41d8c16909eb 06ea774d .config log report syz C
ci-upstream-next-kasan-gce 2017/12/20 12:08 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 11:05 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 10:26 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 09:07 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 08:11 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 07:40 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 07:10 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 02:08 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 01:26 linux-next 6084b576dca2 2d836b1d .config log report
ci-upstream-next-kasan-gce 2017/12/20 00:42 linux-next 6084b576dca2 af9163c7 .config log report
ci-upstream-next-kasan-gce 2017/12/19 21:57 linux-next 6084b576dca2 af9163c7 .config log report
ci-upstream-next-kasan-gce 2017/12/19 20:20 linux-next 6084b576dca2 af9163c7 .config log report
ci-upstream-next-kasan-gce 2017/12/19 19:44 linux-next 6084b576dca2 af9163c7 .config log report
ci-upstream-next-kasan-gce 2017/12/19 17:43 linux-next 6084b576dca2 af9163c7 .config log report
ci-upstream-next-kasan-gce 2017/12/19 15:20 linux-next 6084b576dca2 af9163c7 .config log report
ci-upstream-next-kasan-gce 2017/12/19 14:05 linux-next 6084b576dca2 af9163c7 .config log report
ci-upstream-next-kasan-gce 2017/12/19 12:42 linux-next 6084b576dca2 25793abb .config log report
ci-upstream-next-kasan-gce 2017/12/19 12:02 linux-next 6084b576dca2 25793abb .config log report
ci-upstream-next-kasan-gce 2017/12/19 09:52 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/19 06:58 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/19 06:43 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/19 04:00 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/19 01:07 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/18 21:06 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/18 20:45 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/18 19:01 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/18 17:13 linux-next 6084b576dca2 1c4160ef .config log report
ci-upstream-next-kasan-gce 2017/12/18 02:15 linux-next 6084b576dca2 d5beb42a .config log report
ci-upstream-next-kasan-gce 2017/12/17 15:37 linux-next 6084b576dca2 d5beb42a .config log report
ci-upstream-next-kasan-gce 2017/12/15 20:17 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/15 18:54 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/15 14:36 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/15 07:59 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/15 07:46 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/14 19:27 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/14 17:27 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/14 15:57 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/14 15:44 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/14 09:00 linux-next 6084b576dca2 ac20b98c .config log report
ci-upstream-next-kasan-gce 2017/12/14 08:29 linux-next 6084b576dca2 ac20b98c .config log report
* Struck through repros no longer work on HEAD.