syzbot


general protection fault in scatterwalk_copychunks

Status: upstream: reported C repro on 2019/04/21 07:15
Reported-by: syzbot+bc78bb581922f5035c8d@syzkaller.appspotmail.com
First crash: 1166d, last: 49d

Fix bisection: failed (bisect log)
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in scatterwalk_copychunks (4) C done 104 3d18h 471d 0/22 upstream: reported C repro on 2021/03/16 06:48
upstream general protection fault in scatterwalk_copychunks (3) C 95 1346d 1472d 0/22 closed as invalid on 2019/06/10 23:08
upstream general protection fault in scatterwalk_copychunks (2) C 141 1637d 1664d 3/22 fixed on 2018/01/11 01:23
linux-4.19 general protection fault in scatterwalk_copychunks C error 125 7d11h 1106d 0/1 upstream: reported C repro on 2019/06/20 18:59
upstream general protection fault in scatterwalk_copychunks C 414 1665d 1675d 3/22 fixed on 2017/12/08 02:32
linux-4.14 KASAN: use-after-free Read in scatterwalk_copychunks C inconclusive 4 511d 1166d 0/1 upstream: reported C repro on 2019/04/21 07:18
linux-4.19 KASAN: use-after-free Read in scatterwalk_copychunks C error 13 7d11h 1001d 0/1 upstream: reported C repro on 2019/10/03 04:34
linux-4.14 KASAN: slab-out-of-bounds Read in scatterwalk_copychunks C inconclusive 6 519d 1023d 0/1 upstream: reported C repro on 2019/09/11 08:57

Sample crash report:
RBP: 00007f4fc0440194 R08: 0000000000000001 R09: 0000000000000034
R10: 0000800100022007 R11: 0000000000000246 R12: 00007f4fc04734fc
R13: 00007f4fc037a2f0 R14: 00007f4fc04734f8 R15: 0000000000000001
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
Modules linked in:
CPU: 0 PID: 7992 Comm: syz-executor400 Not tainted 4.14.277-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888097ad6380 task.stack: ffff888095a88000
RIP: 0010:scatterwalk_start include/crypto/scatterwalk.h:86 [inline]
RIP: 0010:scatterwalk_pagedone include/crypto/scatterwalk.h:111 [inline]
RIP: 0010:scatterwalk_copychunks+0x4a3/0x680 crypto/scatterwalk.c:55
RSP: 0018:ffff888095a8f520 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 000000000000401d RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffff888095a2435d RDI: ffff888096b96598
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed10143ce803
R10: ffff8880a1e7401c R11: 0000000000000000 R12: 000000000000401d
R13: ffff888095a8f5d8 R14: 0000000000001000 R15: ffff888096b965a4
FS:  00007f4fc037a700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4fc042b040 CR3: 00000000b5246000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 scatterwalk_map_and_copy crypto/scatterwalk.c:72 [inline]
 scatterwalk_map_and_copy+0x100/0x1a0 crypto/scatterwalk.c:60
 gcmaes_encrypt.constprop.0+0x6cd/0xc00 arch/x86/crypto/aesni-intel_glue.c:802
Code: fc ff df 80 3c 02 00 0f 85 d9 01 00 00 48 8d 45 10 49 89 6d 00 48 89 c2 48 89 44 24 18 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 81 01 00 00 48 b8 00 00 00 
RIP: scatterwalk_start include/crypto/scatterwalk.h:86 [inline] RSP: ffff888095a8f520
RIP: scatterwalk_pagedone include/crypto/scatterwalk.h:111 [inline] RSP: ffff888095a8f520
RIP: scatterwalk_copychunks+0x4a3/0x680 crypto/scatterwalk.c:55 RSP: ffff888095a8f520
---[ end trace 09c774b951daab77 ]---
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	df 80 3c 02 00 0f    	filds  0xf00023c(%rax)
   6:	85 d9                	test   %ebx,%ecx
   8:	01 00                	add    %eax,(%rax)
   a:	00 48 8d             	add    %cl,-0x73(%rax)
   d:	45 10 49 89          	adc    %r9b,-0x77(%r9)
  11:	6d                   	insl   (%dx),%es:(%rdi)
  12:	00 48 89             	add    %cl,-0x77(%rax)
  15:	c2 48 89             	retq   $0x8948
  18:	44 24 18             	rex.R and $0x18,%al
  1b:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  22:	fc ff df
  25:	48 c1 ea 03          	shr    $0x3,%rdx
* 29:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2d:	84 c0                	test   %al,%al
  2f:	74 08                	je     0x39
  31:	3c 03                	cmp    $0x3,%al
  33:	0f 8e 81 01 00 00    	jle    0x1ba
  39:	48                   	rex.W
  3a:	b8                   	.byte 0xb8
  3b:	00 00                	add    %al,(%rax)

