syzbot


general protection fault in __radix_tree_lookup

Status: auto-closed as invalid on 2019/12/15 10:27
Reported-by: syzbot+ed3bc02e0332c1b269c0@syzkaller.appspotmail.com
First crash: 1943d, last: 1761d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in __radix_tree_lookup 2 1559d 1644d 0/1 auto-closed as invalid on 2020/07/04 19:51

Sample crash report:
audit: type=1400 audit(1566037574.094:192): avc:  denied  { setopt } for  pid=30308 comm="syz-executor.5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1
input: syz0 as /devices/virtual/input/input457
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 NOPTI
Modules linked in:
CPU: 0 PID: 30315 Comm: syz-executor.3 Not tainted 4.14.139+ #34
task: 00000000c92b9ab7 task.stack: 0000000098f072d4
RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
RIP: 0010:radix_tree_load_root lib/radix-tree.c:602 [inline]
RIP: 0010:__radix_tree_lookup+0x43/0x220 lib/radix-tree.c:1040
RSP: 0018:ffff88819f97f7a0 EFLAGS: 00010216
RAX: dffffc0000000203 RBX: 1ffff11033f2feff RCX: 000000000000047e
RDX: ffffffff8285d04f RSI: ffffc900059cb000 RDI: 0000000000001010
RBP: dffffc0000000000 R08: 00000000000049cd R09: fffffbfff57efd11
R10: fffffbfff57efd10 R11: ffffffffabf7e883 R12: 0000000000013ad6
R13: 0000000000000000 R14: 0000000000001010 R15: ffff88819f97f838
FS:  00007f0749aae700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75b31ea518 CR3: 00000001852ee002 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 radix_tree_delete_item+0x96/0x1a0 lib/radix-tree.c:2043
 idr_remove_ext include/linux/idr.h:144 [inline]
 idr_remove include/linux/idr.h:149 [inline]
 kernfs_put fs/kernfs/dir.c:542 [inline]
 kernfs_put+0x1d2/0x4f0 fs/kernfs/dir.c:506
 kernfs_create_dir_ns+0x10c/0x130 fs/kernfs/dir.c:1012
 sysfs_create_dir_ns+0xb7/0x1d0 fs/sysfs/dir.c:55
 create_dir lib/kobject.c:71 [inline]
 kobject_add_internal+0x27f/0x830 lib/kobject.c:229
 kobject_add_varg lib/kobject.c:364 [inline]
 kobject_add+0x135/0x1a0 lib/kobject.c:409
 device_add+0x333/0x13a0 drivers/base/core.c:1809
 input_register_device+0x605/0xb20 drivers/input/input.c:2144
 uinput_create_device drivers/input/misc/uinput.c:324 [inline]
 uinput_ioctl_handler.isra.0+0xa2a/0x1850 drivers/input/misc/uinput.c:839
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0xabe/0x1040 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459829
RSP: 002b:00007f0749aadc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459829
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0749aae6d4
R13: 00000000004c45ab R14: 00000000004d8898 R15: 00000000ffffffff
Code: 00 00 00 00 00 fc ff df 53 48 83 ec 20 48 89 44 24 10 48 c1 e8 03 48 01 e8 48 89 54 24 08 48 89 04 24 e8 21 42 ab fe 48 8b 04 24 <80> 38 00 0f 85 a3 01 00 00 49 8b 5e 08 48 89 d8 83 e0 03 48 83 
RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff88819f97f7a0
RIP: radix_tree_load_root lib/radix-tree.c:602 [inline] RSP: ffff88819f97f7a0
RIP: __radix_tree_lookup+0x43/0x220 lib/radix-tree.c:1040 RSP: ffff88819f97f7a0
---[ end trace 6778ca0f877529cd ]---

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/17 10:26 android-4.14 5d8bfdf81cde 8fd428a1 .config console log report ci-android-414-kasan-gce-root
2019/06/13 19:15 android-4.14 4edd10cd8204 a139f92f .config console log report ci-android-414-kasan-gce-root
2019/06/08 03:58 android-4.14 76896566d7b9 cf9c3a50 .config console log report ci-android-414-kasan-gce-root
2019/02/16 01:54 android-4.14 4a739e3530cc f42dee6d .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.