loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-use-after-free in jfs_readdir+0x1a1b/0x3c10 fs/jfs/jfs_dtree.c:2916 Read of size 1 at addr ffff88805e1c83e5 by task syz.0.17/6608 CPU: 1 UID: 0 PID: 6608 Comm: syz.0.17 No[ 156.657037][ T6608] CPU: 1 UID: 0 PID: 6608 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 jfs_readdir+0x1a1b/0x3c10 fs/jfs/jfs_dtree.c:2916 wrap_directory_iterator+0x99/0xe0 fs/readdir.c:65 iterate_dir+0x3a5/0x580 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:412 [inline] __se_sys_getdents64+0xf1/0x280 fs/readdir.c:397 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5a57b0aef9 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:00007f5a5716e028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f5a57d75fa0 RCX: 00007f5a57b0aef9 RDX: 0000000000000099 RSI: 0000200000000280 RDI: 0000000000000005 RBP: 00007f5a57b9fee0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5a57d76038 R14: 00007f5a57d75fa0 R15: 00007fff2ae554e8 Allocated by task 6321: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4538 [inline] slab_alloc_node mm/slub.c:4866 [inline] kmem_cache_alloc_lru_noprof+0x33c/0x680 mm/slub.c:4885 alloc_inode+0x6a/0x1b0 fs/inode.c:347 new_inode+0x22/0x170 fs/inode.c:1185 debugfs_get_inode fs/debugfs/inode.c:72 [inline] __debugfs_create_file+0xb8/0x400 fs/debugfs/inode.c:433 debugfs_create_file_short+0x3f/0x60 fs/debugfs/inode.c:471 add_link_files net/mac80211/debugfs_netdev.c:991 [inline] ieee80211_debugfs_add_netdev net/mac80211/debugfs_netdev.c:1012 [inline] ieee80211_debugfs_recreate_netdev+0xf84/0x1460 net/mac80211/debugfs_netdev.c:1034 ieee80211_if_add+0xc3d/0x13a0 net/mac80211/iface.c:2323 ieee80211_register_hw+0x36a3/0x4200 net/mac80211/main.c:1617 mac80211_hwsim_new_radio+0x2efe/0x5210 drivers/net/wireless/virtual/mac80211_hwsim.c:5809 hwsim_new_radio_nl+0xf35/0x1bd0 drivers/net/wireless/virtual/mac80211_hwsim.c:6503 genl_family_rcv_msg_doit+0x22a/0x330 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x61c/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x831/0x9f0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x67f/0x710 net/socket.c:2206 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2209 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 20: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2685 [inline] slab_free mm/slub.c:6165 [inline] kmem_cache_free+0x185/0x6b0 mm/slub.c:6295 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core kernel/rcu/tree.c:2869 [inline] rcu_cpu_kthread+0x99e/0x1470 kernel/rcu/tree.c:2957 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3131 [inline] call_rcu+0xee/0x890 kernel/rcu/tree.c:3251 destroy_inode fs/inode.c:402 [inline] evict+0x95b/0xb10 fs/inode.c:870 __dentry_kill+0x1a2/0x5e0 fs/dcache.c:670 finish_dput+0xc9/0x480 fs/dcache.c:879 find_next_child+0x1e5/0x250 fs/libfs.c:594 __simple_recursive_removal+0x10b/0x520 fs/libfs.c:611 debugfs_remove+0x5b/0x70 fs/debugfs/inode.c:781 ieee80211_debugfs_remove_netdev+0x52/0xb0 net/mac80211/debugfs_netdev.c:1020 ieee80211_teardown_sdata+0x5a/0x140 net/mac80211/iface.c:872 ieee80211_if_change_type+0x13c/0x940 net/mac80211/iface.c:2061 ieee80211_change_iface+0xd5/0x510 net/mac80211/cfg.c:271 rdev_change_virtual_intf net/wireless/rdev-ops.h:74 [inline] cfg80211_change_iface+0x6bf/0xed0 net/wireless/util.c:1218 nl80211_set_interface+0x773/0xa90 net/wireless/nl80211.c:4694 genl_family_rcv_msg_doit+0x22a/0x330 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x61c/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x831/0x9f0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x67f/0x710 net/socket.c:2206 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2209 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805e1c8000 which belongs to the cache debugfs_inode_cache of size 1296 The buggy address is located 997 bytes inside of freed 1296-byte region [ffff88805e1c8000, ffff88805e1c8510) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e1c8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888021ea6801 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88801e2d8780 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800170017 00000000f5000000 ffff888021ea6801 head: 0080000000000040 ffff88801e2d8780 dead000000000100 dead000000000122 head: 0000000000000000 0000000800170017 00000000f5000000 ffff888021ea6801 head: 0080000000000003 ffffea0001787201 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_RECLAIMABLE|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5912, tgid 5912 (syz-executor), ts 93393512352, free_ts 88480597136 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x28bb/0x2950 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab+0x77/0x660 mm/slub.c:3481 new_slab mm/slub.c:3539 [inline] refill_objects+0x334/0x3c0 mm/slub.c:7175 refill_sheaf mm/slub.c:2812 [inline] __pcs_replace_empty_main+0x35c/0x710 mm/slub.c:4615 alloc_from_pcs mm/slub.c:4717 [inline] slab_alloc_node mm/slub.c:4851 [inline] kmem_cache_alloc_lru_noprof+0x433/0x680 mm/slub.c:4885 alloc_inode+0x6a/0x1b0 fs/inode.c:347 new_inode+0x22/0x170 fs/inode.c:1185 debugfs_get_inode fs/debugfs/inode.c:72 [inline] __debugfs_create_file+0xb8/0x400 fs/debugfs/inode.c:433 debugfs_create_file_full+0x3f/0x60 fs/debugfs/inode.c:460 vhci_debugfs_init+0xcf/0x110 drivers/bluetooth/hci_vhci.c:394 __vhci_create_device drivers/bluetooth/hci_vhci.c:460 [inline] vhci_create_device+0x440/0x660 drivers/bluetooth/hci_vhci.c:479 vhci_get_user drivers/bluetooth/hci_vhci.c:536 [inline] vhci_write+0x3d0/0x4a0 drivers/bluetooth/hci_vhci.c:616 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x629/0xba0 fs/read_write.c:688 ksys_write+0x156/0x270 fs/read_write.c:740 page last free pid 5846 tgid 5846 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xfe3/0x1170 mm/page_alloc.c:2978 vfree+0x2ac/0x470 mm/vmalloc.c:3479 kcov_put kernel/kcov.c:442 [inline] kcov_close+0x2e/0x60 kernel/kcov.c:543 __fput+0x461/0xa90 fs/file_table.c:469 task_work_run+0x1d9/0x270 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x70f/0x23c0 kernel/exit.c:976 do_group_exit+0x21b/0x2d0 kernel/exit.c:1118 get_signal+0x125c/0x1310 kernel/signal.c:3034 arch_do_signal_or_restart+0xbc/0x830 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x86/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x32d/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805e1c8280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805e1c8300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805e1c8380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805e1c8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805e1c8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================