------------[ cut here ]------------ WARNING: CPU: 0 PID: 6040 at mm/slab_common.c:935 free_large_kmalloc+0x34/0x12c mm/slab_common.c:936 Modules linked in: CPU: 0 PID: 6040 Comm: syz-executor.4 Not tainted 6.3.0-rc7-syzkaller-g327bf9bb94cf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : free_large_kmalloc+0x34/0x12c mm/slab_common.c:936 lr : kfree+0xf8/0x19c mm/slab_common.c:1013 sp : ffff80001e5e7700 x29: ffff80001e5e7700 x28: ffff0000cae516b0 x27: 0000000000000000 x26: ffff0000db272228 x25: ffff0000db272220 x24: 0000000000000000 x23: ffff0000cae50d70 x22: dfff800000000000 x21: ffff8000088092a0 x20: ffff0000d5ba8000 x19: fffffc000356ea00 x18: ffff80001e5e7d28 x17: ffff800015c7d000 x16: ffff8000123165a4 x15: 0000000000000000 x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000406 x11: 0000000000000000 x10: 0000000000000000 x9 : 05ffc00000000000 x8 : ffff8000187c1000 x7 : ffff80000876fa38 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002 x2 : 0000000000000008 x1 : ffff0000d5ba8000 x0 : fffffc000356ea00 Call trace: free_large_kmalloc+0x34/0x12c mm/slab_common.c:936 kfree+0xf8/0x19c mm/slab_common.c:1013 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 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1304 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+0x90/0x15c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 4012200 hardirqs last enabled at (4012199): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (4012199): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (4012200): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (4011684): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (4011682): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- object pointer: 0x000000006f9f3b14 ================================================================== BUG: KASAN: double-free in kfree+0xf8/0x19c mm/slab_common.c:1013 Free of addr ffff0000d5ba8000 by task syz-executor.4/6040 CPU: 0 PID: 6040 Comm: syz-executor.4 Tainted: G W 6.3.0-rc7-syzkaller-g327bf9bb94cf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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:319 [inline] print_report+0x174/0x514 mm/kasan/report.c:430 kasan_report_invalid_free+0xc4/0x114 mm/kasan/report.c:501 __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:939 kfree+0xf8/0x19c mm/slab_common.c:1013 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 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1304 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+0x90/0x15c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the physical page: page:000000007aadf707 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x115ba8 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffc000364da08 fffffc0004bbea08 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d5ba7f00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff0000d5ba7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000d5ba8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000d5ba8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000d5ba8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== page:000000007aadf707 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x115ba8 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffc000364da08 fffffc0004bbea08 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:875! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6040 Comm: syz-executor.4 Tainted: G B W 6.3.0-rc7-syzkaller-g327bf9bb94cf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : put_page_testzero include/linux/mm.h:875 [inline] pc : __free_pages+0x15c/0x1cc mm/page_alloc.c:5680 lr : put_page_testzero include/linux/mm.h:875 [inline] lr : __free_pages+0x15c/0x1cc mm/page_alloc.c:5680 sp : ffff80001e5e76c0 x29: ffff80001e5e76c0 x28: ffff0000cae516b0 x27: 0000000000000000 x26: ffff0000db272228 x25: ffff0000db272220 x24: 0000000000000000 x23: dfff800000000000 x22: 05ffc00000000000 x21: fffffc000356ea34 x20: 0000000000000000 x19: fffffc000356ea00 x18: 1fffe000368519b6 x17: ffff800015c7d000 x16: ffff8000123165a4 x15: 0000000000000002 x14: 0000000000000000 x13: 0000000040000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000d0878000 x7 : 1fffe000368519b7 x6 : ffff80000827ec18 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008583b68 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000003e Call trace: put_page_testzero include/linux/mm.h:875 [inline] __free_pages+0x15c/0x1cc mm/page_alloc.c:5680 free_large_kmalloc+0xc8/0x12c mm/slab_common.c:944 kfree+0xf8/0x19c mm/slab_common.c:1013 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 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1304 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+0x90/0x15c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: b004e301 91268021 aa1303e0 97fdd9f6 (d4210000) ---[ end trace 0000000000000000 ]---