Hay
Date
July 18, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.394974] ==================================================================
[   17.395639] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   17.395722] Read of size 1 at addr fff00000c7818000 by task kunit_try_catch/229
[   17.395773] 
[   17.395808] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.396204] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.396349] Hardware name: linux,dummy-virt (DT)
[   17.396405] Call trace:
[   17.396441]  show_stack+0x20/0x38 (C)
[   17.396762]  dump_stack_lvl+0x8c/0xd0
[   17.396827]  print_report+0x118/0x5d0
[   17.396929]  kasan_report+0xdc/0x128
[   17.396980]  __asan_report_load1_noabort+0x20/0x30
[   17.397032]  mempool_uaf_helper+0x314/0x340
[   17.397281]  mempool_kmalloc_large_uaf+0xc4/0x120
[   17.397491]  kunit_try_run_case+0x170/0x3f0
[   17.397616]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.397732]  kthread+0x328/0x630
[   17.397786]  ret_from_fork+0x10/0x20
[   17.398088] 
[   17.398137] The buggy address belongs to the physical page:
[   17.398232] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107818
[   17.398325] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.398689] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   17.398789] page_type: f8(unknown)
[   17.398881] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.399184] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.399444] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.399617] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.399731] head: 0bfffe0000000002 ffffc1ffc31e0601 00000000ffffffff 00000000ffffffff
[   17.399901] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   17.399983] page dumped because: kasan: bad access detected
[   17.400071] 
[   17.400358] Memory state around the buggy address:
[   17.400431]  fff00000c7817f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.400500]  fff00000c7817f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.400662] >fff00000c7818000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.400716]                    ^
[   17.401054]  fff00000c7818080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.401143]  fff00000c7818100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.401289] ==================================================================
[   17.447631] ==================================================================
[   17.447959] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   17.448156] Read of size 1 at addr fff00000c781c000 by task kunit_try_catch/233
[   17.448252] 
[   17.448402] CPU: 0 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.448512] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.448573] Hardware name: linux,dummy-virt (DT)
[   17.448607] Call trace:
[   17.448632]  show_stack+0x20/0x38 (C)
[   17.448934]  dump_stack_lvl+0x8c/0xd0
[   17.449174]  print_report+0x118/0x5d0
[   17.449235]  kasan_report+0xdc/0x128
[   17.449279]  __asan_report_load1_noabort+0x20/0x30
[   17.449445]  mempool_uaf_helper+0x314/0x340
[   17.449604]  mempool_page_alloc_uaf+0xc0/0x118
[   17.449877]  kunit_try_run_case+0x170/0x3f0
[   17.450222]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.450413]  kthread+0x328/0x630
[   17.450502]  ret_from_fork+0x10/0x20
[   17.450758] 
[   17.450794] The buggy address belongs to the physical page:
[   17.451660] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10781c
[   17.451824] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.452172] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.452824] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.452971] page dumped because: kasan: bad access detected
[   17.453086] 
[   17.453313] Memory state around the buggy address:
[   17.453533]  fff00000c781bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.453761]  fff00000c781bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.453830] >fff00000c781c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.453901]                    ^
[   17.454011]  fff00000c781c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.454210]  fff00000c781c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.454454] ==================================================================

