================================================================== BUG: KASAN: slab-use-after-free in rht_key_hashfn include/linux/rhashtable.h:159 [inline] BUG: KASAN: slab-use-after-free in rht_head_hashfn include/linux/rhashtable.h:174 [inline] BUG: KASAN: slab-use-after-free in __rhashtable_remove_fast_one include/linux/rhashtable.h:1007 [inline] BUG: KASAN: slab-use-after-free in __rhashtable_remove_fast include/linux/rhashtable.h:1093 [inline] BUG: KASAN: slab-use-after-free in rhashtable_remove_fast include/linux/rhashtable.h:1122 [inline] BUG: KASAN: slab-use-after-free in xfs_buf_rele_cached fs/xfs/xfs_buf.c:926 [inline] BUG: KASAN: slab-use-after-free in xfs_buf_rele+0x115b/0x1270 fs/xfs/xfs_buf.c:951 Read of size 4 at addr ffff8880568e2808 by task syz.2.2793/22469 CPU: 0 UID: 0 PID: 22469 Comm: syz.2.2793 Not tainted 6.17.0-rc1-syzkaller-00224-g8d561baae505 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 rht_key_hashfn include/linux/rhashtable.h:159 [inline] rht_head_hashfn include/linux/rhashtable.h:174 [inline] __rhashtable_remove_fast_one include/linux/rhashtable.h:1007 [inline] __rhashtable_remove_fast include/linux/rhashtable.h:1093 [inline] rhashtable_remove_fast include/linux/rhashtable.h:1122 [inline] xfs_buf_rele_cached fs/xfs/xfs_buf.c:926 [inline] xfs_buf_rele+0x115b/0x1270 fs/xfs/xfs_buf.c:951 xfs_buftarg_shrink_scan+0x1e8/0x2f0 fs/xfs/xfs_buf.c:1653 do_shrink_slab+0x42e/0x1180 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:441 [inline] drop_slab+0x14f/0x2d0 mm/vmscan.c:459 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x440/0x570 fs/proc/proc_sysctl.c:600 iter_file_splice_write+0x918/0x1270 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1158 splice_direct_to_actor+0x345/0xa30 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x174/0x240 fs/splice.c:1227 do_sendfile+0xb06/0xe50 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1425 [inline] __se_sys_sendfile64 fs/read_write.c:1417 [inline] __x64_sys_sendfile64+0x154/0x220 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4abb38ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4abc160038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f4abb5b6270 RCX: 00007f4abb38ebe9 RDX: 0000200000002080 RSI: 0000000000000006 RDI: 0000000000000007 RBP: 00007f4abb411e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000021c R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4abb5b6308 R14: 00007f4abb5b6270 R15: 00007ffdb541f748 Allocated by task 22449: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kvmalloc_node_noprof+0x27b/0x620 mm/slub.c:5052 bucket_table_alloc.isra.0+0x83/0x460 lib/rhashtable.c:186 rhashtable_init_noprof+0x41a/0x7e0 lib/rhashtable.c:1075 xfs_perag_alloc fs/xfs/libxfs/xfs_ag.c:238 [inline] xfs_initialize_perag+0x3f3/0x5f0 fs/xfs/libxfs/xfs_ag.c:279 xfs_mountfs+0xc55/0x2130 fs/xfs/xfs_mount.c:995 xfs_fs_fill_super+0x15e0/0x1fd0 fs/xfs/xfs_super.c:1965 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1692 vfs_get_tree+0x8e/0x340 fs/super.c:1815 do_new_mount fs/namespace.c:3805 [inline] path_mount+0x1482/0x1fd0 fs/namespace.c:4120 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount fs/namespace.c:4321 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4321 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 19920: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x60/0x70 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4879 rhashtable_free_and_destroy+0x16c/0x990 lib/rhashtable.c:1173 xfs_group_free+0x172/0x3b0 fs/xfs/libxfs/xfs_group.c:171 xfs_free_perag_range+0x3c/0x60 fs/xfs/libxfs/xfs_ag.c:133 xfs_unmountfs+0x28b/0x3a0 fs/xfs/xfs_mount.c:1373 xfs_fs_put_super+0x61/0x110 fs/xfs/xfs_super.c:1247 generic_shutdown_super+0x156/0x390 fs/super.c:643 kill_block_super+0x3b/0x90 fs/super.c:1766 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2317 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1378 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880568e2800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of freed 512-byte region [ffff8880568e2800, ffff8880568e2a00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x568e0 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841c80 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841c80 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea00015a3801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 3029, tgid 3029 (kworker/u8:8), ts 100679087643, free_ts 33811114931 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab mm/slub.c:2655 [inline] new_slab+0x247/0x330 mm/slub.c:2709 ___slab_alloc+0xcf2/0x1740 mm/slub.c:3891 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3981 __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] __kmalloc_cache_noprof+0xfb/0x3e0 mm/slub.c:4391 kmalloc_noprof include/linux/slab.h:905 [inline] batadv_forw_packet_alloc+0x3ad/0x4e0 net/batman-adv/send.c:520 batadv_iv_ogm_aggregate_new+0x13c/0x4c0 net/batman-adv/bat_iv_ogm.c:571 batadv_iv_ogm_queue_add net/batman-adv/bat_iv_ogm.c:678 [inline] batadv_iv_ogm_schedule_buff+0xeb4/0x14c0 net/batman-adv/bat_iv_ogm.c:855 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:874 [inline] batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:867 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x329/0x920 net/batman-adv/bat_iv_ogm.c:1714 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 __free_pages mm/page_alloc.c:5260 [inline] free_contig_range+0x183/0x4b0 mm/page_alloc.c:7091 destroy_args+0x7f6/0xa60 mm/debug_vm_pgtable.c:958 debug_vm_pgtable+0x1a32/0x3640 mm/debug_vm_pgtable.c:1340 do_one_initcall+0x123/0x6e0 init/main.c:1269 do_initcall_level init/main.c:1331 [inline] do_initcalls init/main.c:1347 [inline] do_basic_setup init/main.c:1366 [inline] kernel_init_freeable+0x5c2/0x910 init/main.c:1579 kernel_init+0x1c/0x2b0 init/main.c:1469 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff8880568e2700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880568e2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880568e2800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880568e2880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880568e2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in rht_bucket_index include/linux/rhashtable.h:122 [inline] BUG: KASAN: slab-use-after-free in rht_key_hashfn include/linux/rhashtable.h:161 [inline] BUG: KASAN: slab-use-after-free in rht_head_hashfn include/linux/rhashtable.h:174 [inline] BUG: KASAN: slab-use-after-free in __rhashtable_remove_fast_one include/linux/rhashtable.h:1007 [inline] BUG: KASAN: slab-use-after-free in __rhashtable_remove_fast include/linux/rhashtable.h:1093 [inline] BUG: KASAN: slab-use-after-free in rhashtable_remove_fast include/linux/rhashtable.h:1122 [inline] BUG: KASAN: slab-use-after-free in xfs_buf_rele_cached fs/xfs/xfs_buf.c:926 [inline] BUG: KASAN: slab-use-after-free in xfs_buf_rele+0x1148/0x1270 fs/xfs/xfs_buf.c:951 Read of size 4 at addr ffff8880568e2800 by task syz.2.2793/22469 CPU: 0 UID: 0 PID: 22469 Comm: syz.2.2793 Tainted: G B 6.17.0-rc1-syzkaller-00224-g8d561baae505 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 rht_bucket_index include/linux/rhashtable.h:122 [inline] rht_key_hashfn include/linux/rhashtable.h:161 [inline] rht_head_hashfn include/linux/rhashtable.h:174 [inline] __rhashtable_remove_fast_one include/linux/rhashtable.h:1007 [inline] __rhashtable_remove_fast include/linux/rhashtable.h:1093 [inline] rhashtable_remove_fast include/linux/rhashtable.h:1122 [inline] xfs_buf_rele_cached fs/xfs/xfs_buf.c:926 [inline] xfs_buf_rele+0x1148/0x1270 fs/xfs/xfs_buf.c:951 xfs_buftarg_shrink_scan+0x1e8/0x2f0 fs/xfs/xfs_buf.c:1653 do_shrink_slab+0x42e/0x1180 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:441 [inline] drop_slab+0x14f/0x2d0 mm/vmscan.c:459 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x440/0x570 fs/proc/proc_sysctl.c:600 iter_file_splice_write+0x918/0x1270 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1158 splice_direct_to_actor+0x345/0xa30 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x174/0x240 fs/splice.c:1227 do_sendfile+0xb06/0xe50 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1425 [inline] __se_sys_sendfile64 fs/read_write.c:1417 [inline] __x64_sys_sendfile64+0x154/0x220 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4abb38ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4abc160038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f4abb5b6270 RCX: 00007f4abb38ebe9 RDX: 0000200000002080 RSI: 0000000000000006 RDI: 0000000000000007 RBP: 00007f4abb411e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000021c R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4abb5b6308 R14: 00007f4abb5b6270 R15: 00007ffdb541f748 Allocated by task 22449: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kvmalloc_node_noprof+0x27b/0x620 mm/slub.c:5052 bucket_table_alloc.isra.0+0x83/0x460 lib/rhashtable.c:186 rhashtable_init_noprof+0x41a/0x7e0 lib/rhashtable.c:1075 xfs_perag_alloc fs/xfs/libxfs/xfs_ag.c:238 [inline] xfs_initialize_perag+0x3f3/0x5f0 fs/xfs/libxfs/xfs_ag.c:279 xfs_mountfs+0xc55/0x2130 fs/xfs/xfs_mount.c:995 xfs_fs_fill_super+0x15e0/0x1fd0 fs/xfs/xfs_super.c:1965 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1692 vfs_get_tree+0x8e/0x340 fs/super.c:1815 do_new_mount fs/namespace.c:3805 [inline] path_mount+0x1482/0x1fd0 fs/namespace.c:4120 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount fs/namespace.c:4321 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4321 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 19920: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x60/0x70 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4879 rhashtable_free_and_destroy+0x16c/0x990 lib/rhashtable.c:1173 xfs_group_free+0x172/0x3b0 fs/xfs/libxfs/xfs_group.c:171 xfs_free_perag_range+0x3c/0x60 fs/xfs/libxfs/xfs_ag.c:133 xfs_unmountfs+0x28b/0x3a0 fs/xfs/xfs_mount.c:1373 xfs_fs_put_super+0x61/0x110 fs/xfs/xfs_super.c:1247 generic_shutdown_super+0x156/0x390 fs/super.c:643 kill_block_super+0x3b/0x90 fs/super.c:1766 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2317 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1378 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880568e2800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of freed 512-byte region [ffff8880568e2800, ffff8880568e2a00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x568e0 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841c80 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841c80 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea00015a3801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 3029, tgid 3029 (kworker/u8:8), ts 100679087643, free_ts 33811114931 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab mm/slub.c:2655 [inline] new_slab+0x247/0x330 mm/slub.c:2709 ___slab_alloc+0xcf2/0x1740 mm/slub.c:3891 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3981 __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] __kmalloc_cache_noprof+0xfb/0x3e0 mm/slub.c:4391 kmalloc_noprof include/linux/slab.h:905 [inline] batadv_forw_packet_alloc+0x3ad/0x4e0 net/batman-adv/send.c:520 batadv_iv_ogm_aggregate_new+0x13c/0x4c0 net/batman-adv/bat_iv_ogm.c:571 batadv_iv_ogm_queue_add net/batman-adv/bat_iv_ogm.c:678 [inline] batadv_iv_ogm_schedule_buff+0xeb4/0x14c0 net/batman-adv/bat_iv_ogm.c:855 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:874 [inline] batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:867 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x329/0x920 net/batman-adv/bat_iv_ogm.c:1714 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 __free_pages mm/page_alloc.c:5260 [inline] free_contig_range+0x183/0x4b0 mm/page_alloc.c:7091 destroy_args+0x7f6/0xa60 mm/debug_vm_pgtable.c:958 debug_vm_pgtable+0x1a32/0x3640 mm/debug_vm_pgtable.c:1340 do_one_initcall+0x123/0x6e0 init/main.c:1269 do_initcall_level init/main.c:1331 [inline] do_initcalls init/main.c:1347 [inline] do_basic_setup init/main.c:1366 [inline] kernel_init_freeable+0x5c2/0x910 init/main.c:1579 kernel_init+0x1c/0x2b0 init/main.c:1469 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff8880568e2700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880568e2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880568e2800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880568e2880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880568e2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in rht_bucket_var include/linux/rhashtable.h:296 [inline] BUG: KASAN: slab-use-after-free in __rhashtable_remove_fast_one include/linux/rhashtable.h:1008 [inline] BUG: KASAN: slab-use-after-free in __rhashtable_remove_fast include/linux/rhashtable.h:1093 [inline] BUG: KASAN: slab-use-after-free in rhashtable_remove_fast include/linux/rhashtable.h:1122 [inline] BUG: KASAN: slab-use-after-free in xfs_buf_rele_cached fs/xfs/xfs_buf.c:926 [inline] BUG: KASAN: slab-use-after-free in xfs_buf_rele+0x11d7/0x1270 fs/xfs/xfs_buf.c:951 Read of size 4 at addr ffff8880568e2804 by task syz.2.2793/22469 CPU: 0 UID: 0 PID: 22469 Comm: syz.2.2793 Tainted: G B 6.17.0-rc1-syzkaller-00224-g8d561baae505 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 rht_bucket_var include/linux/rhashtable.h:296 [inline] __rhashtable_remove_fast_one include/linux/rhashtable.h:1008 [inline] __rhashtable_remove_fast include/linux/rhashtable.h:1093 [inline] rhashtable_remove_fast include/linux/rhashtable.h:1122 [inline] xfs_buf_rele_cached fs/xfs/xfs_buf.c:926 [inline] xfs_buf_rele+0x11d7/0x1270 fs/xfs/xfs_buf.c:951 xfs_buftarg_shrink_scan+0x1e8/0x2f0 fs/xfs/xfs_buf.c:1653 do_shrink_slab+0x42e/0x1180 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:441 [inline] drop_slab+0x14f/0x2d0 mm/vmscan.c:459 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x440/0x570 fs/proc/proc_sysctl.c:600 iter_file_splice_write+0x918/0x1270 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1158 splice_direct_to_actor+0x345/0xa30 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x174/0x240 fs/splice.c:1227 do_sendfile+0xb06/0xe50 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1425 [inline] __se_sys_sendfile64 fs/read_write.c:1417 [inline] __x64_sys_sendfile64+0x154/0x220 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4abb38ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4abc160038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f4abb5b6270 RCX: 00007f4abb38ebe9 RDX: 0000200000002080 RSI: 0000000000000006 RDI: 0000000000000007 RBP: 00007f4abb411e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000021c R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4abb5b6308 R14: 00007f4abb5b6270 R15: 00007ffdb541f748 Allocated by task 22449: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kvmalloc_node_noprof+0x27b/0x620 mm/slub.c:5052 bucket_table_alloc.isra.0+0x83/0x460 lib/rhashtable.c:186 rhashtable_init_noprof+0x41a/0x7e0 lib/rhashtable.c:1075 xfs_perag_alloc fs/xfs/libxfs/xfs_ag.c:238 [inline] xfs_initialize_perag+0x3f3/0x5f0 fs/xfs/libxfs/xfs_ag.c:279 xfs_mountfs+0xc55/0x2130 fs/xfs/xfs_mount.c:995 xfs_fs_fill_super+0x15e0/0x1fd0 fs/xfs/xfs_super.c:1965 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1692 vfs_get_tree+0x8e/0x340 fs/super.c:1815 do_new_mount fs/namespace.c:3805 [inline] path_mount+0x1482/0x1fd0 fs/namespace.c:4120 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount fs/namespace.c:4321 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4321 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 19920: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x60/0x70 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4879 rhashtable_free_and_destroy+0x16c/0x990 lib/rhashtable.c:1173 xfs_group_free+0x172/0x3b0 fs/xfs/libxfs/xfs_group.c:171 xfs_free_perag_range+0x3c/0x60 fs/xfs/libxfs/xfs_ag.c:133 xfs_unmountfs+0x28b/0x3a0 fs/xfs/xfs_mount.c:1373 xfs_fs_put_super+0x61/0x110 fs/xfs/xfs_super.c:1247 generic_shutdown_super+0x156/0x390 fs/super.c:643 kill_block_super+0x3b/0x90 fs/super.c:1766 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2317 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1378 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880568e2800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 4 bytes inside of freed 512-byte region [ffff8880568e2800, ffff8880568e2a00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x568e0 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841c80 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841c80 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea00015a3801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 3029, tgid 3029 (kworker/u8:8), ts 100679087643, free_ts 33811114931 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab mm/slub.c:2655 [inline] new_slab+0x247/0x330 mm/slub.c:2709 ___slab_alloc+0xcf2/0x1740 mm/slub.c:3891 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3981 __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] __kmalloc_cache_noprof+0xfb/0x3e0 mm/slub.c:4391 kmalloc_noprof include/linux/slab.h:905 [inline] batadv_forw_packet_alloc+0x3ad/0x4e0 net/batman-adv/send.c:520 batadv_iv_ogm_aggregate_new+0x13c/0x4c0 net/batman-adv/bat_iv_ogm.c:571 batadv_iv_ogm_queue_add net/batman-adv/bat_iv_ogm.c:678 [inline] batadv_iv_ogm_schedule_buff+0xeb4/0x14c0 net/batman-adv/bat_iv_ogm.c:855 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:874 [inline] batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:867 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x329/0x920 net/batman-adv/bat_iv_ogm.c:1714 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 __free_pages mm/page_alloc.c:5260 [inline] free_contig_range+0x183/0x4b0 mm/page_alloc.c:7091 destroy_args+0x7f6/0xa60 mm/debug_vm_pgtable.c:958 debug_vm_pgtable+0x1a32/0x3640 mm/debug_vm_pgtable.c:1340 do_one_initcall+0x123/0x6e0 init/main.c:1269 do_initcall_level init/main.c:1331 [inline] do_initcalls init/main.c:1347 [inline] do_basic_setup init/main.c:1366 [inline] kernel_init_freeable+0x5c2/0x910 init/main.c:1579 kernel_init+0x1c/0x2b0 init/main.c:1469 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff8880568e2700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880568e2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880568e2800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880568e2880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880568e2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in __rht_bucket_nested+0x456/0x4b0 lib/rhashtable.c:1192 Read of size 4 at addr ffff8880568e2804 by task syz.2.2793/22469 CPU: 0 UID: 0 PID: 22469 Comm: syz.2.2793 Tainted: G B 6.17.0-rc1-syzkaller-00224-g8d561baae505 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 __rht_bucket_nested+0x456/0x4b0 lib/rhashtable.c:1192 rht_bucket_var include/linux/rhashtable.h:296 [inline] __rhashtable_remove_fast_one include/linux/rhashtable.h:1008 [inline] __rhashtable_remove_fast include/linux/rhashtable.h:1093 [inline] rhashtable_remove_fast include/linux/rhashtable.h:1122 [inline] xfs_buf_rele_cached fs/xfs/xfs_buf.c:926 [inline] xfs_buf_rele+0xc2c/0x1270 fs/xfs/xfs_buf.c:951 xfs_buftarg_shrink_scan+0x1e8/0x2f0 fs/xfs/xfs_buf.c:1653 do_shrink_slab+0x42e/0x1180 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:441 [inline] drop_slab+0x14f/0x2d0 mm/vmscan.c:459 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x440/0x570 fs/proc/proc_sysctl.c:600 iter_file_splice_write+0x918/0x1270 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1158 splice_direct_to_actor+0x345/0xa30 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x174/0x240 fs/splice.c:1227 do_sendfile+0xb06/0xe50 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1425 [inline] __se_sys_sendfile64 fs/read_write.c:1417 [inline] __x64_sys_sendfile64+0x154/0x220 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4abb38ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4abc160038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f4abb5b6270 RCX: 00007f4abb38ebe9 RDX: 0000200000002080 RSI: 0000000000000006 RDI: 0000000000000007 RBP: 00007f4abb411e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000021c R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4abb5b6308 R14: 00007f4abb5b6270 R15: 00007ffdb541f748 Allocated by task 22449: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kvmalloc_node_noprof+0x27b/0x620 mm/slub.c:5052 bucket_table_alloc.isra.0+0x83/0x460 lib/rhashtable.c:186 rhashtable_init_noprof+0x41a/0x7e0 lib/rhashtable.c:1075 xfs_perag_alloc fs/xfs/libxfs/xfs_ag.c:238 [inline] xfs_initialize_perag+0x3f3/0x5f0 fs/xfs/libxfs/xfs_ag.c:279 xfs_mountfs+0xc55/0x2130 fs/xfs/xfs_mount.c:995 xfs_fs_fill_super+0x15e0/0x1fd0 fs/xfs/xfs_super.c:1965 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1692 vfs_get_tree+0x8e/0x340 fs/super.c:1815 do_new_mount fs/namespace.c:3805 [inline] path_mount+0x1482/0x1fd0 fs/namespace.c:4120 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount fs/namespace.c:4321 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4321 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 19920: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x60/0x70 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4879 rhashtable_free_and_destroy+0x16c/0x990 lib/rhashtable.c:1173 xfs_group_free+0x172/0x3b0 fs/xfs/libxfs/xfs_group.c:171 xfs_free_perag_range+0x3c/0x60 fs/xfs/libxfs/xfs_ag.c:133 xfs_unmountfs+0x28b/0x3a0 fs/xfs/xfs_mount.c:1373 xfs_fs_put_super+0x61/0x110 fs/xfs/xfs_super.c:1247 generic_shutdown_super+0x156/0x390 fs/super.c:643 kill_block_super+0x3b/0x90 fs/super.c:1766 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2317 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1378 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880568e2800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 4 bytes inside of freed 512-byte region [ffff8880568e2800, ffff8880568e2a00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x568e0 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841c80 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841c80 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea00015a3801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 3029, tgid 3029 (kworker/u8:8), ts 100679087643, free_ts 33811114931 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab mm/slub.c:2655 [inline] new_slab+0x247/0x330 mm/slub.c:2709 ___slab_alloc+0xcf2/0x1740 mm/slub.c:3891 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3981 __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] __kmalloc_cache_noprof+0xfb/0x3e0 mm/slub.c:4391 kmalloc_noprof include/linux/slab.h:905 [inline] batadv_forw_packet_alloc+0x3ad/0x4e0 net/batman-adv/send.c:520 batadv_iv_ogm_aggregate_new+0x13c/0x4c0 net/batman-adv/bat_iv_ogm.c:571 batadv_iv_ogm_queue_add net/batman-adv/bat_iv_ogm.c:678 [inline] batadv_iv_ogm_schedule_buff+0xeb4/0x14c0 net/batman-adv/bat_iv_ogm.c:855 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:874 [inline] batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:867 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x329/0x920 net/batman-adv/bat_iv_ogm.c:1714 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 __free_pages mm/page_alloc.c:5260 [inline] free_contig_range+0x183/0x4b0 mm/page_alloc.c:7091 destroy_args+0x7f6/0xa60 mm/debug_vm_pgtable.c:958 debug_vm_pgtable+0x1a32/0x3640 mm/debug_vm_pgtable.c:1340 do_one_initcall+0x123/0x6e0 init/main.c:1269 do_initcall_level init/main.c:1331 [inline] do_initcalls init/main.c:1347 [inline] do_basic_setup init/main.c:1366 [inline] kernel_init_freeable+0x5c2/0x910 init/main.c:1579 kernel_init+0x1c/0x2b0 init/main.c:1469 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff8880568e2700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880568e2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880568e2800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880568e2880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880568e2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ UBSAN: shift-out-of-bounds in lib/rhashtable.c:1192:34 shift exponent 4294936704 is too large for 32-bit type 'int' CPU: 0 UID: 0 PID: 22469 Comm: syz.2.2793 Tainted: G B 6.17.0-rc1-syzkaller-00224-g8d561baae505 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:233 [inline] __ubsan_handle_shift_out_of_bounds+0x27f/0x420 lib/ubsan.c:494 __rht_bucket_nested.cold+0x18/0x148 lib/rhashtable.c:1192 rht_bucket_var include/linux/rhashtable.h:296 [inline] __rhashtable_remove_fast_one include/linux/rhashtable.h:1008 [inline] __rhashtable_remove_fast include/linux/rhashtable.h:1093 [inline] rhashtable_remove_fast include/linux/rhashtable.h:1122 [inline] xfs_buf_rele_cached fs/xfs/xfs_buf.c:926 [inline] xfs_buf_rele+0xc2c/0x1270 fs/xfs/xfs_buf.c:951 xfs_buftarg_shrink_scan+0x1e8/0x2f0 fs/xfs/xfs_buf.c:1653 do_shrink_slab+0x42e/0x1180 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:441 [inline] drop_slab+0x14f/0x2d0 mm/vmscan.c:459 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x440/0x570 fs/proc/proc_sysctl.c:600 iter_file_splice_write+0x918/0x1270 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1158 splice_direct_to_actor+0x345/0xa30 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x174/0x240 fs/splice.c:1227 do_sendfile+0xb06/0xe50 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1425 [inline] __se_sys_sendfile64 fs/read_write.c:1417 [inline] __x64_sys_sendfile64+0x154/0x220 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4abb38ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4abc160038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f4abb5b6270 RCX: 00007f4abb38ebe9 RDX: 0000200000002080 RSI: 0000000000000006 RDI: 0000000000000007 RBP: 00007f4abb411e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000021c R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4abb5b6308 R14: 00007f4abb5b6270 R15: 00007ffdb541f748 ---[ end trace ]---