Crashes (189):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2022/05/12 06:29 linux-4.14.y e3a56aaade89 beb0b407 .config log report syz C general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2019/09/02 13:02 linux-4.14.y 01fd1694b93c db7c31ca .config log report syz C
ci2-linux-4-14 2019/04/21 06:39 linux-4.14.y 68d7a45eec10 b0e8efcb .config log report syz C
ci2-linux-4-14 2022/02/13 16:39 linux-4.14.y 8034e99d1a01 8b9ca619 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2022/01/28 07:33 linux-4.14.y bbb957e1bd4a 495e00c5 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2022/01/25 22:45 linux-4.14.y 4ba8e26127c3 2cbffd88 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2022/01/18 04:11 linux-4.14.y 4ba8e26127c3 731a2d23 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2022/01/14 22:21 linux-4.14.y 4ba8e26127c3 53e00b45 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2022/01/14 01:40 linux-4.14.y 4ba8e26127c3 b8d780ab .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/05/17 19:11 linux-4.14.y 7d7d1c0ab3eb a2eb125d .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/05/15 06:24 linux-4.14.y 7d7d1c0ab3eb 8bdd5343 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/05/08 18:44 linux-4.14.y 7d7d1c0ab3eb bc5434be .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/05/01 23:01 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/04/24 13:25 linux-4.14.y cf256fbcbe34 17f0b706 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/04/23 23:09 linux-4.14.y cf256fbcbe34 17f0b706 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/04/22 15:13 linux-4.14.y cf256fbcbe34 33c28d03 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/04/20 00:37 linux-4.14.y cf256fbcbe34 4285c989 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/04/13 22:44 linux-4.14.y 958e517f4e16 a184b83e .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/04/13 20:31 linux-4.14.y 958e517f4e16 a184b83e .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/04/12 14:24 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/04/01 17:35 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/03/30 09:30 linux-4.14.y 670d6552eda8 6a81331a .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/03/28 02:41 linux-4.14.y 670d6552eda8 a8529b82 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/03/16 19:18 linux-4.14.y c7150cd2fa8c fdb2bb2c .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/03/12 11:27 linux-4.14.y c7150cd2fa8c 429d8a6b .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/03/10 21:54 linux-4.14.y 1d177c0872ab 764067f3 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/03/10 01:55 linux-4.14.y 1d177c0872ab 26967e35 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/03/09 03:37 linux-4.14.y 1d177c0872ab 09fbf400 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/03/06 13:20 linux-4.14.y 397a88b2cc86 e4b4d570 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/02/25 08:41 linux-4.14.y 3242aa3a635c fcc6d71b .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/02/14 16:02 linux-4.14.y 2c8a3fceddf0 98682e5e .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/02/13 15:35 linux-4.14.y 2c8a3fceddf0 98682e5e .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/01/31 11:16 linux-4.14.y 2c8a3fceddf0 fc9fd31e .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/01/26 14:50 linux-4.14.y 2d2791fce891 52e37319 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/01/25 17:33 linux-4.14.y 2d2791fce891 52e37319 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/01/21 04:39 linux-4.14.y 2762b48e9611 d4f4eca5 .config log report info general protection fault in scatterwalk_copychunks
ci2-linux-4-14 2021/01/07 15:42 linux-4.14.y 1752938529c6 c104d4a3 .config log report info
ci2-linux-4-14 2020/12/31 11:52 linux-4.14.y 1752938529c6 5cc121d6 .config log report info
ci2-linux-4-14 2020/12/20 23:15 linux-4.14.y 3f2ecb86cb90 04201c06 .config log report info
ci2-linux-4-14 2020/12/18 02:27 linux-4.14.y 3f2ecb86cb90 04201c06 .config log report info
ci2-linux-4-14 2020/12/08 20:22 linux-4.14.y 47cbf4cc32db 40cc414d .config log report info
ci2-linux-4-14 2020/12/05 21:52 linux-4.14.y c196b3a9c83a 50503117 .config log report info
ci2-linux-4-14 2020/12/01 12:44 linux-4.14.y 87335852c5d9 07bfe8a5 .config log report info
ci2-linux-4-14 2020/11/28 22:00 linux-4.14.y 87335852c5d9 3c7136c0 .config log report info
ci2-linux-4-14 2020/11/20 02:07 linux-4.14.y 8961076ed318 0767f13f .config log report info
ci2-linux-4-14 2020/11/07 00:16 linux-4.14.y 6b6446efedb2 cba33199 .config log report info
ci2-linux-4-14 2020/11/02 13:40 linux-4.14.y 2b7915014161 8bc4594f .config log report info
ci2-linux-4-14 2020/09/11 15:18 linux-4.14.y 458a534cac0c adfb8b4e .config log report
ci2-linux-4-14 2020/08/22 03:39 linux-4.14.y 6a24ca2506d6 6436ce4b .config log report
ci2-linux-4-14 2020/06/29 03:26 linux-4.14.y b850307b279c a2cdad9d .config log report
ci2-linux-4-14 2020/06/20 23:25 linux-4.14.y b850307b279c c655ec77 .config log report
ci2-linux-4-14 2020/06/19 12:08 linux-4.14.y b850307b279c bc258b50 .config log report
ci2-linux-4-14 2020/06/17 05:36 linux-4.14.y b850307b279c b9f3810b .config log report