------------[ cut here ]------------ WARNING: CPU: 1 PID: 4347 at mm/slab_common.c:923 free_large_kmalloc+0x34/0x15c mm/slab_common.c:924 Modules linked in: CPU: 1 PID: 4347 Comm: syz-executor.1 Not tainted 6.1.24-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (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 : ffff80001dcf77a0 x29: ffff80001dcf77a0 x28: ffff0000d2b2e600 x27: dfff800000000000 x26: 1fffe0001a565cc5 x25: 0000000000000002 x24: ffff0000d2b2e620 x23: ffff0001338e3bb0 x22: dfff800000000000 x21: ffff800008805dac x20: ffff0000de030000 x19: fffffc0003780c00 x18: 1fffe000368ba776 x17: ffff80001558d000 x16: ffff8000120de45c x15: 0000000000000000 x14: 0000000000000000 x13: 0000000000000406 x12: ffff0000cfbc3680 x11: ff80800008098054 x10: 0000000000000000 x9 : 0000000003780c00 x8 : ffff800017ea4000 x7 : ffff800008750548 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002 x2 : 0000000000000008 x1 : ffff0000de030000 x0 : fffffc0003780c00 Call trace: free_large_kmalloc+0x34/0x15c mm/slab_common.c:924 kfree+0x10c/0x1b8 mm/slab_common.c:1001 diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195 jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63 jfs_put_super+0x90/0x188 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1450 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+0x2144/0x3470 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:581 irq event stamp: 14680676 hardirqs last enabled at (14680675): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (14680675): [] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194 hardirqs last disabled at (14680676): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (14680530): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (14680528): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- object pointer: 0x00000000dbdd52de ================================================================== BUG: KASAN: double-free in kfree+0x10c/0x1b8 mm/slab_common.c:1001 Free of addr ffff0000de030000 by task syz-executor.1/4347 CPU: 1 PID: 4347 Comm: syz-executor.1 Tainted: G W 6.1.24-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 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 diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195 jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63 jfs_put_super+0x90/0x188 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1450 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+0x2144/0x3470 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:581 Allocated by task 1511: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:955 [inline] __kmalloc_node_track_caller+0xd0/0x1c0 mm/slab_common.c:975 kmalloc_reserve net/core/skbuff.c:437 [inline] __alloc_skb+0x174/0x580 net/core/skbuff.c:509 alloc_skb include/linux/skbuff.h:1267 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:751 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:808 [inline] nsim_dev_trap_report_work+0x1f0/0x924 drivers/net/netdevsim/dev.c:853 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2289 worker_thread+0x8e4/0xfec kernel/workqueue.c:2436 kthread+0x24c/0x2d4 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 Freed by task 1511: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516 ____kasan_slab_free+0x144/0x1c0 mm/kasan/common.c:236 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:244 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook mm/slub.c:1750 [inline] slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0x2c0/0x4b4 mm/slub.c:3674 kfree+0xcc/0x1b8 mm/slab_common.c:1007 skb_free_head net/core/skbuff.c:760 [inline] skb_release_data+0x488/0x6b0 net/core/skbuff.c:789 skb_release_all net/core/skbuff.c:854 [inline] __kfree_skb net/core/skbuff.c:868 [inline] consume_skb+0xa0/0x178 net/core/skbuff.c:1033 nsim_dev_trap_report drivers/net/netdevsim/dev.c:824 [inline] nsim_dev_trap_report_work+0x628/0x924 drivers/net/netdevsim/dev.c:853 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2289 worker_thread+0x8e4/0xfec kernel/workqueue.c:2436 kthread+0x24c/0x2d4 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 The buggy address belongs to the object at ffff0000de030000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 0 bytes inside of 4096-byte region [ffff0000de030000, ffff0000de031000) The buggy address belongs to the physical page: page:000000009fa6b8e8 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e030 head:000000009fa6b8e8 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 dead000000000122 ffff0000c0002a80 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000de02ff00: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff0000de02ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000de030000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000de030080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000de030100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== page:000000009fa6b8e8 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e030 head:000000009fa6b8e8 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 dead000000000122 ffff0000c0002a80 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: VM_BUG_ON_FOLIO(folio_test_slab(folio)) ------------[ cut here ]------------ kernel BUG at include/linux/memcontrol.h:379! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4347 Comm: syz-executor.1 Tainted: G B W 6.1.24-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __folio_memcg include/linux/memcontrol.h:379 [inline] pc : folio_memcg+0x148/0x174 include/linux/memcontrol.h:432 lr : __folio_memcg include/linux/memcontrol.h:379 [inline] lr : folio_memcg+0x148/0x174 include/linux/memcontrol.h:432 sp : ffff80001dcf7710 x29: ffff80001dcf7710 x28: ffff0000d2b2e600 x27: dfff800000000000 x26: 1fffe0001a565cc5 x25: 0000000000000002 x24: dfff800000000000 x23: 1fffff80006f0181 x22: dfff800000000000 x21: 0000000000000000 x20: fffffc0003780c08 x19: fffffc0003780c00 x18: 1fffe000368b6776 x17: 0000000000000000 x16: ffff8000120de45c x15: 0000000000000000 x14: 0000000000000000 x13: 0000000000029748 x12: 0000000000000001 x11: ff80800008829b74 x10: 0000000000000000 x9 : ffff800008829b74 x8 : ffff0000cfbc3680 x7 : 0000000000029748 x6 : 0000000000029718 x5 : ffff80001dcf6f98 x4 : ffff800015668d58 x3 : ffff80000858109c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000003c Call trace: __folio_memcg include/linux/memcontrol.h:379 [inline] folio_memcg+0x148/0x174 include/linux/memcontrol.h:432 page_memcg include/linux/memcontrol.h:437 [inline] __mod_lruvec_page_state+0x110/0x2ec mm/memcontrol.c:833 mod_lruvec_page_state include/linux/vmstat.h:562 [inline] free_large_kmalloc+0xa8/0x15c mm/slab_common.c:930 kfree+0x10c/0x1b8 mm/slab_common.c:1001 diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195 jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63 jfs_put_super+0x90/0x188 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1450 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+0x2144/0x3470 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:581 Code: d004c981 91220021 aa1303e0 97f9cd4d (d4210000) ---[ end trace 0000000000000000 ]---