Hay
Date
July 14, 2025, 10:38 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   48.401648] ==================================================================
[   48.401818] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x64/0x70
[   48.401937] Read of size 4 at addr ffff000807bb5d80 by task swapper/3/0
[   48.403003] 
[   48.404489] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G    B            N  6.16.0-rc6-next-20250714 #1 PREEMPT 
[   48.404545] Tainted: [B]=BAD_PAGE, [N]=TEST
[   48.404561] Hardware name: WinLink E850-96 board (DT)
[   48.404581] Call trace:
[   48.404594]  show_stack+0x20/0x38 (C)
[   48.404630]  dump_stack_lvl+0x8c/0xd0
[   48.404665]  print_report+0x118/0x5d0
[   48.404694]  kasan_report+0xdc/0x128
[   48.404721]  __asan_report_load4_noabort+0x20/0x30
[   48.404755]  rcu_uaf_reclaim+0x64/0x70
[   48.404785]  rcu_core+0x9f4/0x1e20
[   48.404819]  rcu_core_si+0x18/0x30
[   48.404847]  handle_softirqs+0x374/0xb28
[   48.404882]  __do_softirq+0x1c/0x28
[   48.404913]  ____do_softirq+0x18/0x30
[   48.404947]  call_on_irq_stack+0x24/0x30
[   48.404977]  do_softirq_own_stack+0x24/0x38
[   48.405008]  __irq_exit_rcu+0x1fc/0x318
[   48.405038]  irq_exit_rcu+0x1c/0x80
[   48.405066]  el1_interrupt+0x38/0x58
[   48.405100]  el1h_64_irq_handler+0x18/0x28
[   48.405135]  el1h_64_irq+0x6c/0x70
[   48.405164]  arch_local_irq_enable+0x4/0x8 (P)
[   48.405199]  do_idle+0x384/0x4e8
[   48.405231]  cpu_startup_entry+0x68/0x80
[   48.405264]  secondary_start_kernel+0x28c/0x340
[   48.405295]  __secondary_switched+0xc0/0xc8
[   48.405336] 
[   48.515416] Allocated by task 282:
[   48.518802]  kasan_save_stack+0x3c/0x68
[   48.522619]  kasan_save_track+0x20/0x40
[   48.526439]  kasan_save_alloc_info+0x40/0x58
[   48.530692]  __kasan_kmalloc+0xd4/0xd8
[   48.534426]  __kmalloc_cache_noprof+0x16c/0x3c0
[   48.538938]  rcu_uaf+0xb0/0x2d8
[   48.542065]  kunit_try_run_case+0x170/0x3f0
[   48.546231]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   48.551700]  kthread+0x328/0x630
[   48.554910]  ret_from_fork+0x10/0x20
[   48.558471] 
[   48.559946] Freed by task 0:
[   48.562813]  kasan_save_stack+0x3c/0x68
[   48.566629]  kasan_save_track+0x20/0x40
[   48.570448]  kasan_save_free_info+0x4c/0x78
[   48.574615]  __kasan_slab_free+0x6c/0x98
[   48.578521]  kfree+0x214/0x3c8
[   48.581559]  rcu_uaf_reclaim+0x28/0x70
[   48.585292]  rcu_core+0x9f4/0x1e20
[   48.588677]  rcu_core_si+0x18/0x30
[   48.592064]  handle_softirqs+0x374/0xb28
[   48.595969]  __do_softirq+0x1c/0x28
[   48.599441] 
[   48.600916] Last potentially related work creation:
[   48.605779]  kasan_save_stack+0x3c/0x68
[   48.609597]  kasan_record_aux_stack+0xb4/0xc8
[   48.613937]  __call_rcu_common.constprop.0+0x74/0x8c8
[   48.618972]  call_rcu+0x18/0x30
[   48.622097]  rcu_uaf+0x14c/0x2d8
[   48.625309]  kunit_try_run_case+0x170/0x3f0
[   48.629476]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   48.634944]  kthread+0x328/0x630
[   48.638156]  ret_from_fork+0x10/0x20
[   48.641715] 
[   48.643191] The buggy address belongs to the object at ffff000807bb5d80
[   48.643191]  which belongs to the cache kmalloc-32 of size 32
[   48.655520] The buggy address is located 0 bytes inside of
[   48.655520]  freed 32-byte region [ffff000807bb5d80, ffff000807bb5da0)
[   48.667496] 
[   48.668973] The buggy address belongs to the physical page:
[   48.674531] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x887bb5
[   48.682514] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   48.689024] page_type: f5(slab)
[   48.692161] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000
[   48.699880] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   48.707599] page dumped because: kasan: bad access detected
[   48.713154] 
[   48.714631] Memory state around the buggy address:
[   48.719409]  ffff000807bb5c80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   48.726613]  ffff000807bb5d00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   48.733819] >ffff000807bb5d80: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc
[   48.741019]                    ^
[   48.744235]  ffff000807bb5e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   48.751439]  ffff000807bb5e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   48.758641] ==================================================================

