Hay
Date
July 22, 2025, 2:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.220306] ==================================================================
[   19.220454] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   19.220518] Read of size 1 at addr fff00000c78dc000 by task kunit_try_catch/231
[   19.220597] 
[   19.220668] CPU: 1 UID: 0 PID: 231 Comm: kunit_try_catch Tainted: G    B            N  6.15.8-rc1 #1 PREEMPT 
[   19.220751] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.220777] Hardware name: linux,dummy-virt (DT)
[   19.220969] Call trace:
[   19.220995]  show_stack+0x20/0x38 (C)
[   19.221058]  dump_stack_lvl+0x8c/0xd0
[   19.221111]  print_report+0x118/0x5d0
[   19.221154]  kasan_report+0xdc/0x128
[   19.221339]  __asan_report_load1_noabort+0x20/0x30
[   19.221521]  mempool_uaf_helper+0x314/0x340
[   19.221599]  mempool_kmalloc_large_uaf+0xc4/0x120
[   19.221674]  kunit_try_run_case+0x170/0x3f0
[   19.221850]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.221929]  kthread+0x328/0x630
[   19.221978]  ret_from_fork+0x10/0x20
[   19.222045] 
[   19.222178] The buggy address belongs to the physical page:
[   19.222224] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078dc
[   19.222336] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.222386] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   19.222450] page_type: f8(unknown)
[   19.222489] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.222538] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.222585] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.222633] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.222681] head: 0bfffe0000000002 ffffc1ffc31e3701 00000000ffffffff 00000000ffffffff
[   19.222868] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   19.222913] page dumped because: kasan: bad access detected
[   19.222947] 
[   19.222965] Memory state around the buggy address:
[   19.223043]  fff00000c78dbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.223118]  fff00000c78dbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.223161] >fff00000c78dc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.223200]                    ^
[   19.223228]  fff00000c78dc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.223271]  fff00000c78dc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.223332] ==================================================================
[   19.258874] ==================================================================
[   19.258936] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   19.259156] Read of size 1 at addr fff00000c78e4000 by task kunit_try_catch/235
[   19.259334] 
[   19.259423] CPU: 1 UID: 0 PID: 235 Comm: kunit_try_catch Tainted: G    B            N  6.15.8-rc1 #1 PREEMPT 
[   19.259582] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.259644] Hardware name: linux,dummy-virt (DT)
[   19.259738] Call trace:
[   19.259779]  show_stack+0x20/0x38 (C)
[   19.259852]  dump_stack_lvl+0x8c/0xd0
[   19.259946]  print_report+0x118/0x5d0
[   19.260003]  kasan_report+0xdc/0x128
[   19.260047]  __asan_report_load1_noabort+0x20/0x30
[   19.260264]  mempool_uaf_helper+0x314/0x340
[   19.260333]  mempool_page_alloc_uaf+0xc0/0x118
[   19.260388]  kunit_try_run_case+0x170/0x3f0
[   19.260502]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.260604]  kthread+0x328/0x630
[   19.260800]  ret_from_fork+0x10/0x20
[   19.261596] 
[   19.261624] The buggy address belongs to the physical page:
[   19.261659] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078e4
[   19.261904] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.261974] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.262104] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.262175] page dumped because: kasan: bad access detected
[   19.262231] 
[   19.262250] Memory state around the buggy address:
[   19.262415]  fff00000c78e3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.262468]  fff00000c78e3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.262512] >fff00000c78e4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.262550]                    ^
[   19.262585]  fff00000c78e4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.262642]  fff00000c78e4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.262690] ==================================================================

