syzbot


BUG: unable to handle kernel NULL pointer dereference in jent_memaccess

Status: closed as invalid on 2020/06/18 11:33
Subsystems: crypto
[Documentation on labels]
First crash: 1406d, last: 1406d

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 95677067 P4D 95677067 PUD a7b4b067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3622 Comm: syz-executor.3 Not tainted 5.7.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202
Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2
RSP: 0018:ffffc900170b7a38 EFLAGS: 00010246
RAX: ffffffff837f6f87 RBX: dffffc0000000000 RCX: ffff88809ad3e500
RDX: 0000000000000000 RSI: 00000000000005db RDI: 0000000000000094
RBP: ffff888098b09258 R08: ffffffff837f6f09 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900170b7c70
R13: 1ffff1101316124c R14: ffff888098b09260 R15: 0000000000000030
FS:  00007f4cb015d700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009a1c2000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 jent_memaccess+0x187/0x1a0 crypto/jitterentropy.c:482
 jent_measure_jitter+0x4e/0xe0 crypto/jitterentropy.c:523
 jent_gen_entropy+0x32/0x80 crypto/jitterentropy.c:557
 jent_read_entropy+0x88/0x210 crypto/jitterentropy.c:603
 jent_kcapi_random+0xa0/0x1e0 crypto/jitterentropy-kcapi.c:153
 crypto_rng_generate include/crypto/rng.h:142 [inline]
 crypto_rng_get_bytes include/crypto/rng.h:161 [inline]
 drbg_seed+0x24e/0x840 crypto/drbg.c:1162
 drbg_instantiate crypto/drbg.c:1602 [inline]
 drbg_kcapi_seed+0xe67/0x1220 crypto/drbg.c:1980
 crypto_rng_reset+0x95/0x290 crypto/rng.c:53
 alg_setkey crypto/af_alg.c:222 [inline]
 alg_setsockopt+0x376/0x400 crypto/af_alg.c:255
 __sys_setsockopt+0x564/0x710 net/socket.c:2127
 __do_sys_setsockopt net/socket.c:2143 [inline]
 __se_sys_setsockopt net/socket.c:2140 [inline]
 __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2140
 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45ca59
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f4cb015cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00000000005024e0 RCX: 000000000045ca59
RDX: 0000000000000001 RSI: 0000000000000117 RDI: 0000000000000004
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000a4c R14: 00000000004cd216 R15: 00007f4cb015d6d4
Modules linked in:
CR2: 0000000000000000
---[ end trace b54824ad03747264 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202
Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2
RSP: 0018:ffffc900170b7a38 EFLAGS: 00010246
RAX: ffffffff837f6f87 RBX: dffffc0000000000 RCX: ffff88809ad3e500
RDX: 0000000000000000 RSI: 00000000000005db RDI: 0000000000000094
RBP: ffff888098b09258 R08: ffffffff837f6f09 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900170b7c70
R13: 1ffff1101316124c R14: ffff888098b09260 R15: 0000000000000030
FS:  00007f4cb015d700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009a1c2000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/17 19:57 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.