------------[ cut here ]------------ virt_to_phys used for non-linear address: 0000000074028e8f (0xffff80002b456000) WARNING: CPU: 1 PID: 6908 at arch/arm64/mm/physaddr.c:15 __virt_to_phys+0x84/0x9c arch/arm64/mm/physaddr.c:17 Modules linked in: CPU: 1 PID: 6908 Comm: syz-executor.4 Not tainted 6.1.88-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60401005 (nZCv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : __virt_to_phys+0x84/0x9c arch/arm64/mm/physaddr.c:17 lr : __virt_to_phys+0x80/0x9c arch/arm64/mm/physaddr.c:12 sp : ffff80001eae7800 x29: ffff80001eae7800 x28: 1ffff00002b09aa9 x27: dfff800000000000 x26: 0000000000000002 x25: 1fffe000186d24cf x24: dfff800000000000 x23: dfff800000000000 x22: ffff0000c9070d00 x21: 0000000000040000 x20: 000080002b456000 x19: ffff80002b456000 x18: 1fffe0003686f176 x17: ffff80001584d000 x16: ffff800008305ec4 x15: ffff0001b4378bbc x14: 1ffff00002b0a0b0 x13: dfff800000000000 x12: 0000000000000001 x11: 1fffe0001bb8ccd0 x10: 0000000000000000 x9 : 5600c9c292228500 x8 : ffff800015264000 x7 : ffff80000827c8d4 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000826a620 x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000001 Call trace: __virt_to_phys+0x84/0x9c arch/arm64/mm/physaddr.c:17 virt_to_folio include/linux/mm.h:898 [inline] kfree+0x90/0x1b8 mm/slab_common.c:999 put_ntfs+0x80/0x240 fs/ntfs3/super.c:444 ntfs_put_super+0xbc/0x10c fs/ntfs3/super.c:486 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1459 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 294336 hardirqs last enabled at (294335): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (294335): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5004 hardirqs last disabled at (294336): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (294318): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (294318): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (294307): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6908 at mm/slab_common.c:923 free_large_kmalloc+0x34/0x15c mm/slab_common.c:924 Modules linked in: CPU: 0 PID: 6908 Comm: syz-executor.4 Tainted: G W 6.1.88-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60401005 (nZCv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : free_large_kmalloc+0x34/0x15c mm/slab_common.c:924 lr : kfree+0x10c/0x1b8 mm/slab_common.c:1001 sp : ffff80001eae77f0 x29: ffff80001eae77f0 x28: 1ffff00002b09aa9 x27: dfff800000000000 x26: 0000000000000002 x25: 1fffe000186d24cf x24: dfff800000000000 x23: dfff800000000000 x22: ffff0000c9070d00 x21: ffff800008812394 x20: ffff80002b456000 x19: fffffc00061e9580 x18: 1fffe0003686f176 x17: ffff80001584d000 x16: ffff800008305ec4 x15: ffff0001b4378bbc x14: 1ffff00002b0a0b0 x13: dfff800000000000 x12: 0000000000000001 x11: 1fffe0001bb8ccd0 x10: 0000000000000000 x9 : 00000000061e9580 x8 : ffff800018178000 x7 : ffff80000827c8d4 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000826a620 x2 : 0000000000000001 x1 : ffff80002b456000 x0 : fffffc00061e9580 Call trace: free_large_kmalloc+0x34/0x15c mm/slab_common.c:924 kfree+0x10c/0x1b8 mm/slab_common.c:1001 put_ntfs+0x80/0x240 fs/ntfs3/super.c:444 ntfs_put_super+0xbc/0x10c fs/ntfs3/super.c:486 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1459 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 294868 hardirqs last enabled at (294867): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline] hardirqs last enabled at (294867): [] exit_to_kernel_mode+0xe8/0x118 arch/arm64/kernel/entry-common.c:94 hardirqs last disabled at (294868): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (294862): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (294862): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (294339): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- object pointer: 0x0000000074028e8f ------------[ cut here ]------------ virt_to_phys used for non-linear address: 0000000074028e8f (0xffff80002b456000) WARNING: CPU: 1 PID: 6908 at arch/arm64/mm/physaddr.c:15 __virt_to_phys+0x84/0x9c arch/arm64/mm/physaddr.c:17 Modules linked in: CPU: 1 PID: 6908 Comm: syz-executor.4 Tainted: G W 6.1.88-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60401005 (nZCv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : __virt_to_phys+0x84/0x9c arch/arm64/mm/physaddr.c:17 lr : __virt_to_phys+0x80/0x9c arch/arm64/mm/physaddr.c:12 sp : ffff80001eae7790 x29: ffff80001eae7790 x28: 1ffff00002b09aa9 x27: dfff800000000000 x26: 0000000000000002 x25: 1fffe000186d24cf x24: dfff800000000000 x23: 0000000000040000 x22: ffff800015264000 x21: fffffc0000000000 x20: 000080002b456000 x19: ffff80002b456000 x18: 1fffe0003686f176 x17: ffff80001584d000 x16: ffff800008305ec4 x15: ffff0001b4378bbc x14: 1ffff00002b0a0b0 x13: dfff800000000000 x12: 0000000000000001 x11: 1fffe0001abc16d0 x10: 0000000000000000 x9 : 5600c9c292228500 x8 : ffff800015264000 x7 : ffff80000827c8d4 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000826a620 x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000001 Call trace: __virt_to_phys+0x84/0x9c arch/arm64/mm/physaddr.c:17 virt_to_head_page include/linux/mm.h:891 [inline] ____kasan_kfree_large mm/kasan/common.c:252 [inline] __kasan_kfree_large+0x34/0xc0 mm/kasan/common.c:272 kasan_kfree_large include/linux/kasan.h:185 [inline] free_large_kmalloc+0x70/0x15c mm/slab_common.c:927 kfree+0x10c/0x1b8 mm/slab_common.c:1001 put_ntfs+0x80/0x240 fs/ntfs3/super.c:444 ntfs_put_super+0xbc/0x10c fs/ntfs3/super.c:486 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1459 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 295272 hardirqs last enabled at (295271): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (295271): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5004 hardirqs last disabled at (295272): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (295264): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (295264): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (295197): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ================================================================== BUG: KASAN: invalid-free in kfree+0x10c/0x1b8 mm/slab_common.c:1001 Free of addr ffff80002b456000 by task syz-executor.4/6908 CPU: 1 PID: 6908 Comm: syz-executor.4 Tainted: G W 6.1.88-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:395 kasan_report_invalid_free+0xc4/0x114 mm/kasan/report.c:460 __kasan_kfree_large+0xa4/0xc0 mm/kasan/common.c:272 kasan_kfree_large include/linux/kasan.h:185 [inline] free_large_kmalloc+0x70/0x15c mm/slab_common.c:927 kfree+0x10c/0x1b8 mm/slab_common.c:1001 put_ntfs+0x80/0x240 fs/ntfs3/super.c:444 ntfs_put_super+0xbc/0x10c fs/ntfs3/super.c:486 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1459 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the virtual mapping at [ffff80002b456000, ffff80002bc57000) created by: kvmalloc include/linux/slab.h:709 [inline] ntfs_fill_super+0x2870/0x3458 fs/ntfs3/super.c:1144 The buggy address belongs to the physical page: page:00000000f66cc3ea refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12d350 flags: 0x5ffe00000000000(node=0|zone=2|lastcpupid=0xfff) raw: 05ffe00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff80002b455f00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffff80002b455f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffff80002b456000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff80002b456080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff80002b456100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== page:0000000023e145b6 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1c7a56 flags: 0x5ffe00000000000(node=0|zone=2|lastcpupid=0xfff) raw: 05ffe00000000000 fffffc00061e9588 fffffc00061e9588 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0) ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:765! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6908 Comm: syz-executor.4 Tainted: G B W 6.1.88-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 80401005 (Nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : put_page_testzero include/linux/mm.h:765 [inline] pc : __free_pages+0x15c/0x1cc mm/page_alloc.c:5635 lr : put_page_testzero include/linux/mm.h:765 [inline] lr : __free_pages+0x15c/0x1cc mm/page_alloc.c:5635 sp : ffff80001eae77b0 x29: ffff80001eae77b0 x28: 1ffff00002b09aa9 x27: dfff800000000000 x26: 0000000000000002 x25: 1fffe000186d24cf x24: dfff800000000000 x23: dfff800000000000 x22: 05ffe00000000000 x21: fffffc00061e95b4 x20: 0000000000000000 x19: fffffc00061e9580 x18: 1fffe0003686af76 x17: ffff80001584d000 x16: ffff8000121618dc x15: ffff0001b4357bbc x14: ffff0001b4357bb8 x13: 1fffe0003686af76 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff8000088364e4 x8 : ffff0000c9a7b780 x7 : 1fffe0003686af77 x6 : ffff80000827c8d4 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000aa9242c x2 : ffff0001b4357cd0 x1 : 0000000100000000 x0 : 000000000000003e Call trace: put_page_testzero include/linux/mm.h:765 [inline] __free_pages+0x15c/0x1cc mm/page_alloc.c:5635 free_large_kmalloc+0xd0/0x15c mm/slab_common.c:932 kfree+0x10c/0x1b8 mm/slab_common.c:1001 put_ntfs+0x80/0x240 fs/ntfs3/super.c:444 ntfs_put_super+0xbc/0x10c fs/ntfs3/super.c:486 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1459 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: 9004d481 913a0021 aa1303e0 97fdce19 (d4210000) ---[ end trace 0000000000000000 ]---