[   12.684682] ==================================================================
[   12.685874] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   12.686489] Read of size 1 at addr ffff888103c9c000 by task kunit_try_catch/249
[   12.686718] 
[   12.686812] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.15.8-rc1 #1 PREEMPT(voluntary) 
[   12.686859] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.686871] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.686894] Call Trace:
[   12.686908]  <TASK>
[   12.686928]  dump_stack_lvl+0x73/0xb0
[   12.686957]  print_report+0xd1/0x610
[   12.686980]  ? __virt_addr_valid+0x1db/0x2d0
[   12.687003]  ? mempool_uaf_helper+0x392/0x400
[   12.687025]  ? kasan_addr_to_slab+0x11/0xa0
[   12.687046]  ? mempool_uaf_helper+0x392/0x400
[   12.687068]  kasan_report+0x141/0x180
[   12.687090]  ? mempool_uaf_helper+0x392/0x400
[   12.687117]  __asan_report_load1_noabort+0x18/0x20
[   12.687137]  mempool_uaf_helper+0x392/0x400
[   12.687160]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   12.687182]  ? dequeue_entities+0x852/0x1740
[   12.687208]  ? finish_task_switch.isra.0+0x153/0x700
[   12.687248]  mempool_kmalloc_large_uaf+0xef/0x140
[   12.687271]  ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10
[   12.687294]  ? dequeue_task_fair+0x166/0x4e0
[   12.687316]  ? __pfx_mempool_kmalloc+0x10/0x10
[   12.687337]  ? __pfx_mempool_kfree+0x10/0x10
[   12.687359]  ? __pfx_read_tsc+0x10/0x10
[   12.687379]  ? ktime_get_ts64+0x86/0x230
[   12.687405]  kunit_try_run_case+0x1a5/0x480
[   12.687441]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.687459]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.687480]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.687505]  ? __kthread_parkme+0x82/0x180
[   12.687527]  ? preempt_count_sub+0x50/0x80
[   12.687551]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.687571]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.687594]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.687616]  kthread+0x337/0x6f0
[   12.687633]  ? trace_preempt_on+0x20/0xc0
[   12.687657]  ? __pfx_kthread+0x10/0x10
[   12.687676]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.687699]  ? calculate_sigpending+0x7b/0xa0
[   12.687722]  ? __pfx_kthread+0x10/0x10
[   12.687740]  ret_from_fork+0x41/0x80
[   12.687760]  ? __pfx_kthread+0x10/0x10
[   12.687777]  ret_from_fork_asm+0x1a/0x30
[   12.687807]  </TASK>
[   12.687818] 
[   12.701570] The buggy address belongs to the physical page:
[   12.701876] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c9c
[   12.702875] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.703606] flags: 0x200000000000040(head|node=0|zone=2)
[   12.704090] page_type: f8(unknown)
[   12.704220] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.704590] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.705451] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.706389] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.706963] head: 0200000000000002 ffffea00040f2701 00000000ffffffff 00000000ffffffff
[   12.707195] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.707571] page dumped because: kasan: bad access detected
[   12.708291] 
[   12.708503] Memory state around the buggy address:
[   12.709100]  ffff888103c9bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.709762]  ffff888103c9bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.710125] >ffff888103c9c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.710345]                    ^
[   12.710458]  ffff888103c9c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.710865]  ffff888103c9c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.711480] ==================================================================
[   12.749597] ==================================================================
[   12.750129] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   12.750540] Read of size 1 at addr ffff888103c9c000 by task kunit_try_catch/253
[   12.750834] 
[   12.751192] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.15.8-rc1 #1 PREEMPT(voluntary) 
[   12.751256] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.751268] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.751291] Call Trace:
[   12.751304]  <TASK>
[   12.751320]  dump_stack_lvl+0x73/0xb0
[   12.751347]  print_report+0xd1/0x610
[   12.751370]  ? __virt_addr_valid+0x1db/0x2d0
[   12.751392]  ? mempool_uaf_helper+0x392/0x400
[   12.751415]  ? kasan_addr_to_slab+0x11/0xa0
[   12.751437]  ? mempool_uaf_helper+0x392/0x400
[   12.751459]  kasan_report+0x141/0x180
[   12.751482]  ? mempool_uaf_helper+0x392/0x400
[   12.751509]  __asan_report_load1_noabort+0x18/0x20
[   12.751530]  mempool_uaf_helper+0x392/0x400
[   12.751554]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   12.751576]  ? dequeue_entities+0x852/0x1740
[   12.751601]  ? finish_task_switch.isra.0+0x153/0x700
[   12.751628]  mempool_page_alloc_uaf+0xed/0x140
[   12.751648]  ? __pfx_mempool_page_alloc_uaf+0x10/0x10
[   12.751721]  ? dequeue_task_fair+0x166/0x4e0
[   12.751746]  ? __pfx_mempool_alloc_pages+0x10/0x10
[   12.751769]  ? __pfx_mempool_free_pages+0x10/0x10
[   12.751792]  ? __pfx_read_tsc+0x10/0x10
[   12.751813]  ? ktime_get_ts64+0x86/0x230
[   12.751838]  kunit_try_run_case+0x1a5/0x480
[   12.751860]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.751878]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.751900]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.751924]  ? __kthread_parkme+0x82/0x180
[   12.751946]  ? preempt_count_sub+0x50/0x80
[   12.751971]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.751991]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.752014]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.752038]  kthread+0x337/0x6f0
[   12.752054]  ? trace_preempt_on+0x20/0xc0
[   12.752077]  ? __pfx_kthread+0x10/0x10
[   12.752095]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.752117]  ? calculate_sigpending+0x7b/0xa0
[   12.752139]  ? __pfx_kthread+0x10/0x10
[   12.752156]  ret_from_fork+0x41/0x80
[   12.752177]  ? __pfx_kthread+0x10/0x10
[   12.752194]  ret_from_fork_asm+0x1a/0x30
[   12.752238]  </TASK>
[   12.752249] 
[   12.760922] The buggy address belongs to the physical page:
[   12.761193] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c9c
[   12.761678] flags: 0x200000000000000(node=0|zone=2)
[   12.762069] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000
[   12.762911] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   12.763193] page dumped because: kasan: bad access detected
[   12.763879] 
[   12.763976] Memory state around the buggy address:
[   12.764990]  ffff888103c9bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.765430]  ffff888103c9bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.765905] >ffff888103c9c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.766323]                    ^
[   12.766613]  ffff888103c9c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.767002]  ffff888103c9c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.767385] ==================================================================