[   13.770772] ==================================================================
[   13.771223] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   13.771517] Read of size 1 at addr ffff888103a6c000 by task kunit_try_catch/252
[   13.771771] 
[   13.771869] CPU: 0 UID: 0 PID: 252 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.771917] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.771930] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.771952] Call Trace:
[   13.771963]  <TASK>
[   13.771979]  dump_stack_lvl+0x73/0xb0
[   13.772008]  print_report+0xd1/0x610
[   13.772030]  ? __virt_addr_valid+0x1db/0x2d0
[   13.772052]  ? mempool_uaf_helper+0x392/0x400
[   13.772073]  ? kasan_addr_to_slab+0x11/0xa0
[   13.772092]  ? mempool_uaf_helper+0x392/0x400
[   13.772113]  kasan_report+0x141/0x180
[   13.772134]  ? mempool_uaf_helper+0x392/0x400
[   13.772160]  __asan_report_load1_noabort+0x18/0x20
[   13.772183]  mempool_uaf_helper+0x392/0x400
[   13.772205]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   13.772227]  ? __kasan_check_write+0x18/0x20
[   13.772246]  ? __pfx_sched_clock_cpu+0x10/0x10
[   13.772268]  ? finish_task_switch.isra.0+0x153/0x700
[   13.772318]  mempool_page_alloc_uaf+0xed/0x140
[   13.772700]  ? __pfx_mempool_page_alloc_uaf+0x10/0x10
[   13.772731]  ? __pfx_mempool_alloc_pages+0x10/0x10
[   13.772758]  ? __pfx_mempool_free_pages+0x10/0x10
[   13.772785]  ? __pfx_read_tsc+0x10/0x10
[   13.772817]  ? ktime_get_ts64+0x86/0x230
[   13.772841]  kunit_try_run_case+0x1a5/0x480
[   13.772867]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.772890]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.772915]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.772940]  ? __kthread_parkme+0x82/0x180
[   13.772967]  ? preempt_count_sub+0x50/0x80
[   13.772990]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.773014]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.773038]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.773065]  kthread+0x337/0x6f0
[   13.773083]  ? trace_preempt_on+0x20/0xc0
[   13.773108]  ? __pfx_kthread+0x10/0x10
[   13.773127]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.773149]  ? calculate_sigpending+0x7b/0xa0
[   13.773173]  ? __pfx_kthread+0x10/0x10
[   13.773194]  ret_from_fork+0x116/0x1d0
[   13.773213]  ? __pfx_kthread+0x10/0x10
[   13.773233]  ret_from_fork_asm+0x1a/0x30
[   13.773264]  </TASK>
[   13.773276] 
[   13.795990] The buggy address belongs to the physical page:
[   13.796713] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a6c
[   13.797408] flags: 0x200000000000000(node=0|zone=2)
[   13.797949] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000
[   13.798471] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   13.799257] page dumped because: kasan: bad access detected
[   13.799726] 
[   13.799799] Memory state around the buggy address:
[   13.799957]  ffff888103a6bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.800189]  ffff888103a6bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.800428] >ffff888103a6c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.800756]                    ^
[   13.800960]  ffff888103a6c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.801250]  ffff888103a6c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.801651] ==================================================================
[   13.698404] ==================================================================
[   13.698970] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   13.699579] Read of size 1 at addr ffff888103a6c000 by task kunit_try_catch/248
[   13.700244] 
[   13.700403] CPU: 0 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.700452] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.700593] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.700616] Call Trace:
[   13.700629]  <TASK>
[   13.700645]  dump_stack_lvl+0x73/0xb0
[   13.700676]  print_report+0xd1/0x610
[   13.700699]  ? __virt_addr_valid+0x1db/0x2d0
[   13.700721]  ? mempool_uaf_helper+0x392/0x400
[   13.700744]  ? kasan_addr_to_slab+0x11/0xa0
[   13.700764]  ? mempool_uaf_helper+0x392/0x400
[   13.700786]  kasan_report+0x141/0x180
[   13.700808]  ? mempool_uaf_helper+0x392/0x400
[   13.700835]  __asan_report_load1_noabort+0x18/0x20
[   13.700861]  mempool_uaf_helper+0x392/0x400
[   13.700885]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   13.700910]  ? __pfx_sched_clock_cpu+0x10/0x10
[   13.700933]  ? finish_task_switch.isra.0+0x153/0x700
[   13.700968]  mempool_kmalloc_large_uaf+0xef/0x140
[   13.700992]  ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10
[   13.701165]  ? __kasan_check_write+0x18/0x20
[   13.701189]  ? __pfx_mempool_kmalloc+0x10/0x10
[   13.701213]  ? __pfx_mempool_kfree+0x10/0x10
[   13.701237]  ? __pfx_read_tsc+0x10/0x10
[   13.701259]  ? ktime_get_ts64+0x86/0x230
[   13.701281]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   13.701323]  kunit_try_run_case+0x1a5/0x480
[   13.701348]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.701372]  ? queued_spin_lock_slowpath+0x116/0xb40
[   13.701398]  ? __kthread_parkme+0x82/0x180
[   13.701418]  ? preempt_count_sub+0x50/0x80
[   13.701441]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.701465]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.701489]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.701513]  kthread+0x337/0x6f0
[   13.701533]  ? trace_preempt_on+0x20/0xc0
[   13.701555]  ? __pfx_kthread+0x10/0x10
[   13.701575]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.701597]  ? calculate_sigpending+0x7b/0xa0
[   13.701621]  ? __pfx_kthread+0x10/0x10
[   13.701643]  ret_from_fork+0x116/0x1d0
[   13.701662]  ? __pfx_kthread+0x10/0x10
[   13.701682]  ret_from_fork_asm+0x1a/0x30
[   13.701713]  </TASK>
[   13.701725] 
[   13.714606] The buggy address belongs to the physical page:
[   13.715176] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a6c
[   13.715753] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   13.716071] flags: 0x200000000000040(head|node=0|zone=2)
[   13.716350] page_type: f8(unknown)
[   13.716531] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   13.717324] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   13.717787] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   13.718289] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   13.718747] head: 0200000000000002 ffffea00040e9b01 00000000ffffffff 00000000ffffffff
[   13.719241] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   13.719798] page dumped because: kasan: bad access detected
[   13.720190] 
[   13.720275] Memory state around the buggy address:
[   13.720499]  ffff888103a6bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.721225]  ffff888103a6bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.721593] >ffff888103a6c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.722063]                    ^
[   13.722328]  ffff888103a6c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.722776]  ffff888103a6c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.723428] ==================================================================