syzbot


BUG: unable to handle kernel NULL pointer dereference in scatterwalk_copychunks (2)

Status: closed as invalid on 2018/09/05 12:51
Subsystems: crypto
[Documentation on labels]
First crash: 2167d, last: 2167d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in scatterwalk_copychunks (4) net crypto C done done 1341 176d 1187d 25/27 fixed on 2023/12/22 15:08
upstream BUG: unable to handle kernel NULL pointer dereference in scatterwalk_copychunks crypto C 3 2374d 2375d 3/27 fixed on 2018/01/11 01:23

Sample crash report:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
PGD 8000000113a69067 P4D 8000000113a69067 PUD 116662067 PMD 0 
Oops: 0000 [#1] SMP PTI
CPU: 1 PID: 12429 Comm: syz-executor2 Not tainted 4.18.0-rc4+ #24
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+0x649/0x810 crypto/scatterwalk.c:55
Code: 00 00 4c 89 23 4d 85 e4 0f 85 6d 01 00 00 48 8b 45 a0 48 89 c3 48 83 c3 08 49 89 45 00 4c 89 65 a8 4d 85 e4 0f 85 6d 01 00 00 <44> 8b 3b 48 89 df e8 1c a7 f3 fd 44 8b 20 8b 02 89 45 cc 4c 89 f7 
RSP: 0018:ffff880163ceee50 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000008 RCX: ffff880115a2efb0
RDX: ffff880115a2efb0 RSI: aaaaaaaaaaaab000 RDI: ffffea000856d940
RBP: ffff880163ceef20 R08: ffffffff7fffffff R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff83db4020 R12: 0000000000000000
R13: ffff880163ceefb0 R14: ffff880163ceefb8 R15: ffff880115a2efb0
FS:  00007f40d2dcb700(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000008 CR3: 000000011644c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 scatterwalk_map_and_copy+0x62a/0x6e0 crypto/scatterwalk.c:72
 gcm_enc_copy_hash+0x20c/0x2a0 crypto/gcm.c:440
 gcm_hash_len_continue crypto/gcm.c:268 [inline]
 gcm_hash_crypt_remain_continue+0x43f/0x5f0 crypto/gcm.c:289
 gcm_hash_assoc_continue crypto/gcm.c:320 [inline]
 gcm_hash_init_continue crypto/gcm.c:400 [inline]
 gcm_hash+0x1e56/0x24d0 crypto/gcm.c:430
 gcm_encrypt_continue crypto/gcm.c:455 [inline]
 crypto_gcm_encrypt+0xa18/0xb00 crypto/gcm.c:484
 crypto_aead_encrypt include/crypto/aead.h:335 [inline]
 tls_do_encryption net/tls/tls_sw.c:211 [inline]
 tls_push_record+0xccc/0x1f60 net/tls/tls_sw.c:247
 tls_sw_sendpage+0x1462/0x1a10 net/tls/tls_sw.c:601
 inet_sendpage+0x505/0x8f0 net/ipv4/af_inet.c:815
 kernel_sendpage net/socket.c:3331 [inline]
 sock_sendpage+0x1ef/0x2e0 net/socket.c:866
 pipe_to_sendpage+0x317/0x440 fs/splice.c:452
 splice_from_pipe_feed fs/splice.c:503 [inline]
 __splice_from_pipe+0x4a5/0xf50 fs/splice.c:627
 splice_from_pipe fs/splice.c:662 [inline]
 generic_splice_sendpage+0x1d9/0x2d0 fs/splice.c:833
 do_splice_from fs/splice.c:852 [inline]
 direct_splice_actor+0x19e/0x200 fs/splice.c:1019
 splice_direct_to_actor+0x78a/0x1090 fs/splice.c:974
 do_splice_direct+0x351/0x5a0 fs/splice.c:1062
 do_sendfile+0x10ab/0x1e80 fs/read_write.c:1440
 __do_sys_sendfile64 fs/read_write.c:1495 [inline]
 __se_sys_sendfile64 fs/read_write.c:1487 [inline]
 __x64_sys_sendfile64+0x228/0x3b0 fs/read_write.c:1487
 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x455e29
Code: 1d ba 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007f40d2dcac68 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f40d2dcb6d4 RCX: 0000000000455e29
RDX: 00000000200000c0 RSI: 0000000000000016 RDI: 0000000000000015
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000017
R13: 00000000004c1113 R14: 00000000004d1540 R15: 0000000000000009
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: 0000000000000008
---[ end trace 6152c3cb87c08c68 ]---
RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:86 [inline]
RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:111 [inline]
RIP: 0010:scatterwalk_copychunks+0x649/0x810 crypto/scatterwalk.c:55
Code: 00 00 4c 89 23 4d 85 e4 0f 85 6d 01 00 00 48 8b 45 a0 48 89 c3 48 83 c3 08 49 89 45 00 4c 89 65 a8 4d 85 e4 0f 85 6d 01 00 00 <44> 8b 3b 48 89 df e8 1c a7 f3 fd 44 8b 20 8b 02 89 45 cc 4c 89 f7 
RSP: 0018:ffff880163ceee50 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000008 RCX: ffff880115a2efb0
RDX: ffff880115a2efb0 RSI: aaaaaaaaaaaab000 RDI: ffffea000856d940
RBP: ffff880163ceef20 R08: ffffffff7fffffff R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff83db4020 R12: 0000000000000000
R13: ffff880163ceefb0 R14: ffff880163ceefb8 R15: ffff880115a2efb0
FS:  00007f40d2dcb700(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000008 CR3: 000000011644c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/10 23:53 https://github.com/google/kmsan.git master b64f7ec04e12 2e0e3130 .config console log report ci-upstream-kmsan-gce
2018/07/10 23:31 https://github.com/google/kmsan.git master b64f7ec04e12 2e0e3130 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.