Date
June 26, 2025, 9:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 43.967327] ================================================================== [ 43.977839] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x64/0x70 [ 43.984637] Read of size 4 at addr ffff0000950f6e80 by task swapper/0/0 [ 43.991342] [ 43.992882] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 43.992912] Tainted: [B]=BAD_PAGE, [N]=TEST [ 43.992920] Hardware name: Thundercomm Dragonboard 845c (DT) [ 43.992932] Call trace: [ 43.992941] show_stack+0x20/0x38 (C) [ 43.992959] dump_stack_lvl+0x8c/0xd0 [ 43.992979] print_report+0x118/0x608 [ 43.992997] kasan_report+0xdc/0x128 [ 43.993016] __asan_report_load4_noabort+0x20/0x30 [ 43.993034] rcu_uaf_reclaim+0x64/0x70 [ 43.993051] rcu_core+0x9f4/0x1e20 [ 43.993072] rcu_core_si+0x18/0x30 [ 43.993090] handle_softirqs+0x374/0xb28 [ 43.993112] __do_softirq+0x1c/0x28 [ 43.993128] ____do_softirq+0x18/0x30 [ 43.993146] call_on_irq_stack+0x24/0x30 [ 43.993163] do_softirq_own_stack+0x24/0x38 [ 43.993183] __irq_exit_rcu+0x1fc/0x318 [ 43.993200] irq_exit_rcu+0x1c/0x80 [ 43.993218] el1_interrupt+0x38/0x58 [ 43.993241] el1h_64_irq_handler+0x18/0x28 [ 43.993262] el1h_64_irq+0x6c/0x70 [ 43.993278] arch_local_irq_enable+0x4/0x8 (P) [ 43.993300] cpuidle_enter+0x60/0xb8 [ 43.993317] do_idle+0x36c/0x4e8 [ 43.993339] cpu_startup_entry+0x64/0x80 [ 43.993357] rest_init+0x160/0x188 [ 43.993376] start_kernel+0x30c/0x3d0 [ 43.993401] __primary_switched+0x8c/0xa0 [ 43.993423] [ 44.112817] Allocated by task 284: [ 44.116278] kasan_save_stack+0x3c/0x68 [ 44.120189] kasan_save_track+0x20/0x40 [ 44.124099] kasan_save_alloc_info+0x40/0x58 [ 44.128438] __kasan_kmalloc+0xd4/0xd8 [ 44.132262] __kmalloc_cache_noprof+0x16c/0x3c0 [ 44.136863] rcu_uaf+0xb0/0x2d8 [ 44.140069] kunit_try_run_case+0x170/0x3f0 [ 44.144325] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.149901] kthread+0x328/0x630 [ 44.153192] ret_from_fork+0x10/0x20 [ 44.156833] [ 44.158362] Freed by task 0: [ 44.161293] kasan_save_stack+0x3c/0x68 [ 44.165204] kasan_save_track+0x20/0x40 [ 44.169115] kasan_save_free_info+0x4c/0x78 [ 44.173367] __kasan_slab_free+0x6c/0x98 [ 44.177365] kfree+0x214/0x3c8 [ 44.180483] rcu_uaf_reclaim+0x28/0x70 [ 44.184304] rcu_core+0x9f4/0x1e20 [ 44.187775] rcu_core_si+0x18/0x30 [ 44.191244] handle_softirqs+0x374/0xb28 [ 44.195242] __do_softirq+0x1c/0x28 [ 44.198792] [ 44.200327] Last potentially related work creation: [ 44.205274] kasan_save_stack+0x3c/0x68 [ 44.209185] kasan_record_aux_stack+0xb4/0xc8 [ 44.213610] __call_rcu_common.constprop.0+0x74/0x8c8 [ 44.218741] call_rcu+0x18/0x30 [ 44.221947] rcu_uaf+0x14c/0x2d8 [ 44.225241] kunit_try_run_case+0x170/0x3f0 [ 44.229497] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.235070] kthread+0x328/0x630 [ 44.238363] ret_from_fork+0x10/0x20 [ 44.242002] [ 44.243531] The buggy address belongs to the object at ffff0000950f6e80 [ 44.243531] which belongs to the cache kmalloc-32 of size 32 [ 44.256021] The buggy address is located 0 bytes inside of [ 44.256021] freed 32-byte region [ffff0000950f6e80, ffff0000950f6ea0) [ 44.268160] [ 44.269691] The buggy address belongs to the physical page: [ 44.275342] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1150f6 [ 44.283450] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 44.290065] page_type: f5(slab) [ 44.293270] raw: 0bfffe0000000000 ffff000080002780 dead000000000122 0000000000000000 [ 44.301117] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 44.308960] page dumped because: kasan: bad access detected [ 44.314611] [ 44.316146] Memory state around the buggy address: [ 44.321010] ffff0000950f6d80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 44.328325] ffff0000950f6e00: 00 00 05 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 44.335645] >ffff0000950f6e80: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 44.342957] ^ [ 44.346247] ffff0000950f6f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.353561] ffff0000950f6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.360874] ==================================================================
[ 27.366726] ================================================================== [ 27.367418] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x64/0x70 [ 27.368460] Read of size 4 at addr fff00000c5752ec0 by task swapper/0/0 [ 27.368719] [ 27.369216] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 27.369660] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.370243] Hardware name: linux,dummy-virt (DT) [ 27.370424] Call trace: [ 27.370456] show_stack+0x20/0x38 (C) [ 27.370610] dump_stack_lvl+0x8c/0xd0 [ 27.371228] print_report+0x118/0x608 [ 27.371296] kasan_report+0xdc/0x128 [ 27.371815] __asan_report_load4_noabort+0x20/0x30 [ 27.371874] rcu_uaf_reclaim+0x64/0x70 [ 27.371928] rcu_core+0x9f4/0x1e20 [ 27.371975] rcu_core_si+0x18/0x30 [ 27.372019] handle_softirqs+0x374/0xb28 [ 27.372075] __do_softirq+0x1c/0x28 [ 27.372472] ____do_softirq+0x18/0x30 [ 27.372634] call_on_irq_stack+0x24/0x30 [ 27.372781] do_softirq_own_stack+0x24/0x38 [ 27.372830] __irq_exit_rcu+0x1fc/0x318 [ 27.373097] irq_exit_rcu+0x1c/0x80 [ 27.373327] el1_interrupt+0x38/0x58 [ 27.373598] el1h_64_irq_handler+0x18/0x28 [ 27.373827] el1h_64_irq+0x6c/0x70 [ 27.374549] arch_local_irq_enable+0x4/0x8 (P) [ 27.374792] do_idle+0x384/0x4e8 [ 27.374978] cpu_startup_entry+0x68/0x80 [ 27.375041] rest_init+0x160/0x188 [ 27.375099] start_kernel+0x30c/0x3d0 [ 27.375665] __primary_switched+0x8c/0xa0 [ 27.375724] [ 27.375742] Allocated by task 210: [ 27.375782] kasan_save_stack+0x3c/0x68 [ 27.375823] kasan_save_track+0x20/0x40 [ 27.376362] kasan_save_alloc_info+0x40/0x58 [ 27.376410] __kasan_kmalloc+0xd4/0xd8 [ 27.376573] __kmalloc_cache_noprof+0x16c/0x3c0 [ 27.376616] rcu_uaf+0xb0/0x2d8 [ 27.376649] kunit_try_run_case+0x170/0x3f0 [ 27.377135] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.377183] kthread+0x328/0x630 [ 27.377222] ret_from_fork+0x10/0x20 [ 27.377717] [ 27.377787] Freed by task 0: [ 27.378246] kasan_save_stack+0x3c/0x68 [ 27.378352] kasan_save_track+0x20/0x40 [ 27.378545] kasan_save_free_info+0x4c/0x78 [ 27.378585] __kasan_slab_free+0x6c/0x98 [ 27.378624] kfree+0x214/0x3c8 [ 27.379006] rcu_uaf_reclaim+0x28/0x70 [ 27.379196] rcu_core+0x9f4/0x1e20 [ 27.379240] rcu_core_si+0x18/0x30 [ 27.379276] handle_softirqs+0x374/0xb28 [ 27.379439] __do_softirq+0x1c/0x28 [ 27.379497] [ 27.379751] Last potentially related work creation: [ 27.380036] kasan_save_stack+0x3c/0x68 [ 27.380109] kasan_record_aux_stack+0xb4/0xc8 [ 27.380265] __call_rcu_common.constprop.0+0x74/0x8c8 [ 27.380380] call_rcu+0x18/0x30 [ 27.380465] rcu_uaf+0x14c/0x2d8 [ 27.380631] kunit_try_run_case+0x170/0x3f0 [ 27.380755] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.380801] kthread+0x328/0x630 [ 27.380833] ret_from_fork+0x10/0x20 [ 27.380879] [ 27.381607] The buggy address belongs to the object at fff00000c5752ec0 [ 27.381607] which belongs to the cache kmalloc-32 of size 32 [ 27.381772] The buggy address is located 0 bytes inside of [ 27.381772] freed 32-byte region [fff00000c5752ec0, fff00000c5752ee0) [ 27.381841] [ 27.381862] The buggy address belongs to the physical page: [ 27.382419] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105752 [ 27.382575] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 27.382642] page_type: f5(slab) [ 27.382997] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 27.383063] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 27.383452] page dumped because: kasan: bad access detected [ 27.383763] [ 27.383867] Memory state around the buggy address: [ 27.383903] fff00000c5752d80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 27.384220] fff00000c5752e00: 00 00 05 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 27.384344] >fff00000c5752e80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 27.384381] ^ [ 27.384418] fff00000c5752f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.384460] fff00000c5752f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.384497] ==================================================================
[ 22.675086] ================================================================== [ 22.675624] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x50/0x60 [ 22.675885] Read of size 4 at addr ffff8881024d9480 by task swapper/0/0 [ 22.676106] [ 22.676317] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) [ 22.676376] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.676388] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.676413] Call Trace: [ 22.676445] <IRQ> [ 22.676469] dump_stack_lvl+0x73/0xb0 [ 22.676505] print_report+0xd1/0x650 [ 22.676527] ? __virt_addr_valid+0x1db/0x2d0 [ 22.676553] ? rcu_uaf_reclaim+0x50/0x60 [ 22.676573] ? kasan_complete_mode_report_info+0x64/0x200 [ 22.676597] ? rcu_uaf_reclaim+0x50/0x60 [ 22.676617] kasan_report+0x141/0x180 [ 22.676638] ? rcu_uaf_reclaim+0x50/0x60 [ 22.676661] __asan_report_load4_noabort+0x18/0x20 [ 22.676684] rcu_uaf_reclaim+0x50/0x60 [ 22.676703] rcu_core+0x66f/0x1c40 [ 22.676733] ? __pfx_rcu_core+0x10/0x10 [ 22.676754] ? ktime_get+0x6b/0x150 [ 22.676780] rcu_core_si+0x12/0x20 [ 22.676799] handle_softirqs+0x209/0x730 [ 22.676821] ? hrtimer_interrupt+0x2fe/0x780 [ 22.676847] ? __pfx_handle_softirqs+0x10/0x10 [ 22.676871] __irq_exit_rcu+0xc9/0x110 [ 22.676891] irq_exit_rcu+0x12/0x20 [ 22.676910] sysvec_apic_timer_interrupt+0x81/0x90 [ 22.676934] </IRQ> [ 22.676958] <TASK> [ 22.676969] asm_sysvec_apic_timer_interrupt+0x1f/0x30 [ 22.677174] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 22.677407] 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 03 00 1a 00 fb f4 <c3> cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 22.677492] RSP: 0000:ffffffffb7807dd8 EFLAGS: 00010202 [ 22.677582] RAX: ffff8881a242e000 RBX: ffffffffb781cac0 RCX: ffffffffb66eb105 [ 22.677628] RDX: ffffed102b606193 RSI: 0000000000000004 RDI: 00000000000c26b4 [ 22.677672] RBP: ffffffffb7807de0 R08: 0000000000000001 R09: ffffed102b606192 [ 22.677714] R10: ffff88815b030c93 R11: 0000000000091000 R12: 0000000000000000 [ 22.677757] R13: fffffbfff6f03958 R14: ffffffffb83eacd0 R15: 0000000000000000 [ 22.678076] ? ct_kernel_exit.constprop.0+0xa5/0xd0 [ 22.678141] ? default_idle+0xd/0x20 [ 22.678163] arch_cpu_idle+0xd/0x20 [ 22.678183] default_idle_call+0x48/0x80 [ 22.678203] do_idle+0x379/0x4f0 [ 22.678245] ? __pfx_do_idle+0x10/0x10 [ 22.678272] cpu_startup_entry+0x5c/0x70 [ 22.678296] rest_init+0x11a/0x140 [ 22.678315] ? acpi_subsystem_init+0x5d/0x150 [ 22.678340] start_kernel+0x352/0x400 [ 22.678364] x86_64_start_reservations+0x1c/0x30 [ 22.678387] x86_64_start_kernel+0x10d/0x120 [ 22.678410] common_startup_64+0x13e/0x148 [ 22.678443] </TASK> [ 22.678454] [ 22.695180] Allocated by task 227: [ 22.695402] kasan_save_stack+0x45/0x70 [ 22.695569] kasan_save_track+0x18/0x40 [ 22.695755] kasan_save_alloc_info+0x3b/0x50 [ 22.695961] __kasan_kmalloc+0xb7/0xc0 [ 22.696422] __kmalloc_cache_noprof+0x189/0x420 [ 22.696586] rcu_uaf+0xb0/0x330 [ 22.696752] kunit_try_run_case+0x1a5/0x480 [ 22.697020] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.697459] kthread+0x337/0x6f0 [ 22.697627] ret_from_fork+0x116/0x1d0 [ 22.697786] ret_from_fork_asm+0x1a/0x30 [ 22.698335] [ 22.698424] Freed by task 0: [ 22.698539] kasan_save_stack+0x45/0x70 [ 22.698739] kasan_save_track+0x18/0x40 [ 22.699209] kasan_save_free_info+0x3f/0x60 [ 22.699416] __kasan_slab_free+0x56/0x70 [ 22.699586] kfree+0x222/0x3f0 [ 22.699722] rcu_uaf_reclaim+0x1f/0x60 [ 22.699886] rcu_core+0x66f/0x1c40 [ 22.700472] rcu_core_si+0x12/0x20 [ 22.700654] handle_softirqs+0x209/0x730 [ 22.700807] __irq_exit_rcu+0xc9/0x110 [ 22.701185] irq_exit_rcu+0x12/0x20 [ 22.701335] sysvec_apic_timer_interrupt+0x81/0x90 [ 22.701571] asm_sysvec_apic_timer_interrupt+0x1f/0x30 [ 22.702177] [ 22.702327] Last potentially related work creation: [ 22.702517] kasan_save_stack+0x45/0x70 [ 22.702961] kasan_record_aux_stack+0xb2/0xc0 [ 22.703382] __call_rcu_common.constprop.0+0x7b/0x9e0 [ 22.703566] call_rcu+0x12/0x20 [ 22.703948] rcu_uaf+0x168/0x330 [ 22.704124] kunit_try_run_case+0x1a5/0x480 [ 22.704596] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.705086] kthread+0x337/0x6f0 [ 22.705271] ret_from_fork+0x116/0x1d0 [ 22.705531] ret_from_fork_asm+0x1a/0x30 [ 22.705773] [ 22.706052] The buggy address belongs to the object at ffff8881024d9480 [ 22.706052] which belongs to the cache kmalloc-32 of size 32 [ 22.706533] The buggy address is located 0 bytes inside of [ 22.706533] freed 32-byte region [ffff8881024d9480, ffff8881024d94a0) [ 22.707332] [ 22.707441] The buggy address belongs to the physical page: [ 22.707808] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024d9 [ 22.708314] flags: 0x200000000000000(node=0|zone=2) [ 22.708644] page_type: f5(slab) [ 22.708824] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 22.709180] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 22.710091] page dumped because: kasan: bad access detected [ 22.710364] [ 22.710456] Memory state around the buggy address: [ 22.710674] ffff8881024d9380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 22.711346] ffff8881024d9400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 22.711727] >ffff8881024d9480: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 22.712264] ^ [ 22.712457] ffff8881024d9500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.712994] ffff8881024d9580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.713289] ==================================================================