syzbot


BUG: unable to handle kernel paging request in init_srcu_struct_fields

Status: fixed on 2020/04/17 06:51
Reported-by: syzbot+c0cf44eda0b235884959@syzkaller.appspotmail.com
Fix commit: e36be7959326 usbip: tools: Fix read_usb_vudc_device() error path handling
First crash: 1908d, last: 1710d
Fix bisection: fixed by (bisect log) :
commit e36be7959326f3b49653e64f46612ca6a5b98fd2
Author: GwanYeong Kim <gy741.kim@gmail.com>
Date: Fri Oct 18 03:22:23 2019 +0000

  usbip: tools: Fix read_usb_vudc_device() error path handling

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in init_srcu_struct_fields kvm 13 1823d 2152d 0/28 auto-closed as invalid on 2020/03/24 00:19
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2020/04/16 12:20 4h31m bisect fix linux-4.19.y OK (1) job log
2020/03/17 11:41 38m bisect fix linux-4.19.y OK (0) job log log
2020/02/16 11:03 38m bisect fix linux-4.19.y OK (0) job log log
2020/01/17 09:51 38m bisect fix linux-4.19.y OK (0) job log log
2019/12/18 08:59 35m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
BUG: unable to handle kernel paging request at ffffc9000199a888
PGD 12c256067 P4D 12c256067 PUD 21bc31067 PMD a6278067 PTE 0
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
Oops: 0000 [#1] PREEMPT SMP KASAN
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
CPU: 0 PID: 13899 Comm: syz-executor.0 Not tainted 4.19.82 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
RIP: 0010:init_srcu_struct_nodes kernel/rcu/srcutree.c:157 [inline]
RIP: 0010:init_srcu_struct_fields+0xc1c/0x1340 kernel/rcu/srcutree.c:187
Code: 88 00 00 00 48 89 f8 48 c1 e8 03 0f b6 04 18 84 c0 74 08 3c 03 0f 8e ef 03 00 00 49 8d bd 98 01 00 00 44 89 f1 b8 01 00 00 00 <41> 2b 8c 24 88 00 00 00 48 89 fa 48 c1 ea 03 d3 e0 80 3c 1a 00 48
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
RSP: 0018:ffff88809523fb20 EFLAGS: 00010246
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: 0000000000000001
RDX: 0000000000000004 RSI: 0000000000000001 RDI: ffff8880ae900198
RBP: ffff88809523fbf8 R08: ffff88808e5ce180 R09: 0000000000000000
R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffffc9000199a800
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
R13: ffff8880ae900000 R14: 0000000000000001 R15: ffff8880ae9000f0
FS:  00007fdf31862700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000199a888 CR3: 000000008765e000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __init_srcu_struct+0x57/0x60 kernel/rcu/srcutree.c:203
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:672 [inline]
 kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:3220 [inline]
 kvm_dev_ioctl+0xe67/0x1710 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3272
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45a219
Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fdf31861c78 EFLAGS: 00000246
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a219
RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000003
RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdf318626d4
R13: 00000000004c348b R14: 00000000004d7708 R15: 00000000ffffffff
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
Modules linked in:
CR2: ffffc9000199a888
---[ end trace ff8c1497cdb72285 ]---
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
RIP: 0010:init_srcu_struct_nodes kernel/rcu/srcutree.c:157 [inline]
RIP: 0010:init_srcu_struct_fields+0xc1c/0x1340 kernel/rcu/srcutree.c:187
Code: 88 00 00 00 48 89 f8 48 c1 e8 03 0f b6 04 18 84 c0 74 08 3c 03 0f 8e ef 03 00 00 49 8d bd 98 01 00 00 44 89 f1 b8 01 00 00 00 <41> 2b 8c 24 88 00 00 00 48 89 fa 48 c1 ea 03 d3 e0 80 3c 1a 00 48
kobject: 'kvm' (000000005416bf93): kobject_uevent_env
RSP: 0018:ffff88809523fb20 EFLAGS: 00010246
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: 0000000000000001
RDX: 0000000000000004 RSI: 0000000000000001 RDI: ffff8880ae900198
RBP: ffff88809523fbf8 R08: ffff88808e5ce180 R09: 0000000000000000
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffffc9000199a800
R13: ffff8880ae900000 R14: 0000000000000001 R15: ffff8880ae9000f0
FS:  00007fdf31862700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000199a888 CR3: 000000008765e000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kobject: 'kvm' (000000005416bf93): fill_kobj_path: path = '/devices/virtual/misc/kvm'
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/07 14:38 linux-4.19.y 5ee93551c703 d797d201 .config console log report syz ci2-linux-4-19
2019/09/27 20:43 linux-4.19.y d573e8a79f70 d8074e0b .config console log report ci2-linux-4-19
2019/09/01 12:01 linux-4.19.y 97ab07e11fbf bad3cce2 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.