------------[ cut here ]------------ WARNING: CPU: 1 PID: 15460 at include/linux/rwsem.h:195 rwsem_assert_held include/linux/rwsem.h:195 [inline] WARNING: CPU: 1 PID: 15460 at include/linux/rwsem.h:195 mmap_assert_locked include/linux/mmap_lock.h:65 [inline] WARNING: CPU: 1 PID: 15460 at include/linux/rwsem.h:195 follow_pte+0x414/0x4c0 mm/memory.c:6150 Modules linked in: CPU: 1 UID: 0 PID: 15460 Comm: syz.2.1964 Not tainted 6.11.0-syzkaller-02574-ga430d95c5efa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:rwsem_assert_held include/linux/rwsem.h:195 [inline] RIP: 0010:mmap_assert_locked include/linux/mmap_lock.h:65 [inline] RIP: 0010:follow_pte+0x414/0x4c0 mm/memory.c:6150 Code: bf 98 01 00 00 be ff ff ff ff e8 37 02 46 09 31 ff 41 89 c4 89 c6 e8 9b d2 b9 ff 45 85 e4 0f 85 80 fc ff ff e8 4d d0 b9 ff 90 <0f> 0b 90 e9 72 fc ff ff e8 3f d0 b9 ff 90 0f 0b 48 c7 c7 98 cc 1d RSP: 0018:ffffc9000397f4d8 EFLAGS: 00010287 RAX: 0000000000016ae1 RBX: 00007f7901c67000 RCX: ffffc90011e53000 RDX: 0000000000040000 RSI: ffffffff81d20893 RDI: 0000000000000005 RBP: ffff888033d9e9b0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 00000000000001bd R12: 0000000000000000 R13: ffffc9000397f538 R14: ffffc9000397f558 R15: ffff88807acf7200 FS: 00007f92c58a96c0(0000) GS:ffff8880b8900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000428f0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: follow_phys arch/x86/mm/pat/memtype.c:957 [inline] get_pat_info+0xf2/0x510 arch/x86/mm/pat/memtype.c:991 untrack_pfn+0xf7/0x4d0 arch/x86/mm/pat/memtype.c:1104 unmap_single_vma+0x1bd/0x2b0 mm/memory.c:1831 zap_page_range_single+0x326/0x560 mm/memory.c:1932 unmap_mapping_range_vma mm/memory.c:3751 [inline] unmap_mapping_range_tree mm/memory.c:3768 [inline] unmap_mapping_pages mm/memory.c:3834 [inline] unmap_mapping_range+0x1ee/0x280 mm/memory.c:3871 truncate_pagecache+0x53/0x90 mm/truncate.c:726 simple_setattr+0xf2/0x120 fs/libfs.c:899 notify_change+0xf41/0x1230 fs/attr.c:505 do_truncate+0x15c/0x220 fs/open.c:65 handle_truncate fs/namei.c:3395 [inline] do_open fs/namei.c:3778 [inline] path_openat+0x2745/0x2d60 fs/namei.c:3933 do_filp_open+0x1dc/0x430 fs/namei.c:3960 do_sys_openat2+0x17a/0x1e0 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f92c4b7def9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f92c58a9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f92c4d36058 RCX: 00007f92c4b7def9 RDX: 0000000000003f00 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007f92c4bf0b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f92c4d36058 R15: 00007ffe7046c7c8