syzbot


general protection fault in kernfs_add_one

Status: auto-closed as invalid on 2020/01/14 07:42
Reported-by: syzbot+f7b10f4ca96eb3bf104d@syzkaller.appspotmail.com
First crash: 1911d, last: 1911d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in kernfs_add_one C done 5 1956d 2025d 1/1 fixed on 2019/12/03 19:05
linux-4.19 general protection fault in kernfs_add_one C done 8 1924d 2063d 1/1 fixed on 2019/12/05 10:31
upstream general protection fault in kernfs_add_one C done 98 1952d 2276d 13/28 fixed on 2019/11/22 12:17

Sample crash report:
binder_alloc: binder_alloc_mmap_handler: 10349 20ffd000-21000000 already mapped failed -16
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: 1 PID: 10356 Comm: syz-executor.3 Not tainted 4.14.143+ #0
task: 000000006dec65a2 task.stack: 0000000011a288cd
RIP: 0010:kernfs_add_one+0x2c2/0x3a0 fs/kernfs/dir.c:794
RSP: 0018:ffff8881c8e5f8c8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000a75
RDX: 0000000000000001 RSI: ffffc90000732000 RDI: 0000000000000008
RBP: ffff8881c8e5f900 R08: 0000000000000001 R09: fffffbfff5b2fe71
R10: fffffbfff5b2fe70 R11: ffffffffad97f387 R12: ffff8881d68761c0
R13: ffff8881d68761c0 R14: 0000000000000000 R15: ffff8881d68761e8
FS:  00007f2e37dad700(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2e37d6adb8 CR3: 00000001c84e6003 CR4: 00000000001606a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kernfs_create_dir_ns+0xe5/0x130 fs/kernfs/dir.c:1008
 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:0x4598e9
RSP: 002b:00007f2e37dacc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004598e9
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000005
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2e37dad6d4
R13: 00000000004c4644 R14: 00000000004d89b8 R15: 00000000ffffffff
Code: 70 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 9a 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5b 70 48 8d 7b 08 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 04 3c 03 7e 6e f6 43 08 01 0f 85 09 fe ff 
RIP: kernfs_add_one+0x2c2/0x3a0 fs/kernfs/dir.c:794 RSP: ffff8881c8e5f8c8
---[ end trace 5084a5f2a621b451 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/16 07:41 android-4.14 f02af7b02c26 32d59357 .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.