executing program syzkaller login: [ 21.483660] kasan: CONFIG_KASAN_INLINE enabled [ 21.484282] kasan: GPF could be caused by NULL-ptr deref or user memory access [ 21.485161] general protection fault: 0000 [#1] SMP KASAN [ 21.485774] Dumping ftrace buffer: [ 21.486175] (ftrace buffer empty) [ 21.486623] Modules linked in: [ 21.487010] CPU: 3 PID: 2990 Comm: syzkaller114775 Not tainted 4.14.0-rc7-next-20171103+ #10 [ 21.487975] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 21.488894] task: ffff88003b7d6480 task.stack: ffff88003de00000 [ 21.489677] RIP: 0010:asn1_ber_decoder+0x41e/0x1af0 [ 21.490243] RSP: 0018:ffff88003de078d0 EFLAGS: 00010246 [ 21.490847] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 21.491840] RDX: 0000000000000000 RSI: ffff8800693a0a80 RDI: ffffffff853f1920 [ 21.492654] RBP: ffff88003de07b88 R08: 0000000000000060 R09: 0000000000000000 [ 21.493475] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 21.494310] R13: 0000000000000000 R14: ffff88003de07b60 R15: dffffc0000000000 [ 21.495157] FS: 0000000000ee7880(0000) GS:ffff88006df00000(0000) knlGS:0000000000000000 [ 21.496071] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 21.496722] CR2: 00000000207c9ffb CR3: 000000006bb9e000 CR4: 00000000000006e0 [ 21.497996] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 21.498832] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 21.499697] Call Trace: [ 21.499992] ? pkcs7_parse_message+0x18a/0x730 [ 21.500505] ? verify_pkcs7_signature+0x8d/0x290 [ 21.501046] ? pkcs7_preparse+0x7b/0xc0 [ 21.504545] ? depot_save_stack+0x490/0x490 [ 21.505046] ? __lock_is_held+0xbc/0x140 [ 21.505527] ? __lock_is_held+0xbc/0x140 [ 21.506008] ? pkcs7_parse_message+0x18a/0x730 [ 21.506525] ? rcu_read_lock_sched_held+0x108/0x120 [ 21.507083] ? kmem_cache_alloc_trace+0x459/0x750 [ 21.507643] ? lock_release+0xd70/0xd70 [ 21.508099] pkcs7_parse_message+0x2b3/0x730 [ 21.508587] ? key_task_permission+0x330/0x330 [ 21.509097] ? pkcs7_supply_detached_data+0x90/0x90 [ 21.509698] verify_pkcs7_signature+0x8d/0x290 [ 21.510223] ? restrict_link_by_builtin_and_secondary_trusted+0x80/0x80 [ 21.510971] ? __down_interruptible+0x6b0/0x6b0 [ 21.511492] ? trace_hardirqs_on+0xd/0x10 [ 21.511952] ? current_kernel_time64+0x1d4/0x2f0 [ 21.512508] ? pkcs7_supply_detached_data+0x90/0x90 [ 21.513079] pkcs7_preparse+0x7b/0xc0 [ 21.513523] ? pkcs7_preparse+0xc0/0xc0 [ 21.513968] key_create_or_update+0x533/0x1040 [ 21.514517] ? key_type_lookup+0xd0/0xd0 [ 21.514973] ? join_session_keyring+0x300/0x300 [ 21.515514] ? mem_cgroup_commit_charge+0x111/0x750 [ 21.516125] ? memdup_user+0x5e/0x90 [ 21.516552] SyS_add_key+0x18a/0x340 [ 21.517338] ? key_get_type_from_user.constprop.10+0xd0/0xd0 [ 21.518074] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.518733] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 21.519329] RIP: 0033:0x434e89 [ 21.519721] RSP: 002b:00007fff706a27b8 EFLAGS: 00000217 ORIG_RAX: 00000000000000f8 [ 21.520680] RAX: ffffffffffffffda RBX: 00000000004002b0 RCX: 0000000000434e89 [ 21.521598] RDX: 0000000020000000 RSI: 00000000207c9ffb RDI: 000000002009b000 [ 21.522494] RBP: 0000000000000086 R08: fffffffffffffffe R09: 0000000000000000 [ 21.523382] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000000000 [ 21.524282] R13: 0000000000401800 R14: 0000000000401890 R15: 0000000000000000 [ 21.525190] Code: 19 ff 48 8d 43 01 49 89 86 80 fe ff ff 48 89 85 a8 fd ff ff 48 8b 85 c0 fd ff ff 48 01 d8 48 89 c2 48 89 c1 48 c1 ea 03 83 e1 07 <42> 0f b6 14 3a 38 ca 7f 08 84 d2 0f 85 cd 0f 00 00 0f b6 00 88 [ 21.527646] RIP: asn1_ber_decoder+0x41e/0x1af0 RSP: ffff88003de078d0 [ 21.528494] ---[ end trace 9eb7eb42688f308c ]--- [ 21.529051] Kernel panic - not syncing: Fatal exception [ 21.530315] Dumping ftrace buffer: [ 21.530757] (ftrace buffer empty) [ 21.531215] Kernel Offset: disabled [ 21.531664] Rebooting in 86400 seconds..