RBP: 00007f6fb1cec090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007f6fb1026038 R14: 00007f6fb1025fa0 R15: 00007ffd6f85c1a8 ================================================================== BUG: KASAN: double-free in jffs2_free_inode+0x41/0x60 fs/jffs2/super.c:52 Free of addr ffff888028ab5d80 by task syz.2.498/7758 CPU: 1 UID: 0 PID: 7758 Comm: syz.2.498 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report_invalid_free+0xea/0x110 mm/kasan/report.c:557 check_slab_allocation mm/kasan/common.c:-1 [inline] __kasan_slab_pre_free+0x104/0x120 mm/kasan/common.c:272 kasan_slab_pre_free include/linux/kasan.h:199 [inline] slab_free_hook mm/slub.c:2725 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x173/0x650 mm/slub.c:6923 jffs2_free_inode+0x41/0x60 fs/jffs2/super.c:52 i_callback fs/inode.c:318 [inline] alloc_inode+0x17c/0x1b0 fs/inode.c:353 iget_locked+0x12c/0x690 fs/inode.c:1473 jffs2_iget+0xac/0xcc0 fs/jffs2/fs.c:265 jffs2_lookup+0x377/0x430 fs/jffs2/dir.c:114 lookup_one_qstr_excl+0x12d/0x360 fs/namei.c:1810 __start_dirop fs/namei.c:2920 [inline] start_dirop fs/namei.c:2942 [inline] filename_create+0x20e/0x370 fs/namei.c:5101 filename_symlinkat+0xf7/0x410 fs/namei.c:5824 __do_sys_symlinkat fs/namei.c:5850 [inline] __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5845 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6fb0d9e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6fb1cec028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 00007f6fb1025fa0 RCX: 00007f6fb0d9e159 RDX: 0000200000000080 RSI: ffffffffffffff9c RDI: 0000200000000000 RBP: 00007f6fb1cec090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007f6fb1026038 R14: 00007f6fb1025fa0 R15: 00007ffd6f85c1a8 Allocated by task 5609: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_node_noprof+0x4b4/0x720 mm/slub.c:5543 _kmalloc_node_noprof include/linux/slab.h:1200 [inline] __vmalloc_area_node mm/vmalloc.c:3911 [inline] __vmalloc_node_range_noprof+0x5d1/0x16f0 mm/vmalloc.c:4133 __vmalloc_node_noprof mm/vmalloc.c:4194 [inline] vzalloc_noprof+0xb2/0xe0 mm/vmalloc.c:4272 alloc_counters net/ipv4/netfilter/arp_tables.c:671 [inline] copy_entries_to_user net/ipv4/netfilter/arp_tables.c:692 [inline] get_entries net/ipv4/netfilter/arp_tables.c:787 [inline] do_arpt_get_ctl+0x915/0x1270 net/ipv4/netfilter/arp_tables.c:1013 nf_getsockopt+0x26e/0x290 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x19e/0x230 net/ipv4/ip_sockglue.c:1785 do_sock_getsockopt+0x4aa/0x640 net/socket.c:2502 __sys_getsockopt net/socket.c:2533 [inline] __do_sys_getsockopt net/socket.c:2540 [inline] __se_sys_getsockopt net/socket.c:2537 [inline] __x64_sys_getsockopt+0x1a4/0x240 net/socket.c:2537 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5609: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x1c5/0x650 mm/slub.c:6923 vfree+0x426/0x490 mm/vmalloc.c:3529 copy_entries_to_user net/ipv4/netfilter/arp_tables.c:722 [inline] get_entries net/ipv4/netfilter/arp_tables.c:787 [inline] do_arpt_get_ctl+0x104e/0x1270 net/ipv4/netfilter/arp_tables.c:1013 nf_getsockopt+0x26e/0x290 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x19e/0x230 net/ipv4/ip_sockglue.c:1785 do_sock_getsockopt+0x4aa/0x640 net/socket.c:2502 __sys_getsockopt net/socket.c:2533 [inline] __do_sys_getsockopt net/socket.c:2540 [inline] __se_sys_getsockopt net/socket.c:2537 [inline] __x64_sys_getsockopt+0x1a4/0x240 net/socket.c:2537 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888028ab5d80 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff888028ab5d80, ffff888028ab5d88) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x28ab5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813ff24500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000800080 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 7785140622 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1854 prep_new_page mm/page_alloc.c:1862 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3933 __alloc_frozen_pages_noprof+0x1fc/0x400 mm/page_alloc.c:5441 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_node_track_caller_noprof+0x543/0x720 mm/slub.c:5662 kvasprintf+0xeb/0x1a0 lib/kasprintf.c:25 kobject_set_name_vargs+0x61/0x110 lib/kobject.c:274 kobject_add_varg lib/kobject.c:368 [inline] kobject_init_and_add+0xee/0x1a0 lib/kobject.c:457 netdev_queue_add_kobject net/core/net-sysfs.c:1990 [inline] netdev_queue_update_kobjects+0x249/0x6b0 net/core/net-sysfs.c:2049 register_queue_kobjects net/core/net-sysfs.c:2112 [inline] netdev_register_kobject+0x277/0x350 net/core/net-sysfs.c:2358 register_netdevice+0x142e/0x1eb0 net/core/dev.c:11514 bond_create+0xa9/0x110 drivers/net/bonding/bond_main.c:6536 bonding_init+0x52/0xc0 drivers/net/bonding/bond_main.c:6630 do_one_initcall+0x250/0x870 init/main.c:1360 page_owner free stack trace missing Memory state around the buggy address: ffff888028ab5c80: 05 fc fc fc 05 fc fc fc 06 fc fc fc 06 fc fc fc ffff888028ab5d00: 06 fc fc fc 00 fc fc fc 00 fc fc fc 00 fc fc fc >ffff888028ab5d80: fa fc fc fc 05 fc fc fc 05 fc fc fc 07 fc fc fc ^ ffff888028ab5e00: 07 fc fc fc 07 fc fc fc 07 fc fc fc 07 fc fc fc ffff888028ab5e80: 07 fc fc fc 05 fc fc fc 00 fc fc fc fa fc fc fc ==================================================================