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 CPU: 0 PID: 8101 Comm: syz-executor328 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:cdev_get fs/char_dev.c:359 [inline] RIP: 0010:chrdev_open+0xb8/0x770 fs/char_dev.c:409 Code: 8b ac 24 88 03 00 00 48 85 ed 0f 84 7f 02 00 00 e8 0d d1 be ff 48 8d 7d 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 9e 05 00 00 4c 8b 7d 40 4d 85 ff 74 22 e8 e0 d0 RSP: 0018:ffff8880994e79e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 1ffff1101329cf3f RCX: ffffffff814bdebb RDX: 0000000000000008 RSI: ffffffff81a3b463 RDI: 0000000000000042 RBP: 0000000000000002 R08: 0000000000000001 R09: fffffbfff1407a30 R10: ffffffff8a03d183 R11: 0000000000000000 R12: ffff88808cbad6c0 R13: ffff8880af2782c0 R14: ffff88808cbada48 R15: ffff8880af2782e8 FS: 0000555556ea73c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd673039c0 CR3: 00000000a5a56000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_dentry_open+0x4aa/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x793/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f954eaab929 Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd78ce7aa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffd78ce7ab8 RCX: 00007f954eaab929 RDX: 0000000000000034 RSI: 0000000000080082 RDI: 0000000020000040 RBP: 00007ffd78ce7ab0 R08: 00007f954ea69bf0 R09: 00007f954ea69bf0 R10: 00007f954ea69bf0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 120c0d5105b0a03b ]--- RIP: 0010:cdev_get fs/char_dev.c:359 [inline] RIP: 0010:chrdev_open+0xb8/0x770 fs/char_dev.c:409 Code: 8b ac 24 88 03 00 00 48 85 ed 0f 84 7f 02 00 00 e8 0d d1 be ff 48 8d 7d 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 9e 05 00 00 4c 8b 7d 40 4d 85 ff 74 22 e8 e0 d0 RSP: 0018:ffff8880994e79e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 1ffff1101329cf3f RCX: ffffffff814bdebb RDX: 0000000000000008 RSI: ffffffff81a3b463 RDI: 0000000000000042 RBP: 0000000000000002 R08: 0000000000000001 R09: fffffbfff1407a30 R10: ffffffff8a03d183 R11: 0000000000000000 R12: ffff88808cbad6c0 R13: ffff8880af2782c0 R14: ffff88808cbada48 R15: ffff8880af2782e8 FS: 0000555556ea73c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd673039c0 CR3: 00000000a5a56000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8b ac 24 88 03 00 00 mov 0x388(%rsp),%ebp 7: 48 85 ed test %rbp,%rbp a: 0f 84 7f 02 00 00 je 0x28f 10: e8 0d d1 be ff callq 0xffbed122 15: 48 8d 7d 40 lea 0x40(%rbp),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 9e 05 00 00 jne 0x5d2 34: 4c 8b 7d 40 mov 0x40(%rbp),%r15 38: 4d 85 ff test %r15,%r15 3b: 74 22 je 0x5f 3d: e8 .byte 0xe8 3e: e0 d0 loopne 0x10