loop5: detected capacity change from 0 to 32768
==================================================================
BUG: KASAN: slab-use-after-free in dtSplitPage+0x1bce/0x36a0
Write of size 1 at addr ffff88811214b000 by task syz.5.862/9502

CPU: 0 UID: 0 PID: 9502 Comm: syz.5.862 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 dtSplitPage+0x1bce/0x36a0
 dtInsert+0x1080/0x5cb0
 jfs_mkdir+0x76b/0xb00
 vfs_mkdir+0x406/0x620
 filename_mkdirat+0x285/0x510
 __se_sys_mkdirat+0x35/0x150
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3d1ef9cf47
Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 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:00007f3d1d1f5e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3d1d1f5ee0 RCX: 00007f3d1ef9cf47
RDX: 00000000000001ff RSI: 0000200000000280 RDI: 00000000ffffff9c
RBP: 00002000000007c0 R08: 0000200000000d40 R09: 0000000000000000
R10: 00002000000007c0 R11: 0000000000000246 R12: 0000200000000280
R13: 00007f3d1d1f5ea0 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Allocated by task 8729:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x2a0/0x5f0
 __kernfs_new_node+0xe6/0x980
 kernfs_new_node+0xea/0x140
 __kernfs_create_file+0x4b/0x2e0
 sysfs_add_file_mode_ns+0x237/0x300
 internal_create_group+0x679/0x1180
 sysfs_create_groups+0x59/0x120
 device_add_attrs+0x1b1/0x600
 device_add+0x488/0xb80
 netdev_register_kobject+0x197/0x350
 register_netdevice+0x1433/0x1eb0
 __ip_tunnel_create+0x3e8/0x550
 ip_tunnel_init_net+0x2e5/0x820
 ops_init+0x35d/0x5d0
 setup_net+0x118/0x350
 copy_net_ns+0x4f9/0x720
 create_new_namespaces+0x3f0/0x6b0
 unshare_nsproxy_namespaces+0x149/0x190
 ksys_unshare+0x57d/0xa00
 __x64_sys_unshare+0x38/0x50
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 83:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x182/0x650
 rcu_core+0x78b/0x10a0
 handle_softirqs+0x225/0x840
 do_softirq+0x76/0xd0
 __local_bh_enable_ip+0xf8/0x130
 nsim_dev_trap_report_work+0x7a4/0xb40
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0xee/0x8b0
 kernfs_put+0x622/0x820
 kernfs_remove_by_name_ns+0xc8/0x140
 sysfs_remove_group+0x101/0x2e0
 sysfs_remove_groups+0x54/0xb0
 device_remove_attrs+0x1cb/0x280
 device_del+0x51c/0x8f0
 unregister_netdevice_many_notify+0x1be1/0x2140
 ops_undo_list+0x391/0x8d0
 cleanup_net+0x572/0x810
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff88811214b000
 which belongs to the cache kernfs_node_cache of size 176
The buggy address is located 0 bytes inside of
 freed 176-byte region [ffff88811214b000, ffff88811214b0b0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88811214b000 pfn:0x11214b
flags: 0x17ff00000000200(workingset|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000200 ffff88816041b500 ffffea000085bed0 ffffea000455f8d0
raw: ffff88811214b000 0000000800110008 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 6121, tgid 6120 (syz.0.139), ts 71003279873, free_ts 70985773045
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x21fa/0x2270
 __alloc_frozen_pages_noprof+0x18d/0x380
 allocate_slab+0x79/0x5e0
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2bf/0x6b0
 kmem_cache_alloc_noprof+0x382/0x5f0
 __kernfs_new_node+0xe6/0x980
 kernfs_new_node+0xea/0x140
 __kernfs_create_file+0x4b/0x2e0
 sysfs_add_file_mode_ns+0x237/0x300
 internal_create_group+0x679/0x1180
 sysfs_create_groups+0x59/0x120
 kobject_add_internal+0x669/0xcd0
 kobject_init_and_add+0x12b/0x1a0
 btrfs_sysfs_add_space_info_type+0x21c/0x2d0
page last free pid 6124 tgid 6124 stack trace:
 __free_frozen_pages+0xc1e/0xd10
 tlb_remove_table_rcu+0x85/0x100
 rcu_core+0x78b/0x10a0
 handle_softirqs+0x225/0x840
 __irq_exit_rcu+0xca/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

Memory state around the buggy address:
 ffff88811214af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88811214af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88811214b000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                   ^
 ffff88811214b080: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb
 ffff88811214b100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
