Date
July 3, 2025, 10:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 44.799808] ================================================================== [ 44.810321] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x64/0x70 [ 44.817111] Read of size 4 at addr ffff000084091980 by task swapper/5/0 [ 44.823809] [ 44.825339] CPU: 5 UID: 0 PID: 0 Comm: swapper/5 Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT [ 44.825369] Tainted: [B]=BAD_PAGE, [N]=TEST [ 44.825378] Hardware name: Thundercomm Dragonboard 845c (DT) [ 44.825388] Call trace: [ 44.825395] show_stack+0x20/0x38 (C) [ 44.825413] dump_stack_lvl+0x8c/0xd0 [ 44.825433] print_report+0x118/0x608 [ 44.825453] kasan_report+0xdc/0x128 [ 44.825472] __asan_report_load4_noabort+0x20/0x30 [ 44.825488] rcu_uaf_reclaim+0x64/0x70 [ 44.825504] rcu_core+0x9f4/0x1e20 [ 44.825523] rcu_core_si+0x18/0x30 [ 44.825538] handle_softirqs+0x374/0xb28 [ 44.825558] __do_softirq+0x1c/0x28 [ 44.825571] ____do_softirq+0x18/0x30 [ 44.825589] call_on_irq_stack+0x24/0x30 [ 44.825605] do_softirq_own_stack+0x24/0x38 [ 44.825623] __irq_exit_rcu+0x1fc/0x318 [ 44.825639] irq_exit_rcu+0x1c/0x80 [ 44.825655] el1_interrupt+0x38/0x58 [ 44.825670] el1h_64_irq_handler+0x18/0x28 [ 44.825685] el1h_64_irq+0x6c/0x70 [ 44.825700] arch_local_irq_enable+0x4/0x8 (P) [ 44.825722] cpuidle_enter+0x60/0xb8 [ 44.825738] do_idle+0x36c/0x4e8 [ 44.825757] cpu_startup_entry+0x68/0x80 [ 44.825774] secondary_start_kernel+0x288/0x340 [ 44.825792] __secondary_switched+0xc0/0xc8 [ 44.825815] [ 44.942766] Allocated by task 307: [ 44.946219] kasan_save_stack+0x3c/0x68 [ 44.950126] kasan_save_track+0x20/0x40 [ 44.954032] kasan_save_alloc_info+0x40/0x58 [ 44.958367] __kasan_kmalloc+0xd4/0xd8 [ 44.962181] __kmalloc_cache_noprof+0x16c/0x3c0 [ 44.966780] rcu_uaf+0xb0/0x2d8 [ 44.969973] kunit_try_run_case+0x170/0x3f0 [ 44.974224] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.979784] kthread+0x328/0x630 [ 44.983070] ret_from_fork+0x10/0x20 [ 44.986703] [ 44.988233] Freed by task 0: [ 44.991165] kasan_save_stack+0x3c/0x68 [ 44.995068] kasan_save_track+0x20/0x40 [ 44.998973] kasan_save_free_info+0x4c/0x78 [ 45.003216] __kasan_slab_free+0x6c/0x98 [ 45.007207] kfree+0x214/0x3c8 [ 45.010317] rcu_uaf_reclaim+0x28/0x70 [ 45.014130] rcu_core+0x9f4/0x1e20 [ 45.017597] rcu_core_si+0x18/0x30 [ 45.021054] handle_softirqs+0x374/0xb28 [ 45.025043] __do_softirq+0x1c/0x28 [ 45.028595] [ 45.030118] Last potentially related work creation: [ 45.035063] kasan_save_stack+0x3c/0x68 [ 45.038968] kasan_record_aux_stack+0xb4/0xc8 [ 45.043394] __call_rcu_common.constprop.0+0x74/0x8c8 [ 45.048523] call_rcu+0x18/0x30 [ 45.051718] rcu_uaf+0x14c/0x2d8 [ 45.055004] kunit_try_run_case+0x170/0x3f0 [ 45.059250] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 45.064811] kthread+0x328/0x630 [ 45.068092] ret_from_fork+0x10/0x20 [ 45.071733] [ 45.073257] The buggy address belongs to the object at ffff000084091980 [ 45.073257] which belongs to the cache kmalloc-32 of size 32 [ 45.085734] The buggy address is located 0 bytes inside of [ 45.085734] freed 32-byte region [ffff000084091980, ffff0000840919a0) [ 45.097866] [ 45.099395] The buggy address belongs to the physical page: [ 45.105036] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104091 [ 45.113139] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 45.119748] page_type: f5(slab) [ 45.122949] raw: 0bfffe0000000000 ffff000080002780 fffffdffc21098c0 dead000000000002 [ 45.130789] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 45.138623] page dumped because: kasan: bad access detected [ 45.144270] [ 45.145793] Memory state around the buggy address: [ 45.150648] ffff000084091880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 45.157956] ffff000084091900: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 45.165264] >ffff000084091980: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 45.172569] ^ [ 45.175850] ffff000084091a00: 00 00 05 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 45.183160] ffff000084091a80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 45.190467] ==================================================================
[ 31.565875] ================================================================== [ 31.566020] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x64/0x70 [ 31.566093] Read of size 4 at addr fff00000c9b4b440 by task swapper/0/0 [ 31.566140] [ 31.566180] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT [ 31.566268] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.566295] Hardware name: linux,dummy-virt (DT) [ 31.566330] Call trace: [ 31.566353] show_stack+0x20/0x38 (C) [ 31.566405] dump_stack_lvl+0x8c/0xd0 [ 31.566456] print_report+0x118/0x608 [ 31.566505] kasan_report+0xdc/0x128 [ 31.566551] __asan_report_load4_noabort+0x20/0x30 [ 31.566599] rcu_uaf_reclaim+0x64/0x70 [ 31.566644] rcu_core+0x9f4/0x1e20 [ 31.569183] rcu_core_si+0x18/0x30 [ 31.569268] handle_softirqs+0x374/0xb28 [ 31.569327] __do_softirq+0x1c/0x28 [ 31.569373] ____do_softirq+0x18/0x30 [ 31.569419] call_on_irq_stack+0x24/0x30 [ 31.569465] do_softirq_own_stack+0x24/0x38 [ 31.569513] __irq_exit_rcu+0x1fc/0x318 [ 31.569560] irq_exit_rcu+0x1c/0x80 [ 31.569605] el1_interrupt+0x38/0x58 [ 31.569653] el1h_64_irq_handler+0x18/0x28 [ 31.569700] el1h_64_irq+0x6c/0x70 [ 31.570402] arch_local_irq_enable+0x4/0x8 (P) [ 31.570489] do_idle+0x384/0x4e8 [ 31.570800] cpu_startup_entry+0x64/0x80 [ 31.570895] rest_init+0x160/0x188 [ 31.571330] start_kernel+0x30c/0x3d0 [ 31.571462] __primary_switched+0x8c/0xa0 [ 31.571879] [ 31.571916] Allocated by task 230: [ 31.571948] kasan_save_stack+0x3c/0x68 [ 31.572190] kasan_save_track+0x20/0x40 [ 31.572233] kasan_save_alloc_info+0x40/0x58 [ 31.572272] __kasan_kmalloc+0xd4/0xd8 [ 31.572607] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.573758] rcu_uaf+0xb0/0x2d8 [ 31.574108] kunit_try_run_case+0x170/0x3f0 [ 31.574163] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.574765] kthread+0x328/0x630 [ 31.574817] ret_from_fork+0x10/0x20 [ 31.574894] [ 31.574914] Freed by task 0: [ 31.574943] kasan_save_stack+0x3c/0x68 [ 31.574985] kasan_save_track+0x20/0x40 [ 31.575172] kasan_save_free_info+0x4c/0x78 [ 31.575535] __kasan_slab_free+0x6c/0x98 [ 31.575622] kfree+0x214/0x3c8 [ 31.575658] rcu_uaf_reclaim+0x28/0x70 [ 31.575695] rcu_core+0x9f4/0x1e20 [ 31.575732] rcu_core_si+0x18/0x30 [ 31.575767] handle_softirqs+0x374/0xb28 [ 31.575805] __do_softirq+0x1c/0x28 [ 31.576482] [ 31.576542] Last potentially related work creation: [ 31.576591] kasan_save_stack+0x3c/0x68 [ 31.576729] kasan_record_aux_stack+0xb4/0xc8 [ 31.576771] __call_rcu_common.constprop.0+0x74/0x8c8 [ 31.577085] call_rcu+0x18/0x30 [ 31.577130] rcu_uaf+0x14c/0x2d8 [ 31.577562] kunit_try_run_case+0x170/0x3f0 [ 31.577627] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.577706] kthread+0x328/0x630 [ 31.577809] ret_from_fork+0x10/0x20 [ 31.577908] [ 31.577937] The buggy address belongs to the object at fff00000c9b4b440 [ 31.577937] which belongs to the cache kmalloc-32 of size 32 [ 31.578481] The buggy address is located 0 bytes inside of [ 31.578481] freed 32-byte region [fff00000c9b4b440, fff00000c9b4b460) [ 31.578551] [ 31.578865] The buggy address belongs to the physical page: [ 31.578910] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b4b [ 31.578977] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.579400] page_type: f5(slab) [ 31.579539] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 31.579647] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 31.579693] page dumped because: kasan: bad access detected [ 31.579790] [ 31.579808] Memory state around the buggy address: [ 31.579853] fff00000c9b4b300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 31.580150] fff00000c9b4b380: 00 00 00 fc fc fc fc fc 00 00 05 fc fc fc fc fc [ 31.580346] >fff00000c9b4b400: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 31.580533] ^ [ 31.580574] fff00000c9b4b480: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.580655] fff00000c9b4b500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.580718] ==================================================================
[ 23.710369] ================================================================== [ 23.710848] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x50/0x60 [ 23.711071] Read of size 4 at addr ffff888105ac1580 by task swapper/0/0 [ 23.712377] [ 23.712625] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) [ 23.712678] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.712690] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.712720] Call Trace: [ 23.712750] <IRQ> [ 23.712767] dump_stack_lvl+0x73/0xb0 [ 23.712799] print_report+0xd1/0x650 [ 23.712821] ? __virt_addr_valid+0x1db/0x2d0 [ 23.712845] ? rcu_uaf_reclaim+0x50/0x60 [ 23.712864] ? kasan_complete_mode_report_info+0x64/0x200 [ 23.712889] ? rcu_uaf_reclaim+0x50/0x60 [ 23.712909] kasan_report+0x141/0x180 [ 23.712930] ? rcu_uaf_reclaim+0x50/0x60 [ 23.712955] __asan_report_load4_noabort+0x18/0x20 [ 23.712979] rcu_uaf_reclaim+0x50/0x60 [ 23.713000] rcu_core+0x66f/0x1c40 [ 23.713030] ? __pfx_rcu_core+0x10/0x10 [ 23.713051] ? ktime_get+0x6b/0x150 [ 23.713073] ? handle_softirqs+0x18e/0x730 [ 23.713097] rcu_core_si+0x12/0x20 [ 23.713117] handle_softirqs+0x209/0x730 [ 23.713312] ? hrtimer_interrupt+0x2fe/0x780 [ 23.713351] ? __pfx_handle_softirqs+0x10/0x10 [ 23.713378] __irq_exit_rcu+0xc9/0x110 [ 23.713441] irq_exit_rcu+0x12/0x20 [ 23.713471] sysvec_apic_timer_interrupt+0x81/0x90 [ 23.713496] </IRQ> [ 23.713530] <TASK> [ 23.713541] asm_sysvec_apic_timer_interrupt+0x1f/0x30 [ 23.713634] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 23.713849] Code: 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d a3 df 19 00 fb f4 <e9> 7c 1d 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 23.713929] RSP: 0000:ffffffffb8807dd8 EFLAGS: 00010202 [ 23.714017] RAX: ffff8881a142d000 RBX: ffffffffb881cac0 RCX: ffffffffb76ed225 [ 23.714061] RDX: ffffed102b606193 RSI: 0000000000000004 RDI: 0000000000140f14 [ 23.714104] RBP: ffffffffb8807de0 R08: 0000000000000001 R09: ffffed102b606192 [ 23.714175] R10: ffff88815b030c93 R11: ffffffffb9c08700 R12: 0000000000000000 [ 23.714255] R13: fffffbfff7103958 R14: ffffffffb93e77d0 R15: 0000000000000000 [ 23.714314] ? ct_kernel_exit.constprop.0+0xa5/0xd0 [ 23.714372] ? default_idle+0xd/0x20 [ 23.714394] arch_cpu_idle+0xd/0x20 [ 23.714416] default_idle_call+0x48/0x80 [ 23.714437] do_idle+0x379/0x4f0 [ 23.714474] ? __pfx_do_idle+0x10/0x10 [ 23.714502] cpu_startup_entry+0x5c/0x70 [ 23.714525] rest_init+0x11a/0x140 [ 23.714545] ? acpi_subsystem_init+0x5d/0x150 [ 23.714570] start_kernel+0x352/0x400 [ 23.714595] x86_64_start_reservations+0x1c/0x30 [ 23.714619] x86_64_start_kernel+0x10d/0x120 [ 23.714642] common_startup_64+0x13e/0x148 [ 23.714679] </TASK> [ 23.714691] [ 23.732900] Allocated by task 247: [ 23.733063] kasan_save_stack+0x45/0x70 [ 23.733681] kasan_save_track+0x18/0x40 [ 23.733873] kasan_save_alloc_info+0x3b/0x50 [ 23.734135] __kasan_kmalloc+0xb7/0xc0 [ 23.734608] __kmalloc_cache_noprof+0x189/0x420 [ 23.734898] rcu_uaf+0xb0/0x330 [ 23.735218] kunit_try_run_case+0x1a5/0x480 [ 23.735544] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.735880] kthread+0x337/0x6f0 [ 23.736064] ret_from_fork+0x116/0x1d0 [ 23.736492] ret_from_fork_asm+0x1a/0x30 [ 23.736689] [ 23.736757] Freed by task 0: [ 23.737106] kasan_save_stack+0x45/0x70 [ 23.737576] kasan_save_track+0x18/0x40 [ 23.737874] kasan_save_free_info+0x3f/0x60 [ 23.738182] __kasan_slab_free+0x56/0x70 [ 23.738550] kfree+0x222/0x3f0 [ 23.738708] rcu_uaf_reclaim+0x1f/0x60 [ 23.738886] rcu_core+0x66f/0x1c40 [ 23.739016] rcu_core_si+0x12/0x20 [ 23.739190] handle_softirqs+0x209/0x730 [ 23.739835] __irq_exit_rcu+0xc9/0x110 [ 23.740141] irq_exit_rcu+0x12/0x20 [ 23.740380] sysvec_apic_timer_interrupt+0x81/0x90 [ 23.740681] asm_sysvec_apic_timer_interrupt+0x1f/0x30 [ 23.740983] [ 23.741228] Last potentially related work creation: [ 23.741464] kasan_save_stack+0x45/0x70 [ 23.741645] kasan_record_aux_stack+0xb2/0xc0 [ 23.742089] __call_rcu_common.constprop.0+0x7b/0x9e0 [ 23.742502] call_rcu+0x12/0x20 [ 23.742776] rcu_uaf+0x168/0x330 [ 23.743115] kunit_try_run_case+0x1a5/0x480 [ 23.743511] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.743765] kthread+0x337/0x6f0 [ 23.743885] ret_from_fork+0x116/0x1d0 [ 23.744074] ret_from_fork_asm+0x1a/0x30 [ 23.744611] [ 23.744720] The buggy address belongs to the object at ffff888105ac1580 [ 23.744720] which belongs to the cache kmalloc-32 of size 32 [ 23.745593] The buggy address is located 0 bytes inside of [ 23.745593] freed 32-byte region [ffff888105ac1580, ffff888105ac15a0) [ 23.746571] [ 23.746679] The buggy address belongs to the physical page: [ 23.747082] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ac1 [ 23.747792] flags: 0x200000000000000(node=0|zone=2) [ 23.748110] page_type: f5(slab) [ 23.748378] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 23.748703] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 23.749027] page dumped because: kasan: bad access detected [ 23.749259] [ 23.749689] Memory state around the buggy address: [ 23.749875] ffff888105ac1480: 00 00 00 fc fc fc fc fc 00 00 05 fc fc fc fc fc [ 23.750507] ffff888105ac1500: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 23.750882] >ffff888105ac1580: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 23.751433] ^ [ 23.751617] ffff888105ac1600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.752107] ffff888105ac1680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.752666] ==================================================================