R13: 00000000ffffffff R14: 00007fc673f256d4 R15: 0000000000000000 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN Dumping ftrace buffer: FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 16956 Comm: syz-executor7 Not tainted 4.14.0-rc7-next-20171103+ #38 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427 do_anonymous_page mm/memory.c:3121 [inline] handle_pte_fault mm/memory.c:3934 [inline] __handle_mm_fault+0x2d46/0x39c0 mm/memory.c:4060 handle_mm_fault+0x334/0x8d0 mm/memory.c:4097 __do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1449 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1524 page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1067 RIP: 0010:fault_in_pages_readable include/linux/pagemap.h:601 [inline] RIP: 0010:iov_iter_fault_in_readable+0x1a7/0x410 lib/iov_iter.c:421 RSP: 0018:ffff8801d393f928 EFLAGS: 00010246 RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff8241c491 RDX: 00000000000000b0 RSI: ffffc90001fde000 RDI: ffff8801d393fd28 RBP: ffff8801d393fa08 R08: 1ffff10038d7f17a R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 1ffff1003a727f28 R13: ffff8801d393f9e0 R14: 0000000000000000 R15: ffff8801d393fd20 generic_perform_write+0x200/0x600 mm/filemap.c:3128 __generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3263 generic_file_write_iter+0x399/0x7a0 mm/filemap.c:3291 call_write_iter include/linux/fs.h:1771 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x68a/0x970 fs/read_write.c:482 vfs_write+0x18f/0x510 fs/read_write.c:544 SYSC_write fs/read_write.c:589 [inline] SyS_write+0xef/0x220 fs/read_write.c:581 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x452869 RSP: 002b:00007fc673f24be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452869 RDX: 000000000000001c RSI: 0000000020011fd2 RDI: 000000000000001b RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ee0a0 R13: 00000000ffffffff R14: 00007fc673f256d4 R15: 0000000000000000 (ftrace buffer empty) Modules linked in: CPU: 0 PID: 16972 Comm: syz-executor1 Not tainted 4.14.0-rc7-next-20171103+ #38 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801c765c3c0 task.stack: ffff8801cab58000 RIP: 0010:asn1_ber_decoder+0x41e/0x1af0 lib/asn1_decoder.c:233 RSP: 0018:ffff8801cab5f8d0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffc90003c97000 RDI: ffffffff853f1920 RBP: ffff8801cab5fb88 R08: ffff8801db21f4c0 R09: 1ffff1003956becb R10: 0000000039d2eace R11: 000000001fed1043 R12: 0000000000000000 R13: 0000000000000000 R14: ffff8801cab5fb60 R15: dffffc0000000000 FS: 00007f1be9fff700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000208a8ffc CR3: 00000001c0245000 CR4: 00000000001406f0 DR0: 0000000020001010 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 00000000000b0602 Call Trace: pkcs7_parse_message+0x2b3/0x730 crypto/asymmetric_keys/pkcs7_parser.c:139 verify_pkcs7_signature+0x8d/0x290 certs/system_keyring.c:216 pkcs7_preparse+0x7b/0xc0 crypto/asymmetric_keys/pkcs7_key_type.c:63 key_create_or_update+0x533/0x1040 security/keys/key.c:855 SYSC_add_key security/keys/keyctl.c:122 [inline] SyS_add_key+0x18a/0x340 security/keys/keyctl.c:62 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x452869 RSP: 002b:00007f1be9ffebe8 EFLAGS: 00000212 ORIG_RAX: 00000000000000f8 RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452869 RDX: 0000000020000000 RSI: 00000000207c9ffb RDI: 000000002009b000 RBP: 0000000000000086 R08: fffffffffffffffe R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ee8e0 R13: 00000000ffffffff R14: 00007f1be9fff6d4 R15: 0000000000000000 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 RIP: asn1_ber_decoder+0x41e/0x1af0 lib/asn1_decoder.c:233 RSP: ffff8801cab5f8d0 ---[ end trace 3c0da35299a8dc8d ]---