program:
mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./config\x00', 0x1ff)
mount(0x0, &(0x7f0000000080)='./config\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0)
mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./config/usb_gadget\x00', 0x1ff) (async)
mkdirat(0xffffffffffffff9c, &(0x7f0000000140)='./config/usb_gadget/g1\x00', 0x1ef) (async)
mkdirat(0xffffffffffffff9c, &(0x7f0000000180)='./config/usb_gadget/g1/configs\x00', 0x1ff)
mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./config/usb_gadget/g1/configs/c.1\x00', 0x1ff) (async)
mkdirat(0xffffffffffffff9c, &(0x7f0000000200)='./config/usb_gadget/g1/functions\x00', 0x1ff)
mkdirat(0xffffffffffffff9c, &(0x7f0000000240)='./config/usb_gadget/g1/functions/geth.usb0\x00', 0x1ff) (async)
symlinkat(&(0x7f0000000280)='./config/usb_gadget/g1/functions/geth.usb0\x00', 0xffffffffffffff9c, &(0x7f00000002c0)='./config/usb_gadget/g1/configs/c.1/geth.usb0\x00') (async)
unlinkat(0xffffffffffffff9c, &(0x7f0000000300)='./config\x00', 0x0)
unlinkat(0xffffffffffffff9c, &(0x7f0000000340)='./config/usb_gadget/g1/functions/geth.usb0\x00', 0x200)
[ 94.268943][ T5278] Bluetooth: hci0: command tx timeout
[ 94.401632][ T5316] ==================================================================
[ 94.405071][ T5316] BUG: KASAN: slab-use-after-free in configfs_dirent_is_ready+0x6d/0x70
[ 94.408747][ T5316] Read of size 4 at addr ffff8880007e75b8 by task syz.0.0/5316
[ 94.411896][ T5316]
[ 94.412802][ T5316] CPU: 0 UID: 0 PID: 5316 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 94.412812][ T5316] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 94.412816][ T5316] Call Trace:
[ 94.412821][ T5316]
[ 94.412825][ T5316] dump_stack_lvl+0xe8/0x150
[ 94.412838][ T5316] print_address_description+0x55/0x1e0
[ 94.412847][ T5316] ? configfs_dirent_is_ready+0x6d/0x70
[ 94.412855][ T5316] print_report+0x58/0x70
[ 94.412866][ T5316] kasan_report+0x117/0x150
[ 94.412879][ T5316] ? configfs_dirent_is_ready+0x6d/0x70
[ 94.412891][ T5316] configfs_dirent_is_ready+0x6d/0x70
[ 94.412902][ T5316] configfs_symlink+0x616/0x1030
[ 94.412915][ T5316] ? lookup_one_qstr_excl+0x1d4/0x360
[ 94.412930][ T5316] ? make_vfsuid+0x49/0xa0
[ 94.412943][ T5316] ? __pfx_configfs_symlink+0x10/0x10
[ 94.412956][ T5316] ? bpf_lsm_inode_symlink+0x9/0x20
[ 94.412970][ T5316] vfs_symlink+0x18b/0x330
[ 94.412978][ T5316] ? security_path_symlink+0xfd/0x360
[ 94.413174][ T5316] filename_symlinkat+0x1cd/0x410
[ 94.413183][ T5316] ? __pfx_filename_symlinkat+0x10/0x10
[ 94.413194][ T5316] ? do_getname+0x151/0x250
[ 94.413203][ T5316] __se_sys_symlinkat+0x4e/0x2b0
[ 94.413211][ T5316] do_syscall_64+0x166/0x520
[ 94.413433][ T5316] ? trace_irq_disable+0x3b/0x140
[ 94.413441][ T5316] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 94.413451][ T5316] ? clear_bhb_loop+0x70/0xc0
[ 94.413459][ T5316] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 94.413466][ T5316] RIP: 0033:0x7fe05eb9e0d9
[ 94.413474][ T5316] 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
[ 94.413486][ T5316] RSP: 002b:00007fe05fa0efe8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
[ 94.413497][ T5316] RAX: ffffffffffffffda RBX: 00007fe05ee25fa0 RCX: 00007fe05eb9e0d9
[ 94.413507][ T5316] RDX: 00002000000002c0 RSI: ffffffffffffff9c RDI: 0000200000000280
[ 94.413514][ T5316] RBP: 00007fe05ec35024 R08: 0000000000000000 R09: 0000000000000000
[ 94.413520][ T5316] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 94.413530][ T5316] R13: 00007fe05ee26038 R14: 00007fe05ee25fa0 R15: 00007ffd0c884e48
[ 94.413541][ T5316]
[ 94.413545][ T5316]
[ 94.506756][ T5316] Allocated by task 5316:
[ 94.508691][ T5316] kasan_save_track+0x3e/0x80
[ 94.510736][ T5316] __kasan_slab_alloc+0x6c/0x80
[ 94.512767][ T5316] kmem_cache_alloc_noprof+0x2a4/0x5f0
[ 94.514984][ T5316] configfs_new_dirent+0x59/0x470
[ 94.516890][ T5316] configfs_attach_item+0xa1/0xd60
[ 94.518766][ T5316] configfs_attach_group+0x2a/0x370
[ 94.520813][ T5316] configfs_mkdir+0x6f0/0x9e0
[ 94.522713][ T5316] vfs_mkdir+0x40c/0x620
[ 94.524515][ T5316] filename_mkdirat+0x285/0x510
[ 94.526642][ T5316] __se_sys_mkdirat+0x35/0x150
[ 94.528732][ T5316] do_syscall_64+0x166/0x520
[ 94.530764][ T5316] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 94.533158][ T5316]
[ 94.534070][ T5316] Freed by task 5317:
[ 94.535647][ T5316] kasan_save_track+0x3e/0x80
[ 94.537709][ T5316] kasan_save_free_info+0x40/0x50
[ 94.539980][ T5316] __kasan_slab_free+0x5c/0x80
[ 94.542120][ T5316] kmem_cache_free+0x182/0x650
[ 94.544259][ T5316] configfs_d_iput+0x209/0x270
[ 94.546290][ T5316] vfs_rmdir+0x24a/0x6a0
[ 94.548217][ T5316] filename_rmdir+0x292/0x520
[ 94.550183][ T5316] __se_sys_unlinkat+0x71/0x1a0
[ 94.552146][ T5316] do_syscall_64+0x166/0x520
[ 94.554066][ T5316] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 94.556513][ T5316]
[ 94.557568][ T5316] The buggy address belongs to the object at ffff8880007e7580
[ 94.557568][ T5316] which belongs to the cache configfs_dir_cache of size 96
[ 94.563598][ T5316] The buggy address is located 56 bytes inside of
[ 94.563598][ T5316] freed 96-byte region [ffff8880007e7580, ffff8880007e75e0)
[ 94.569335][ T5316]
[ 94.570427][ T5316] The buggy address belongs to the physical page:
[ 94.573141][ T5316] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7e7
[ 94.576817][ T5316] flags: 0x7ff00000000000(node=0|zone=0|lastcpupid=0x7ff)
[ 94.579899][ T5316] page_type: f5(slab)
[ 94.581828][ T5316] raw: 007ff00000000000 ffff88801bbaa640 dead000000000122 0000000000000000
[ 94.585567][ T5316] raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
[ 94.589239][ T5316] page dumped because: kasan: bad access detected
[ 94.592114][ T5316] page_owner tracks the page as allocated
[ 94.594669][ T5316] 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 8528671573
[ 94.602079][ T5316] post_alloc_hook+0x1f9/0x250
[ 94.604230][ T5316] get_page_from_freelist+0x2209/0x2280
[ 94.606605][ T5316] __alloc_frozen_pages_noprof+0x217/0x5a0
[ 94.609158][ T5316] allocate_slab+0x7c/0x5e0
[ 94.611180][ T5316] refill_objects+0x2d5/0x350
[ 94.613282][ T5316] __pcs_replace_empty_main+0x2c3/0x6b0
[ 94.615697][ T5316] kmem_cache_alloc_noprof+0x386/0x5f0
[ 94.618015][ T5316] configfs_new_dirent+0x59/0x470
[ 94.620105][ T5316] configfs_attach_item+0xa1/0xd60
[ 94.622383][ T5316] configfs_attach_group+0x2a/0x370
[ 94.624691][ T5316] configfs_register_subsystem+0x3a5/0x560
[ 94.627279][ T5316] tb_domain_init+0x10/0x80
[ 94.629310][ T5316] nhi_init+0xb/0x40
[ 94.631059][ T5316] do_one_initcall+0x250/0x870
[ 94.633169][ T5316] do_initcall_level+0x10a/0x1a0
[ 94.635337][ T5316] do_initcalls+0x59/0xa0
[ 94.637296][ T5316] page_owner free stack trace missing
[ 94.639433][ T5316]
[ 94.640478][ T5316] Memory state around the buggy address:
[ 94.642836][ T5316] ffff8880007e7480: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 94.646041][ T5316] ffff8880007e7500: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 94.649271][ T5316] >ffff8880007e7580: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 94.652629][ T5316] ^
[ 94.655253][ T5316] ffff8880007e7600: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc
[ 94.658745][ T5316] ffff8880007e7680: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc
[ 94.662165][ T5316] ==================================================================
[ 94.666382][ T5316] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 94.669438][ T5316] CPU: 0 UID: 0 PID: 5316 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 94.673035][ T5316] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 94.677256][ T5316] Call Trace:
[ 94.678503][ T5316]
[ 94.679569][ T5316] vpanic+0x56d/0xa60
[ 94.681163][ T5316] ? __pfx_vpanic+0x10/0x10
[ 94.682816][ T5316] panic+0xc5/0xd0
[ 94.684121][ T5316] ? __pfx_panic+0x10/0x10
[ 94.685714][ T5316] ? configfs_dirent_is_ready+0x6d/0x70
[ 94.688034][ T5316] ? configfs_dirent_is_ready+0x6d/0x70
[ 94.690456][ T5316] check_panic_on_warn+0x89/0xb0
[ 94.692644][ T5316] ? configfs_dirent_is_ready+0x6d/0x70
[ 94.695064][ T5316] end_report+0x73/0x170
[ 94.696695][ T5316] ? configfs_dirent_is_ready+0x6d/0x70
[ 94.698645][ T5316] kasan_report+0x128/0x150
[ 94.700255][ T5316] ? configfs_dirent_is_ready+0x6d/0x70
[ 94.702429][ T5316] configfs_dirent_is_ready+0x6d/0x70
[ 94.704623][ T5316] configfs_symlink+0x616/0x1030
[ 94.706495][ T5316] ? lookup_one_qstr_excl+0x1d4/0x360
[ 94.708352][ T5316] ? make_vfsuid+0x49/0xa0
[ 94.710001][ T5316] ? __pfx_configfs_symlink+0x10/0x10
[ 94.712100][ T5316] ? bpf_lsm_inode_symlink+0x9/0x20
[ 94.714291][ T5316] vfs_symlink+0x18b/0x330
[ 94.716194][ T5316] ? security_path_symlink+0xfd/0x360
[ 94.718516][ T5316] filename_symlinkat+0x1cd/0x410
[ 94.720755][ T5316] ? __pfx_filename_symlinkat+0x10/0x10
[ 94.723128][ T5316] ? do_getname+0x151/0x250
[ 94.725063][ T5316] __se_sys_symlinkat+0x4e/0x2b0
[ 94.727258][ T5316] do_syscall_64+0x166/0x520
[ 94.729267][ T5316] ? trace_irq_disable+0x3b/0x140
[ 94.731493][ T5316] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 94.733991][ T5316] ? clear_bhb_loop+0x70/0xc0
[ 94.736011][ T5316] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 94.738637][ T5316] RIP: 0033:0x7fe05eb9e0d9
[ 94.740599][ T5316] 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
[ 94.748749][ T5316] RSP: 002b:00007fe05fa0efe8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
[ 94.753021][ T5316] RAX: ffffffffffffffda RBX: 00007fe05ee25fa0 RCX: 00007fe05eb9e0d9
[ 94.757226][ T5316] RDX: 00002000000002c0 RSI: ffffffffffffff9c RDI: 0000200000000280
[ 94.760725][ T5316] RBP: 00007fe05ec35024 R08: 0000000000000000 R09: 0000000000000000
[ 94.763914][ T5316] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 94.767318][ T5316] R13: 00007fe05ee26038 R14: 00007fe05ee25fa0 R15: 00007ffd0c884e48
[ 94.770739][ T5316]
[ 94.772500][ T5316] Kernel Offset: disabled
[ 94.774393][ T5316] Rebooting in 86400 seconds..