R13: 0000000000000779 R14: 000000000052569f R15: 00007f5dcf4866d4 general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 1 PID: 20122 Comm: syz-executor.1 Not tainted 5.7.0-rc7-next-20200529-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ima_free_template_entry+0x4a/0x170 security/integrity/ima/ima_api.c:27 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 25 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5d 10 48 8d 7b 20 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e d1 00 00 00 8b 5b 20 31 ff 89 RSP: 0018:ffffc900175df598 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900041b1000 RDX: 0000000000000004 RSI: ffffffff836d8716 RDI: 0000000000000020 RBP: ffff88808c136280 R08: 0000000000000000 R09: ffffed1015ce719c R10: ffff8880ae738cdb R11: ffffed1015ce719b R12: ffffc900175df670 R13: ffffffff8a06d650 R14: ffff88808c136290 R15: 00000000fffffff4 FS: 00007f5dcf486700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000078c000 CR3: 0000000092eb2000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ima_alloc_init_template+0x3de/0x570 security/integrity/ima/ima_api.c:80 ima_add_violation+0x109/0x1e0 security/integrity/ima/ima_api.c:148 ima_rdwr_violation_check security/integrity/ima/ima_main.c:140 [inline] process_measurement+0x1144/0x1750 security/integrity/ima/ima_main.c:237 ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:491 do_open fs/namei.c:3236 [inline] path_openat+0x17a4/0x27d0 fs/namei.c:3351 do_filp_open+0x192/0x260 fs/namei.c:3378 do_sys_openat2+0x585/0x7a0 fs/open.c:1173 do_sys_open+0xc3/0x140 fs/open.c:1189 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45ca69 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f5dcf485c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00000000004f6cc0 RCX: 000000000045ca69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 0000000000000779 R14: 000000000052569f R15: 00007f5dcf4866d4 Modules linked in: ---[ end trace e2d3ac69eebaa951 ]--- RIP: 0010:ima_free_template_entry+0x4a/0x170 security/integrity/ima/ima_api.c:27 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 25 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5d 10 48 8d 7b 20 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e d1 00 00 00 8b 5b 20 31 ff 89 RSP: 0018:ffffc900175df598 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900041b1000 RDX: 0000000000000004 RSI: ffffffff836d8716 RDI: 0000000000000020 RBP: ffff88808c136280 R08: 0000000000000000 R09: ffffed1015ce719c R10: ffff8880ae738cdb R11: ffffed1015ce719b R12: ffffc900175df670 R13: ffffffff8a06d650 R14: ffff88808c136290 R15: 00000000fffffff4 FS: 00007f5dcf486700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdf64ffd000 CR3: 0000000092eb2000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400