[   29.961458] ==================================================================
[   29.963121] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x64/0x70
[   29.963204] Read of size 4 at addr fff00000c9adebc0 by task swapper/0/0
[   29.964358] 
[   29.964418] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G    B            N  6.16.0-rc6-next-20250714 #1 PREEMPT 
[   29.964993] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.965651] Hardware name: linux,dummy-virt (DT)
[   29.965958] Call trace:
[   29.966161]  show_stack+0x20/0x38 (C)
[   29.966798]  dump_stack_lvl+0x8c/0xd0
[   29.967340]  print_report+0x118/0x5d0
[   29.967734]  kasan_report+0xdc/0x128
[   29.967781]  __asan_report_load4_noabort+0x20/0x30
[   29.967829]  rcu_uaf_reclaim+0x64/0x70
[   29.968778]  rcu_core+0x9f4/0x1e20
[   29.968843]  rcu_core_si+0x18/0x30
[   29.969770]  handle_softirqs+0x374/0xb28
[   29.969826]  __do_softirq+0x1c/0x28
[   29.969871]  ____do_softirq+0x18/0x30
[   29.969917]  call_on_irq_stack+0x24/0x30
[   29.971427]  do_softirq_own_stack+0x24/0x38
[   29.971491]  __irq_exit_rcu+0x1fc/0x318
[   29.971539]  irq_exit_rcu+0x1c/0x80
[   29.971584]  el1_interrupt+0x38/0x58
[   29.971636]  el1h_64_irq_handler+0x18/0x28
[   29.971684]  el1h_64_irq+0x6c/0x70
[   29.971811]  arch_local_irq_enable+0x4/0x8 (P)
[   29.971864]  do_idle+0x384/0x4e8
[   29.971908]  cpu_startup_entry+0x68/0x80
[   29.971951]  rest_init+0x160/0x188
[   29.971997]  start_kernel+0x30c/0x3d0
[   29.972064]  __primary_switched+0x8c/0xa0
[   29.972393] 
[   29.972430] Allocated by task 229:
[   29.972463]  kasan_save_stack+0x3c/0x68
[   29.972510]  kasan_save_track+0x20/0x40
[   29.972716]  kasan_save_alloc_info+0x40/0x58
[   29.972762]  __kasan_kmalloc+0xd4/0xd8
[   29.972917]  __kmalloc_cache_noprof+0x16c/0x3c0
[   29.973112]  rcu_uaf+0xb0/0x2d8
[   29.973211]  kunit_try_run_case+0x170/0x3f0
[   29.973353]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.973397]  kthread+0x328/0x630
[   29.973564]  ret_from_fork+0x10/0x20
[   29.973761] 
[   29.973831] Freed by task 0:
[   29.973877]  kasan_save_stack+0x3c/0x68
[   29.974028]  kasan_save_track+0x20/0x40
[   29.974094]  kasan_save_free_info+0x4c/0x78
[   29.974135]  __kasan_slab_free+0x6c/0x98
[   29.974176]  kfree+0x214/0x3c8
[   29.974210]  rcu_uaf_reclaim+0x28/0x70
[   29.974246]  rcu_core+0x9f4/0x1e20
[   29.974306]  rcu_core_si+0x18/0x30
[   29.974415]  handle_softirqs+0x374/0xb28
[   29.974516]  __do_softirq+0x1c/0x28
[   29.974579] 
[   29.974616] Last potentially related work creation:
[   29.974694]  kasan_save_stack+0x3c/0x68
[   29.974791]  kasan_record_aux_stack+0xb4/0xc8
[   29.974830]  __call_rcu_common.constprop.0+0x74/0x8c8
[   29.974907]  call_rcu+0x18/0x30
[   29.974967]  rcu_uaf+0x14c/0x2d8
[   29.975003]  kunit_try_run_case+0x170/0x3f0
[   29.975095]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.975141]  kthread+0x328/0x630
[   29.975187]  ret_from_fork+0x10/0x20
[   29.975231] 
[   29.975260] The buggy address belongs to the object at fff00000c9adebc0
[   29.975260]  which belongs to the cache kmalloc-32 of size 32
[   29.975339] The buggy address is located 0 bytes inside of
[   29.975339]  freed 32-byte region [fff00000c9adebc0, fff00000c9adebe0)
[   29.975419] 
[   29.975443] The buggy address belongs to the physical page:
[   29.975495] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ade
[   29.975572] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.975629] page_type: f5(slab)
[   29.975674] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   29.975731] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   29.975778] page dumped because: kasan: bad access detected
[   29.975815] 
[   29.975833] Memory state around the buggy address:
[   29.975882]  fff00000c9adea80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   29.975942]  fff00000c9adeb00: 00 00 05 fc fc fc fc fc 00 00 07 fc fc fc fc fc
[   29.976002] >fff00000c9adeb80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   29.976060]                                            ^
[   29.976100]  fff00000c9adec00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.976150]  fff00000c9adec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.976196] ==================================================================

