kasan: CONFIG_KASAN_INLINE enabled input:  as /devices/virtual/input/input117 kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10793 Comm: syz-executor5 Not tainted 4.20.0-rc7+ #161 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 kobject: 'kvm' (00000000a0600175): fill_kobj_path: path = '/devices/virtual/misc/kvm' RIP: 0010:keyctl_pkey_params_parse security/keys/keyctl_pkey.c:56 [inline] RIP: 0010:keyctl_pkey_params_get+0x2e7/0x560 security/keys/keyctl_pkey.c:96 Code: fe 48 8b 44 24 38 48 c1 e8 03 42 80 3c 28 00 0f 85 f8 01 00 00 4c 8b a4 24 e0 00 00 00 4c 89 e0 4c 89 e2 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 08 84 c0 0f 85 e1 01 00 00 41 0f b6 04 24 RSP: 0018:ffff888183527b70 EFLAGS: 00010246 RAX: 14f223fd38bdfa40 RBX: ffff888183527d60 RCX: ffffc9000feaa000 RDX: 0000000000000000 RSI: ffffffff8342bcae RDI: 0000000000000001 RBP: ffff888183527ce0 R08: ffff888181b00180 R09: ffffed1038205ba0 R10: ffffed1038205ba0 R11: 0000000000000001 R12: a7911fe9c5efd200 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f73f025b700(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000930004 CR3: 00000001bce09000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: keyctl_pkey_query+0xb8/0x2b0 security/keys/keyctl_pkey.c:173 __do_sys_keyctl security/keys/keyctl.c:1753 [inline] __se_sys_keyctl security/keys/keyctl.c:1637 [inline] __x64_sys_keyctl+0x15f/0x430 security/keys/keyctl.c:1637 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457669 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f73f025ac78 EFLAGS: 00000246 ORIG_RAX: 00000000000000fa RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457669 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000018 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000930000 R11: 0000000000000246 R12: 00007f73f025b6d4 R13: 00000000004c2a87 R14: 00000000004d4b18 R15: 00000000ffffffff Modules linked in: kobject: 'event4' (0000000079e5de4b): kobject_uevent_env kobject: 'event4' (0000000079e5de4b): fill_kobj_path: path = '/devices/virtual/input/input116/event4' kobject: 'loop2' (00000000ab486e6d): kobject_uevent_env kobject: 'loop2' (00000000ab486e6d): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: '(null)' (000000000c0998d6): kobject_cleanup, parent 0000000079e5de4b kobject: '(null)' (000000000c0998d6): calling ktype release kobject: 'loop0' (00000000ccfd1c86): kobject_uevent_env kobject: 'loop0' (00000000ccfd1c86): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'event4' (0000000079e5de4b): kobject_cleanup, parent (null) kobject: 'event4' (0000000079e5de4b): calling ktype release kobject: 'loop0' (00000000ccfd1c86): kobject_uevent_env kobject: 'event4': free name kobject: 'loop0' (00000000ccfd1c86): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'input117::numlock' (00000000f17430ea): kobject_add_internal: parent: 'input117', set: 'devices' kobject: 'loop4' (0000000042751b38): kobject_uevent_env kobject: 'loop4' (0000000042751b38): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'input116' (000000003c69a5e6): kobject_uevent_env kobject: 'input116' (000000003c69a5e6): fill_kobj_path: path = '/devices/virtual/input/input116' kobject: 'input117::numlock' (00000000f17430ea): kobject_uevent_env kobject: 'input117::numlock' (00000000f17430ea): fill_kobj_path: path = '/devices/virtual/input/input117/input117::numlock' kobject: 'input116' (000000003c69a5e6): kobject_cleanup, parent (null) kobject: 'input117::numlock' (00000000f17430ea): kobject_uevent_env kobject: 'input116' (000000003c69a5e6): calling ktype release kobject: 'input116': free name kobject: 'input117::numlock' (00000000f17430ea): fill_kobj_path: path = '/devices/virtual/input/input117/input117::numlock' ---[ end trace b21c78781adb7ce9 ]--- RIP: 0010:keyctl_pkey_params_parse security/keys/keyctl_pkey.c:56 [inline] RIP: 0010:keyctl_pkey_params_get+0x2e7/0x560 security/keys/keyctl_pkey.c:96 kobject: 'event4' (0000000084132cd2): kobject_add_internal: parent: 'input117', set: 'devices' Code: fe 48 8b 44 24 38 48 c1 e8 03 42 80 3c 28 00 0f 85 f8 01 00 00 4c 8b a4 24 e0 00 00 00 4c 89 e0 4c 89 e2 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 08 84 c0 0f 85 e1 01 00 00 41 0f b6 04 24 RSP: 0018:ffff888183527b70 EFLAGS: 00010246 kobject: 'event4' (0000000084132cd2): kobject_uevent_env kobject: 'event4' (0000000084132cd2): fill_kobj_path: path = '/devices/virtual/input/input117/event4' RAX: 14f223fd38bdfa40 RBX: ffff888183527d60 RCX: ffffc9000feaa000 RDX: 0000000000000000 RSI: ffffffff8342bcae RDI: 0000000000000001 kobject: 'input117::numlock' (00000000f17430ea): kobject_uevent_env kobject: 'input117::numlock' (00000000f17430ea): fill_kobj_path: path = '/devices/virtual/input/input117/input117::numlock' RBP: ffff888183527ce0 R08: ffff888181b00180 R09: ffffed1038205ba0 kobject: 'input117::numlock' (00000000f17430ea): kobject_uevent_env R10: ffffed1038205ba0 R11: 0000000000000001 R12: a7911fe9c5efd200 kobject: 'input117::numlock' (00000000f17430ea): fill_kobj_path: path = '/devices/virtual/input/input117/input117::numlock' R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'input117::numlock' (00000000f17430ea): kobject_cleanup, parent (null) FS: 00007f73f025b700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000 kobject: 'input117::numlock' (00000000f17430ea): calling ktype release CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'input117::numlock': free name CR2: 00007fdee6844000 CR3: 00000001bce09000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 audit: type=1326 audit(1545409446.316:70): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=10760 comm="syz-executor3" exe="/root/syz-executor3" sig=9 arch=c000003e syscall=228 compat=0 ip=0x45a4ca code=0x0