general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 18021 Comm: syz-executor.3 Not tainted 6.5.0-syzkaller-10898-gfdde61878047 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:strchr+0x1b/0xb0 lib/string.c:329 Code: 0f ae f7 48 8b 74 24 08 48 8b 14 24 eb 89 90 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 48 89 fa 55 48 c1 ea 03 53 48 83 ec 10 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 51 0f b6 07 89 RSP: 0018:ffffc900299c7a10 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90007941000 RDX: 0000000000000000 RSI: 0000000000000025 RDI: 0000000000000000 RBP: ffffc900299c7aa0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffc900299c7aa0 R13: 0000000000000cc0 R14: ffff88801b65e2f0 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88802c700000(0063) knlGS:00000000f7f5ab40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000c011c66000 CR3: 000000007686b000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvasprintf_const+0x25/0x190 lib/kasprintf.c:45 kobject_set_name_vargs+0x5a/0x130 lib/kobject.c:272 kobject_add_varg lib/kobject.c:366 [inline] kobject_add+0x12a/0x240 lib/kobject.c:424 device_add+0x290/0x1ac0 drivers/base/core.c:3560 cdev_device_add+0x12b/0x270 fs/char_dev.c:556 evdev_connect+0x3a0/0x4c0 drivers/input/evdev.c:1386 input_attach_handler.isra.0+0x17c/0x250 drivers/input/input.c:1064 input_register_device+0xb1e/0x1130 drivers/input/input.c:2396 uinput_create_device drivers/input/misc/uinput.c:365 [inline] uinput_ioctl_handler.isra.0+0x1308/0x1d70 drivers/input/misc/uinput.c:904 __do_compat_sys_ioctl+0x2bf/0x330 fs/ioctl.c:972 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f5f579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f5a5ac EFLAGS: 00000292 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000005501 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:strchr+0x1b/0xb0 lib/string.c:329 Code: 0f ae f7 48 8b 74 24 08 48 8b 14 24 eb 89 90 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 48 89 fa 55 48 c1 ea 03 53 48 83 ec 10 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 51 0f b6 07 89 RSP: 0018:ffffc900299c7a10 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90007941000 RDX: 0000000000000000 RSI: 0000000000000025 RDI: 0000000000000000 RBP: ffffc900299c7aa0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffc900299c7aa0 R13: 0000000000000cc0 R14: ffff88801b65e2f0 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88802c600000(0063) knlGS:00000000f7f5ab40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000c011c6c000 CR3: 000000007686b000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: ae scas %es:(%rdi),%al 1: f7 48 8b 74 24 08 48 testl $0x48082474,-0x75(%rax) 8: 8b 14 24 mov (%rsp),%edx b: eb 89 jmp 0xffffff96 d: 90 nop e: f3 0f 1e fa endbr64 12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 19: fc ff df 1c: 48 89 fa mov %rdi,%rdx 1f: 55 push %rbp 20: 48 c1 ea 03 shr $0x3,%rdx 24: 53 push %rbx 25: 48 83 ec 10 sub $0x10,%rsp * 29: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2d: 48 89 fa mov %rdi,%rdx 30: 83 e2 07 and $0x7,%edx 33: 38 d0 cmp %dl,%al 35: 7f 04 jg 0x3b 37: 84 c0 test %al,%al 39: 75 51 jne 0x8c 3b: 0f b6 07 movzbl (%rdi),%eax 3e: 89 .byte 0x89