el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 read_mapping_page failed! jfs_mount_rw: diMount failed! ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5970 at mm/slab_common.c:934 free_large_kmalloc+0x34/0x12c mm/slab_common.c:935 Modules linked in: CPU: 1 PID: 5970 Comm: syz-executor862 Not tainted 6.4.0-rc5-syzkaller-g177239177378 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : free_large_kmalloc+0x34/0x12c mm/slab_common.c:935 lr : kfree+0xf8/0x19c mm/slab_common.c:1009 sp : ffff800096c67840 x29: ffff800096c67840 x28: ffff0000df3ba930 x27: ffff0000df3b9ff0 x26: ffff0000ccb31a28 x25: ffff0000ccb31a20 x24: 0000000000000000 x23: ffff0000df3b8d70 x22: dfff800000000000 x21: ffff80008082df98 x20: ffff0000ce0c8000 x19: fffffc0003383200 x18: ffff800096c67360 x17: ffff80008debd000 x16: ffff80008a43bfbc x15: ffff8000801ca42c x14: 1ffff00011bd80ac x13: dfff800000000000 x12: 000000000000000f x11: 0000000000000000 x10: 0000000000000000 x9 : 05ffc00000000000 x8 : ffff800090b04000 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000030 x2 : 0000000000000008 x1 : ffff0000ce0c8000 x0 : fffffc0003383200 Call trace: free_large_kmalloc+0x34/0x12c mm/slab_common.c:935 kfree+0xf8/0x19c mm/slab_common.c:1009 diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195 jfs_umount+0x15c/0x360 fs/jfs/jfs_umount.c:63 jfs_put_super+0x90/0x188 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x328 fs/super.c:500 kill_block_super+0x70/0xdc fs/super.c:1407 deactivate_locked_super+0xac/0x124 fs/super.c:331 deactivate_super+0xe0/0x100 fs/super.c:362 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1177 __cleanup_mnt+0x20/0x30 fs/namespace.c:1184 task_work_run+0x230/0x2e0 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x63c/0x1f58 kernel/exit.c:874 do_group_exit+0x194/0x22c kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __wake_up_parent+0x0/0x60 kernel/exit.c:1033 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 92610 hardirqs last enabled at (92609): [] __call_rcu_common kernel/rcu/tree.c:2663 [inline] hardirqs last enabled at (92609): [] call_rcu+0x63c/0xaf4 kernel/rcu/tree.c:2741 hardirqs last disabled at (92610): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (91690): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (91690): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:600 softirqs last disabled at (91681): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- object pointer: 0x00000000a77228db ================================================================== BUG: KASAN: double-free in kfree+0xf8/0x19c mm/slab_common.c:1009 Free of addr ffff0000ce0c8000 by task syz-executor862/5970 CPU: 1 PID: 5970 Comm: syz-executor862 Tainted: G W 6.4.0-rc5-syzkaller-g177239177378 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x174/0x514 mm/kasan/report.c:462 kasan_report_invalid_free+0xc4/0x114 mm/kasan/report.c:537 __kasan_kfree_large+0xa4/0xc0 mm/kasan/common.c:272 kasan_kfree_large include/linux/kasan.h:170 [inline] free_large_kmalloc+0x64/0x12c mm/slab_common.c:938 kfree+0xf8/0x19c mm/slab_common.c:1009 diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195 jfs_umount+0x15c/0x360 fs/jfs/jfs_umount.c:63 jfs_put_super+0x90/0x188 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x328 fs/super.c:500 kill_block_super+0x70/0xdc fs/super.c:1407 deactivate_locked_super+0xac/0x124 fs/super.c:331 deactivate_super+0xe0/0x100 fs/super.c:362 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1177 __cleanup_mnt+0x20/0x30 fs/namespace.c:1184 task_work_run+0x230/0x2e0 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x63c/0x1f58 kernel/exit.c:874 do_group_exit+0x194/0x22c kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __wake_up_parent+0x0/0x60 kernel/exit.c:1033 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the physical page: page:0000000070fae8bd refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e0c8 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000000 fffffc0003375608 ffff0001b4260020 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ce0c7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ce0c7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000ce0c8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000ce0c8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000ce0c8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== page:0000000070fae8bd refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e0c8 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000000 fffffc0003375608 ffff0001b4260020 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:996! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5970 Comm: syz-executor862 Tainted: G B W 6.4.0-rc5-syzkaller-g177239177378 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : put_page_testzero include/linux/mm.h:996 [inline] pc : __free_pages+0x15c/0x1cc mm/page_alloc.c:4856 lr : put_page_testzero include/linux/mm.h:996 [inline] lr : __free_pages+0x15c/0x1cc mm/page_alloc.c:4856 sp : ffff800096c67800 x29: ffff800096c67800 x28: ffff0000df3ba930 x27: ffff0000df3b9ff0 x26: ffff0000ccb31a28 x25: ffff0000ccb31a20 x24: 0000000000000000 x23: dfff800000000000 x22: 05ffc00000000000 x21: fffffc0003383234 x20: 0000000000000000 x19: fffffc0003383200 x18: ffff800096c67360 x17: 0000000000000000 x16: ffff80008a43bfbc x15: 0000000000000001 x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c28d8000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800096c67078 x4 : ffff80008df9ee80 x3 : ffff8000805974f4 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000003e Call trace: put_page_testzero include/linux/mm.h:996 [inline] __free_pages+0x15c/0x1cc mm/page_alloc.c:4856 free_large_kmalloc+0xc8/0x12c mm/slab_common.c:943 kfree+0xf8/0x19c mm/slab_common.c:1009 diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195 jfs_umount+0x15c/0x360 fs/jfs/jfs_umount.c:63 jfs_put_super+0x90/0x188 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x328 fs/super.c:500 kill_block_super+0x70/0xdc fs/super.c:1407 deactivate_locked_super+0xac/0x124 fs/super.c:331 deactivate_super+0xe0/0x100 fs/super.c:362 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1177 __cleanup_mnt+0x20/0x30 fs/namespace.c:1184 task_work_run+0x230/0x2e0 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x63c/0x1f58 kernel/exit.c:874 do_group_exit+0x194/0x22c kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __wake_up_parent+0x0/0x60 kernel/exit.c:1033 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: d004ea61 91060021 aa1303e0 97fd8a02 (d4210000) ---[ end trace 0000000000000000 ]---