syzbot


general protection fault in padata_reorder

Status: fixed on 2020/03/16 09:27
Reported-by: syzbot+927d15dee5db4725c2ea@syzkaller.appspotmail.com
Fix commit: cad926f70b5a padata: fix null pointer deref of pd->pinst
First crash: 1744d, last: 1741d
Fix bisection: fixed by (bisect log) :
commit cad926f70b5a3ac61de0274c28891dc7fbd8d2ad
Author: Daniel Jordan <daniel.m.jordan@oracle.com>
Date: Fri Feb 14 18:28:21 2020 +0000

  padata: fix null pointer deref of pd->pinst

  

Sample crash report:
audit: type=1400 audit(1581459138.614:36): avc:  denied  { map } for  pid=8229 comm="syz-executor358" path="/root/syz-executor358189540" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
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
CPU: 0 PID: 2871 Comm: kworker/0:2 Not tainted 4.19.103-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: pencrypt padata_parallel_worker
RIP: 0010:padata_reorder+0x303/0x740 kernel/padata.c:263
Code: 00 0f 85 7f 03 00 00 4c 89 21 e8 88 21 e7 ff 4c 89 f7 e8 30 23 d1 05 48 8b 45 c0 48 8d 53 48 48 8d 78 10 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 cd 02 00 00 48 8b 45 c0 8b 7d d0 48 8b 70 10
RSP: 0018:ffff88809e6efb58 EFLAGS: 00010202
RAX: 0000000000000002 RBX: ffffe8ffffd26150 RCX: 0000000000000000
RDX: ffffe8ffffd26198 RSI: 0000000000000004 RDI: 0000000000000010
RBP: ffff88809e6efbe0 R08: 1ffffd1ffffa4c2c R09: fffff91ffffa4c2d
R10: fffff91ffffa4c2c R11: ffffe8ffffd26163 R12: ffff888082d010d0
R13: dffffc0000000000 R14: ffffe8ffffd26160 R15: ffff8880a5a34a00
FS:  0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000050 CR3: 00000000902e8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 padata_do_serial+0x298/0x370 kernel/padata.c:418
 pcrypt_aead_enc+0x10a/0x190 crypto/pcrypt.c:147
 padata_parallel_worker+0x292/0x470 kernel/padata.c:88
 process_one_work+0x989/0x1750 kernel/workqueue.c:2153
 worker_thread+0x98/0xe40 kernel/workqueue.c:2296
 kthread+0x354/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 298398f2d51646b9 ]---
RIP: 0010:padata_reorder+0x303/0x740 kernel/padata.c:263
Code: 00 0f 85 7f 03 00 00 4c 89 21 e8 88 21 e7 ff 4c 89 f7 e8 30 23 d1 05 48 8b 45 c0 48 8d 53 48 48 8d 78 10 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 cd 02 00 00 48 8b 45 c0 8b 7d d0 48 8b 70 10
RSP: 0018:ffff88809e6efb58 EFLAGS: 00010202
RAX: 0000000000000002 RBX: ffffe8ffffd26150 RCX: 0000000000000000
RDX: ffffe8ffffd26198 RSI: 0000000000000004 RDI: 0000000000000010
RBP: ffff88809e6efbe0 R08: 1ffffd1ffffa4c2c R09: fffff91ffffa4c2d
R10: fffff91ffffa4c2c R11: ffffe8ffffd26163 R12: ffff888082d010d0
R13: dffffc0000000000 R14: ffffe8ffffd26160 R15: ffff8880a5a34a00
FS:  0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000050 CR3: 00000000902e8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (90):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/11 22:15 linux-4.19.y 357668399cf7 4d1ab643 .config console log report syz C ci2-linux-4-19
2020/02/14 19:31 linux-4.19.y 357668399cf7 5d7b90f1 .config console log report ci2-linux-4-19
2020/02/14 16:32 linux-4.19.y 357668399cf7 5d7b90f1 .config console log report ci2-linux-4-19
2020/02/14 15:16 linux-4.19.y 357668399cf7 5d7b90f1 .config console log report ci2-linux-4-19
2020/02/14 03:52 linux-4.19.y 357668399cf7 5d7b90f1 .config console log report ci2-linux-4-19
2020/02/13 23:34 linux-4.19.y 357668399cf7 e6247653 .config console log report ci2-linux-4-19
2020/02/13 20:24 linux-4.19.y 357668399cf7 e6247653 .config console log report ci2-linux-4-19
2020/02/13 01:01 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 01:00 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 01:00 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:57 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:56 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:55 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:55 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:55 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:51 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:50 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:49 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:48 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:48 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:47 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:37 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:37 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:25 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/13 00:25 linux-4.19.y 357668399cf7 84f4fc8a .config console log report ci2-linux-4-19
2020/02/11 20:03 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 19:57 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 19:24 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 18:49 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 18:37 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 18:14 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 18:08 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 17:54 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 17:42 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 17:39 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 17:25 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 17:25 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 17:09 linux-4.19.y 357668399cf7 4d1ab643 .config console log report ci2-linux-4-19
2020/02/11 16:43 linux-4.19.y 357668399cf7 084454ae .config console log report ci2-linux-4-19
2020/02/11 16:41 linux-4.19.y 357668399cf7 084454ae .config console log report ci2-linux-4-19
2020/02/11 16:32 linux-4.19.y 357668399cf7 084454ae .config console log report ci2-linux-4-19
2020/02/11 16:31 linux-4.19.y 357668399cf7 084454ae .config console log report ci2-linux-4-19
2020/02/11 16:28 linux-4.19.y 357668399cf7 084454ae .config console log report ci2-linux-4-19
2020/02/11 15:34 linux-4.19.y 357668399cf7 084454ae .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.