RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 00007fe48db74120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000006 R14: 00007fe48cf9bf80 R15: 00007ffdbbdb54f8 BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 101729067 P4D 101729067 PUD 101b7f067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 2541 Comm: syz-executor.0 Not tainted 6.5.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:strchr+0x7/0x30 lib/string.c:329 Code: c9 74 0c 49 8d 48 01 4c 39 c2 49 89 c8 75 e5 c3 31 c0 c3 0f 93 c0 0f b6 c0 8d 44 00 ff c3 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 <0f> b6 0f 40 38 f1 74 10 84 c9 74 0d 0f b6 48 01 48 ff c0 40 38 f1 RSP: 0018:ffffc9000220bc38 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888103b6c938 RCX: 0000000000000001 RDX: ffffc9000220bcf0 RSI: 0000000000000025 RDI: 0000000000000000 RBP: ffffc9000220bc88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888103b6c938 R14: 0000000000000cc0 R15: ffffc9000220bcf0 FS: 00007fe48db746c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000101f75000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvasprintf_const+0x3b/0x140 lib/kasprintf.c:45 kobject_set_name_vargs+0x24/0x90 lib/kobject.c:272 kobject_add_varg lib/kobject.c:366 [inline] kobject_add+0x97/0x100 lib/kobject.c:424 device_add+0x186/0x460 drivers/base/core.c:3562 cdev_device_add+0x6f/0xc0 fs/char_dev.c:556 evdev_connect+0x175/0x1d0 drivers/input/evdev.c:1386 input_attach_handler drivers/input/input.c:1064 [inline] input_register_device+0x543/0x5f0 drivers/input/input.c:2396 uinput_create_device+0xcc/0x190 drivers/input/misc/uinput.c:365 uinput_ioctl_handler+0x316/0x760 drivers/input/misc/uinput.c:904 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0x6d/0xb0 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe48ce7cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe48db740c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe48cf9bf80 RCX: 00007fe48ce7cae9 RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 00007fe48db74120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000006 R14: 00007fe48cf9bf80 R15: 00007ffdbbdb54f8 Modules linked in: CR2: 0000000000000000 ---[ end trace 0000000000000000 ]--- RIP: 0010:strchr+0x7/0x30 lib/string.c:329 Code: c9 74 0c 49 8d 48 01 4c 39 c2 49 89 c8 75 e5 c3 31 c0 c3 0f 93 c0 0f b6 c0 8d 44 00 ff c3 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 <0f> b6 0f 40 38 f1 74 10 84 c9 74 0d 0f b6 48 01 48 ff c0 40 38 f1 RSP: 0018:ffffc9000220bc38 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888103b6c938 RCX: 0000000000000001 RDX: ffffc9000220bcf0 RSI: 0000000000000025 RDI: 0000000000000000 RBP: ffffc9000220bc88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888103b6c938 R14: 0000000000000cc0 R15: ffffc9000220bcf0 FS: 00007fe48db746c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000101f75000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c9 leave 1: 74 0c je 0xf 3: 49 8d 48 01 lea 0x1(%r8),%rcx 7: 4c 39 c2 cmp %r8,%rdx a: 49 89 c8 mov %rcx,%r8 d: 75 e5 jne 0xfffffff4 f: c3 ret 10: 31 c0 xor %eax,%eax 12: c3 ret 13: 0f 93 c0 setae %al 16: 0f b6 c0 movzbl %al,%eax 19: 8d 44 00 ff lea -0x1(%rax,%rax,1),%eax 1d: c3 ret 1e: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 23: f3 0f 1e fa endbr64 27: 48 89 f8 mov %rdi,%rax * 2a: 0f b6 0f movzbl (%rdi),%ecx <-- trapping instruction 2d: 40 38 f1 cmp %sil,%cl 30: 74 10 je 0x42 32: 84 c9 test %cl,%cl 34: 74 0d je 0x43 36: 0f b6 48 01 movzbl 0x1(%rax),%ecx 3a: 48 ff c0 inc %rax 3d: 40 38 f1 cmp %sil,%cl