executing program syzkaller login: [ 17.193063] kasan: CONFIG_KASAN_INLINE enabled [ 17.193704] kasan: GPF could be caused by NULL-ptr deref or user memory access [ 17.194418] general protection fault: 0000 [#1] SMP KASAN [ 17.194917] Dumping ftrace buffer: [ 17.195248] (ftrace buffer empty) [ 17.195577] Modules linked in: [ 17.195910] CPU: 3 PID: 3001 Comm: syzkaller949156 Not tainted 4.14.0-rc7-next-20171103+ #10 [ 17.197226] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 17.198259] task: ffff88003b4f8500 task.stack: ffff88003c7c0000 [ 17.199096] RIP: 0010:asn1_ber_decoder+0x41e/0x1af0 [ 17.199739] RSP: 0018:ffff88003c7c78d0 EFLAGS: 00010246 [ 17.200514] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 17.201437] RDX: 0000000000000000 RSI: ffff880068d39c00 RDI: ffffffff853f1920 [ 17.202358] RBP: ffff88003c7c7b88 R08: 0000000000000060 R09: 0000000000000000 [ 17.203277] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 17.204207] R13: 0000000000000000 R14: ffff88003c7c7b60 R15: dffffc0000000000 [ 17.205127] FS: 00000000024c0880(0000) GS:ffff88006df00000(0000) knlGS:0000000000000000 [ 17.206176] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 17.206912] CR2: 00000000200083d2 CR3: 000000006cd31000 CR4: 00000000000006e0 [ 17.207841] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 17.208763] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 17.209621] Call Trace: [ 17.209947] ? pkcs7_parse_message+0x18a/0x730 [ 17.210530] ? verify_pkcs7_signature+0x8d/0x290 [ 17.211292] ? pkcs7_preparse+0x7b/0xc0 [ 17.211653] ? depot_save_stack+0x490/0x490 [ 17.212132] ? __lock_is_held+0xbc/0x140 [ 17.212499] ? __lock_is_held+0xbc/0x140 [ 17.212863] ? pkcs7_parse_message+0x18a/0x730 [ 17.213283] ? rcu_read_lock_sched_held+0x108/0x120 [ 17.213729] ? kmem_cache_alloc_trace+0x459/0x750 [ 17.214192] ? lock_release+0xd70/0xd70 [ 17.214548] pkcs7_parse_message+0x2b3/0x730 [ 17.214951] ? key_task_permission+0x330/0x330 [ 17.215359] ? pkcs7_supply_detached_data+0x90/0x90 [ 17.215798] verify_pkcs7_signature+0x8d/0x290 [ 17.216408] ? restrict_link_by_builtin_and_secondary_trusted+0x80/0x80 [ 17.217236] ? __down_interruptible+0x6b0/0x6b0 [ 17.217804] ? trace_hardirqs_on+0xd/0x10 [ 17.218312] ? current_kernel_time64+0x1d4/0x2f0 [ 17.218923] ? pkcs7_supply_detached_data+0x90/0x90 [ 17.219540] pkcs7_preparse+0x7b/0xc0 [ 17.220031] ? pkcs7_preparse+0xc0/0xc0 [ 17.220389] key_create_or_update+0x533/0x1040 [ 17.220801] ? key_type_lookup+0xd0/0xd0 [ 17.221175] ? join_session_keyring+0x300/0x300 [ 17.221579] ? mem_cgroup_commit_charge+0x111/0x750 [ 17.222040] ? memdup_user+0x5e/0x90 [ 17.222377] SyS_add_key+0x18a/0x340 [ 17.222701] ? key_get_type_from_user.constprop.10+0xd0/0xd0 [ 17.223219] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.223655] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 17.224157] RIP: 0033:0x434f39 [ 17.224434] RSP: 002b:00007ffddfaaa0c8 EFLAGS: 00000286 ORIG_RAX: 00000000000000f8 [ 17.225183] RAX: ffffffffffffffda RBX: 00000000004002b0 RCX: 0000000000434f39 [ 17.225804] RDX: 0000000020000000 RSI: 00000000200083d2 RDI: 0000000020009000 [ 17.226471] RBP: 0000000000000086 R08: ffffffffffffffff R09: 0000000000000000 [ 17.227138] R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000 [ 17.227785] R13: 00000000004018b0 R14: 0000000000401940 R15: 0000000000000000 [ 17.228747] 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 [ 17.231386] RIP: asn1_ber_decoder+0x41e/0x1af0 RSP: ffff88003c7c78d0 [ 17.232175] ---[ end trace fb308f7f8a1c2c73 ]--- [ 17.232676] Kernel panic - not syncing: Fatal exception [ 17.235921] Dumping ftrace buffer: [ 17.236293] (ftrace buffer empty) [ 17.236617] Kernel Offset: disabled [ 17.236935] Rebooting in 86400 seconds..