==================================================================
BUG: KASAN: slab-out-of-bounds in dtSplitPage+0x1bce/0x36a0
Write of size 1 at addr ffff8881184c30c0 by task syz.6.5607/30299

CPU: 0 UID: 0 PID: 30299 Comm: syz.6.5607 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_symlink+0x8a1/0xfb0
 vfs_symlink+0x18b/0x330
 filename_symlinkat+0x1cd/0x410
 __se_sys_symlinkat+0x4e/0x2b0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f36d619e559
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:00007f36d709b028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f36d6426090 RCX: 00007f36d619e559
RDX: 0000200000027f00 RSI: ffffffffffffff9c RDI: 0000200000027dc0
RBP: 00007f36d62358b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f36d6426128 R14: 00007f36d6426090 R15: 00007ffd45d6f968
 </TASK>

Allocated by task 5844:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x2b9/0x600
 __kernfs_new_node+0xe6/0x980
 kernfs_new_node+0xea/0x140
 __kernfs_create_file+0x4b/0x2e0
 sysfs_add_file_mode_ns+0x237/0x300
 sysfs_merge_group+0x183/0x320
 dpm_sysfs_add+0xd2/0x270
 device_add+0x4ca/0xb80
 netdev_register_kobject+0x197/0x350
 register_netdevice+0x1433/0x1eb0
 nsim_create+0xbd7/0x1150
 __nsim_dev_port_add+0x7f8/0xcd0
 nsim_dev_port_add_all+0x37/0xf0
 nsim_dev_reload_up+0x4dd/0x880
 devlink_reload+0x4b2/0x890
 devlink_pernet_pre_exit+0x1ff/0x420
 ops_undo_list+0x17d/0x8d0
 cleanup_net+0x572/0x810
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff8881184c3000
 which belongs to the cache kernfs_node_cache of size 176
The buggy address is located 16 bytes to the right of
 allocated 176-byte region [ffff8881184c3000, ffff8881184c30b0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1184c3
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff88810168f8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000200110011 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 19950, tgid 19950 (syz-executor), ts 2171024620095
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2209/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 kmem_cache_alloc_noprof+0x399/0x600
 __kernfs_new_node+0xe6/0x980
 kernfs_new_node+0xea/0x140
 __kernfs_create_file+0x4b/0x2e0
 sysfs_add_file_mode_ns+0x237/0x300
 sysfs_create_file_ns+0x12b/0x1b0
 br_sysfs_addif+0xc8/0x240
 br_add_if+0x39a/0xeb0
 do_set_master+0x563/0x720
 do_setlink+0xe7b/0x4670
page last free pid 15 tgid 15 ts 2171013747800 stack trace:
 __free_frozen_pages+0xc93/0xd90
 tlb_remove_table_rcu+0x85/0x100
 rcu_core+0x926/0x1260
 handle_softirqs+0x226/0x860
 run_ksoftirqd+0x36/0x60
 smpboot_thread_fn+0x565/0xa70
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff8881184c2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881184c3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881184c3080: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00
                                           ^
 ffff8881184c3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881184c3180: 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00
==================================================================