[   24.849116] ==================================================================
[   24.849706] BUG: KASAN: slab-use-after-free in rcu_uaf_reclaim+0x50/0x60
[   24.850331] Read of size 4 at addr ffff888105918ac0 by task swapper/1/0
[   24.850952] 
[   24.851121] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Tainted: G    B   W        N  6.16.0-rc6-next-20250714 #1 PREEMPT(voluntary) 
[   24.851176] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   24.851190] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.851214] Call Trace:
[   24.851247]  <IRQ>
[   24.851269]  dump_stack_lvl+0x73/0xb0
[   24.851305]  print_report+0xd1/0x610
[   24.851327]  ? __virt_addr_valid+0x1db/0x2d0
[   24.851352]  ? rcu_uaf_reclaim+0x50/0x60
[   24.851371]  ? kasan_complete_mode_report_info+0x64/0x200
[   24.851395]  ? rcu_uaf_reclaim+0x50/0x60
[   24.851414]  kasan_report+0x141/0x180
[   24.851434]  ? rcu_uaf_reclaim+0x50/0x60
[   24.851457]  __asan_report_load4_noabort+0x18/0x20
[   24.851480]  rcu_uaf_reclaim+0x50/0x60
[   24.851683]  rcu_core+0x66f/0x1c40
[   24.851724]  ? __pfx_rcu_core+0x10/0x10
[   24.851746]  ? ktime_get+0x6b/0x150
[   24.851783]  ? handle_softirqs+0x18e/0x730
[   24.851808]  rcu_core_si+0x12/0x20
[   24.851828]  handle_softirqs+0x209/0x730
[   24.851847]  ? hrtimer_interrupt+0x2fe/0x780
[   24.851870]  ? __pfx_handle_softirqs+0x10/0x10
[   24.851894]  __irq_exit_rcu+0xc9/0x110
[   24.851914]  irq_exit_rcu+0x12/0x20
[   24.851934]  sysvec_apic_timer_interrupt+0x81/0x90
[   24.852010]  </IRQ>
[   24.852020]  <TASK>
[   24.852031]  asm_sysvec_apic_timer_interrupt+0x1f/0x30
[   24.852113] RIP: 0010:pv_native_safe_halt+0xf/0x20
[   24.852143] 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 63 d2 17 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
[   24.852187] RSP: 0000:ffff88810087fdc8 EFLAGS: 00010212
[   24.852223] RAX: ffff8881bd71a000 RBX: ffff88810085b000 RCX: ffffffff94b0ea25
[   24.852243] RDX: ffffed102a8e6193 RSI: 0000000000000004 RDI: 000000000002674c
[   24.852260] RBP: ffff88810087fdd0 R08: 0000000000000001 R09: ffffed102a8e6192
[   24.852278] R10: ffff888154730c93 R11: ffff8881547363c8 R12: 0000000000000001
[   24.852296] R13: ffffed102010b600 R14: ffffffff967f4fd0 R15: 0000000000000000
[   24.852342]  ? ct_kernel_exit.constprop.0+0xa5/0xd0
[   24.852396]  ? default_idle+0xd/0x20
[   24.852415]  arch_cpu_idle+0xd/0x20
[   24.852433]  default_idle_call+0x48/0x80
[   24.852452]  do_idle+0x379/0x4f0
[   24.852477]  ? __pfx_do_idle+0x10/0x10
[   24.852498]  ? _raw_spin_unlock_irqrestore+0x49/0x90
[   24.852522]  ? complete+0x15b/0x1d0
[   24.852547]  cpu_startup_entry+0x5c/0x70
[   24.852569]  start_secondary+0x211/0x290
[   24.852592]  ? __pfx_start_secondary+0x10/0x10
[   24.852617]  common_startup_64+0x13e/0x148
[   24.852651]  </TASK>
[   24.852677] 
[   24.868258] Allocated by task 247:
[   24.868455]  kasan_save_stack+0x45/0x70
[   24.868653]  kasan_save_track+0x18/0x40
[   24.868901]  kasan_save_alloc_info+0x3b/0x50
[   24.869053]  __kasan_kmalloc+0xb7/0xc0
[   24.869260]  __kmalloc_cache_noprof+0x189/0x420
[   24.869571]  rcu_uaf+0xb0/0x330
[   24.869705]  kunit_try_run_case+0x1a5/0x480
[   24.870002]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.870303]  kthread+0x337/0x6f0
[   24.870556]  ret_from_fork+0x116/0x1d0
[   24.870805]  ret_from_fork_asm+0x1a/0x30
[   24.870947] 
[   24.871012] Freed by task 0:
[   24.871179]  kasan_save_stack+0x45/0x70
[   24.871472]  kasan_save_track+0x18/0x40
[   24.871652]  kasan_save_free_info+0x3f/0x60
[   24.871978]  __kasan_slab_free+0x56/0x70
[   24.872379]  kfree+0x222/0x3f0
[   24.872531]  rcu_uaf_reclaim+0x1f/0x60
[   24.872714]  rcu_core+0x66f/0x1c40
[   24.872901]  rcu_core_si+0x12/0x20
[   24.873021]  handle_softirqs+0x209/0x730
[   24.873152]  __irq_exit_rcu+0xc9/0x110
[   24.873325]  irq_exit_rcu+0x12/0x20
[   24.873502]  sysvec_apic_timer_interrupt+0x81/0x90
[   24.874036]  asm_sysvec_apic_timer_interrupt+0x1f/0x30
[   24.874236] 
[   24.874353] Last potentially related work creation:
[   24.874570]  kasan_save_stack+0x45/0x70
[   24.874771]  kasan_record_aux_stack+0xb2/0xc0
[   24.875433]  __call_rcu_common.constprop.0+0x7b/0x9e0
[   24.876027]  call_rcu+0x12/0x20
[   24.876384]  rcu_uaf+0x168/0x330
[   24.876734]  kunit_try_run_case+0x1a5/0x480
[   24.876949]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.877182]  kthread+0x337/0x6f0
[   24.877634]  ret_from_fork+0x116/0x1d0
[   24.877922]  ret_from_fork_asm+0x1a/0x30
[   24.878335] 
[   24.878442] The buggy address belongs to the object at ffff888105918ac0
[   24.878442]  which belongs to the cache kmalloc-32 of size 32
[   24.879230] The buggy address is located 0 bytes inside of
[   24.879230]  freed 32-byte region [ffff888105918ac0, ffff888105918ae0)
[   24.880524] 
[   24.880830] The buggy address belongs to the physical page:
[   24.881308] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105918
[   24.882090] flags: 0x200000000000000(node=0|zone=2)
[   24.882569] page_type: f5(slab)
[   24.882920] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   24.883648] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   24.884467] page dumped because: kasan: bad access detected
[   24.885337] 
[   24.885437] Memory state around the buggy address:
[   24.885602]  ffff888105918980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   24.886227]  ffff888105918a00: 00 00 00 fc fc fc fc fc 00 00 05 fc fc fc fc fc
[   24.886636] >ffff888105918a80: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   24.887232]                                            ^
[   24.887756]  ffff888105918b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.888580]  ffff888105918b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.889284] ==================================================================