Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 1 PID: 10295 Comm: syz-executor.2 Not tainted 6.9.0-syzkaller-08544-g4b377b4868ef #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:__lock_acquire+0x6a/0x1fd0 kernel/locking/lockdep.c:5005 Code: df 0f b6 04 30 84 c0 0f 85 4b 16 00 00 83 3d d8 45 39 0e 00 0f 84 1c 11 00 00 83 3d 7f 89 ad 0c 00 74 2c 4c 89 e0 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 e7 e8 d8 a2 85 00 48 be 00 00 00 00 00 fc RSP: 0018:ffffc9000c666d30 EFLAGS: 00010006 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000018 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1f571fe R12: 0000000000000018 R13: 0000000000000000 R14: ffff888064bb5a00 R15: 0000000000000000 FS: 00007f38464216c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ec29000 CR3: 00000000499be000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] __pte_offset_map_lock+0x1ba/0x300 mm/pgtable-generic.c:373 pte_offset_map_lock include/linux/mm.h:2980 [inline] zap_pte_range mm/memory.c:1584 [inline] zap_pmd_range mm/memory.c:1722 [inline] zap_pud_range mm/memory.c:1751 [inline] zap_p4d_range mm/memory.c:1772 [inline] unmap_page_range+0xa12/0x4870 mm/memory.c:1793 zap_page_range_single+0x45c/0x630 mm/memory.c:1918 unmap_mapping_range_vma mm/memory.c:3662 [inline] unmap_mapping_range_tree mm/memory.c:3679 [inline] unmap_mapping_pages mm/memory.c:3745 [inline] unmap_mapping_range+0x23c/0x290 mm/memory.c:3782 shmem_fallocate+0x412/0x11f0 mm/shmem.c:3116 vfs_fallocate+0x564/0x6c0 fs/open.c:330 madvise_remove mm/madvise.c:989 [inline] madvise_vma_behavior mm/madvise.c:1013 [inline] madvise_walk_vmas mm/madvise.c:1248 [inline] do_madvise+0x1e5c/0x46d0 mm/madvise.c:1428 __do_sys_madvise mm/madvise.c:1441 [inline] __se_sys_madvise mm/madvise.c:1439 [inline] __x64_sys_madvise+0xa6/0xc0 mm/madvise.c:1439 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f384567cee9 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:00007f38464210c8 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f38457abf80 RCX: 00007f384567cee9 RDX: 0000000000000009 RSI: 0000000000600013 RDI: 0000000020000000 RBP: 00007f38456c949e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f38457abf80 R15: 00007ffebb888cb8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__lock_acquire+0x6a/0x1fd0 kernel/locking/lockdep.c:5005 Code: df 0f b6 04 30 84 c0 0f 85 4b 16 00 00 83 3d d8 45 39 0e 00 0f 84 1c 11 00 00 83 3d 7f 89 ad 0c 00 74 2c 4c 89 e0 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 e7 e8 d8 a2 85 00 48 be 00 00 00 00 00 fc RSP: 0018:ffffc9000c666d30 EFLAGS: 00010006 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000018 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1f571fe R12: 0000000000000018 R13: 0000000000000000 R14: ffff888064bb5a00 R15: 0000000000000000 FS: 00007f38464216c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ec29000 CR3: 00000000499be000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: df 0f fisttps (%rdi) 2: b6 04 mov $0x4,%dh 4: 30 84 c0 0f 85 4b 16 xor %al,0x164b850f(%rax,%rax,8) b: 00 00 add %al,(%rax) d: 83 3d d8 45 39 0e 00 cmpl $0x0,0xe3945d8(%rip) # 0xe3945ec 14: 0f 84 1c 11 00 00 je 0x1136 1a: 83 3d 7f 89 ad 0c 00 cmpl $0x0,0xcad897f(%rip) # 0xcad89a0 21: 74 2c je 0x4f 23: 4c 89 e0 mov %r12,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 30 00 cmpb $0x0,(%rax,%rsi,1) <-- trapping instruction 2e: 74 12 je 0x42 30: 4c 89 e7 mov %r12,%rdi 33: e8 d8 a2 85 00 call 0x85a310 38: 48 rex.W 39: be 00 00 00 00 mov $0x0,%esi 3e: 00 fc add %bh,%ah