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: 2386d, last: 2383d
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
* Struck through repros no longer work on HEAD.