general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 5238 Comm: syz-executor.2 Not tainted 6.6.0-rc3-next-20230929-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:PageTail include/linux/page-flags.h:286 [inline] RIP: 0010:folio_flags+0x25/0x1f0 include/linux/page-flags.h:313 Code: 00 eb ba 66 90 41 55 41 54 55 48 89 fd 53 89 f3 e8 40 57 d2 ff 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 8a 01 00 00 4c 8b 65 08 31 ff 41 83 e4 01 4c 89 RSP: 0018:ffffc90004a1f2b8 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90009fc1000 RDX: 0000000000000000 RSI: ffffffff81b5fe80 RDI: 0000000000000006 RBP: fffffffffffffffe R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8a60008b R12: fffffffffffffffe R13: 0000000000000032 R14: 0000000000000009 R15: 00000000001fffff FS: 00007f57b64616c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f57b579d988 CR3: 000000001c87d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_test_locked include/linux/page-flags.h:467 [inline] folio_unlock+0x18/0xd0 mm/filemap.c:1522 hugetlbfs_read_iter+0x3f5/0x860 fs/hugetlbfs/inode.c:364 __kernel_read+0x301/0x8a0 fs/read_write.c:428 integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:195 ima_calc_file_hash_tfm+0x2c5/0x3d0 security/integrity/ima/ima_crypto.c:485 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x1c6/0x4a0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x5e2/0x6f0 security/integrity/ima/ima_api.c:289 process_measurement+0xc87/0x1cc0 security/integrity/ima/ima_main.c:345 ima_file_mmap+0x1af/0x1d0 security/integrity/ima/ima_main.c:435 security_mmap_file+0x187/0x1d0 security/security.c:2704 vm_mmap_pgoff+0xdc/0x3b0 mm/util.c:542 ksys_mmap_pgoff+0x1c4/0x5b0 mm/mmap.c:1419 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:86 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f57b567cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f57b64610c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f57b579bf80 RCX: 00007f57b567cae9 RDX: 000000000000000c RSI: 0000000000002000 RDI: 0000000020ffc000 RBP: 00007f57b56c847a R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000052030 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f57b579bf80 R15: 00007ffd115809b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:PageTail include/linux/page-flags.h:286 [inline] RIP: 0010:folio_flags+0x25/0x1f0 include/linux/page-flags.h:313 Code: 00 eb ba 66 90 41 55 41 54 55 48 89 fd 53 89 f3 e8 40 57 d2 ff 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 8a 01 00 00 4c 8b 65 08 31 ff 41 83 e4 01 4c 89 RSP: 0018:ffffc90004a1f2b8 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90009fc1000 RDX: 0000000000000000 RSI: ffffffff81b5fe80 RDI: 0000000000000006 RBP: fffffffffffffffe R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8a60008b R12: fffffffffffffffe R13: 0000000000000032 R14: 0000000000000009 R15: 00000000001fffff FS: 00007f57b64616c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200005c0 CR3: 000000001c87d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 eb add %ch,%bl 2: ba 66 90 41 55 mov $0x55419066,%edx 7: 41 54 push %r12 9: 55 push %rbp a: 48 89 fd mov %rdi,%rbp d: 53 push %rbx e: 89 f3 mov %esi,%ebx 10: e8 40 57 d2 ff call 0xffd25755 15: 48 8d 7d 08 lea 0x8(%rbp),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 8a 01 00 00 jne 0x1be 34: 4c 8b 65 08 mov 0x8(%rbp),%r12 38: 31 ff xor %edi,%edi 3a: 41 83 e4 01 and $0x1,%r12d 3e: 4c rex.WR 3f: 89 .byte 0x89