Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.917614] ==================================================================
[   19.917678] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   19.917983] Read of size 1 at addr fff00000c7938000 by task kunit_try_catch/235
[   19.918116] 
[   19.918162] CPU: 0 UID: 0 PID: 235 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   19.918391] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.918421] Hardware name: linux,dummy-virt (DT)
[   19.918622] Call trace:
[   19.918797]  show_stack+0x20/0x38 (C)
[   19.918913]  dump_stack_lvl+0x8c/0xd0
[   19.919086]  print_report+0x118/0x5d0
[   19.919194]  kasan_report+0xdc/0x128
[   19.919255]  __asan_report_load1_noabort+0x20/0x30
[   19.919330]  mempool_uaf_helper+0x314/0x340
[   19.919751]  mempool_page_alloc_uaf+0xc0/0x118
[   19.919815]  kunit_try_run_case+0x170/0x3f0
[   19.920087]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.920289]  kthread+0x328/0x630
[   19.920393]  ret_from_fork+0x10/0x20
[   19.920471] 
[   19.920663] The buggy address belongs to the physical page:
[   19.920705] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107938
[   19.920762] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.920967] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.921043] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.921130] page dumped because: kasan: bad access detected
[   19.921164] 
[   19.921183] Memory state around the buggy address:
[   19.921235]  fff00000c7937f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.921290]  fff00000c7937f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.921659] >fff00000c7938000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.921716]                    ^
[   19.921745]  fff00000c7938080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.921924]  fff00000c7938100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.922181] ==================================================================
[   19.879020] ==================================================================
[   19.879358] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   19.879548] Read of size 1 at addr fff00000c7938000 by task kunit_try_catch/231
[   19.879622] 
[   19.879687] CPU: 0 UID: 0 PID: 231 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   19.880083] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.880229] Hardware name: linux,dummy-virt (DT)
[   19.880294] Call trace:
[   19.880317]  show_stack+0x20/0x38 (C)
[   19.880376]  dump_stack_lvl+0x8c/0xd0
[   19.880546]  print_report+0x118/0x5d0
[   19.880662]  kasan_report+0xdc/0x128
[   19.880800]  __asan_report_load1_noabort+0x20/0x30
[   19.880931]  mempool_uaf_helper+0x314/0x340
[   19.880983]  mempool_kmalloc_large_uaf+0xc4/0x120
[   19.881059]  kunit_try_run_case+0x170/0x3f0
[   19.881340]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.881545]  kthread+0x328/0x630
[   19.881687]  ret_from_fork+0x10/0x20
[   19.881843] 
[   19.881950] The buggy address belongs to the physical page:
[   19.882004] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107938
[   19.882261] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.882450] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   19.882549] page_type: f8(unknown)
[   19.882587] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.883017] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.883098] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.883259] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.883359] head: 0bfffe0000000002 ffffc1ffc31e4e01 00000000ffffffff 00000000ffffffff
[   19.883554] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   19.883663] page dumped because: kasan: bad access detected
[   19.883717] 
[   19.883737] Memory state around the buggy address:
[   19.883770]  fff00000c7937f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.883887]  fff00000c7937f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.884068] >fff00000c7938000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.884157]                    ^
[   19.884195]  fff00000c7938080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.884317]  fff00000c7938100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   19.884360] ==================================================================

[   12.536928] ==================================================================
[   12.537407] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   12.537722] Read of size 1 at addr ffff888102ac8000 by task kunit_try_catch/248
[   12.538302] 
[   12.538415] CPU: 0 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   12.538515] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.538527] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.538547] Call Trace:
[   12.538560]  <TASK>
[   12.538575]  dump_stack_lvl+0x73/0xb0
[   12.538599]  print_report+0xd1/0x610
[   12.538621]  ? __virt_addr_valid+0x1db/0x2d0
[   12.538642]  ? mempool_uaf_helper+0x392/0x400
[   12.538664]  ? kasan_addr_to_slab+0x11/0xa0
[   12.538684]  ? mempool_uaf_helper+0x392/0x400
[   12.538773]  kasan_report+0x141/0x180
[   12.538801]  ? mempool_uaf_helper+0x392/0x400
[   12.538866]  __asan_report_load1_noabort+0x18/0x20
[   12.538897]  mempool_uaf_helper+0x392/0x400
[   12.538920]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   12.538947]  ? finish_task_switch.isra.0+0x153/0x700
[   12.538973]  mempool_kmalloc_large_uaf+0xef/0x140
[   12.538996]  ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10
[   12.539020]  ? __kasan_check_write+0x18/0x20
[   12.539040]  ? __pfx_mempool_kmalloc+0x10/0x10
[   12.539061]  ? __pfx_mempool_kfree+0x10/0x10
[   12.539081]  ? __pfx_read_tsc+0x10/0x10
[   12.539101]  ? ktime_get_ts64+0x86/0x230
[   12.539121]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   12.539145]  kunit_try_run_case+0x1a5/0x480
[   12.539166]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.539186]  ? queued_spin_lock_slowpath+0x116/0xb40
[   12.539210]  ? __kthread_parkme+0x82/0x180
[   12.539231]  ? preempt_count_sub+0x50/0x80
[   12.539255]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.539275]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.539298]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.539321]  kthread+0x337/0x6f0
[   12.539337]  ? trace_preempt_on+0x20/0xc0
[   12.539359]  ? __pfx_kthread+0x10/0x10
[   12.539376]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.539397]  ? calculate_sigpending+0x7b/0xa0
[   12.539418]  ? __pfx_kthread+0x10/0x10
[   12.539436]  ret_from_fork+0x41/0x80
[   12.539455]  ? __pfx_kthread+0x10/0x10
[   12.539472]  ret_from_fork_asm+0x1a/0x30
[   12.539503]  </TASK>
[   12.539513] 
[   12.548580] The buggy address belongs to the physical page:
[   12.549137] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ac8
[   12.549509] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.549941] flags: 0x200000000000040(head|node=0|zone=2)
[   12.550322] page_type: f8(unknown)
[   12.550502] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.550971] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.551415] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.551901] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.552372] head: 0200000000000002 ffffea00040ab201 00000000ffffffff 00000000ffffffff
[   12.552793] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.553155] page dumped because: kasan: bad access detected
[   12.553404] 
[   12.553527] Memory state around the buggy address:
[   12.553808]  ffff888102ac7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.554151]  ffff888102ac7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.554435] >ffff888102ac8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.554934]                    ^
[   12.555182]  ffff888102ac8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.555490]  ffff888102ac8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.555987] ==================================================================
[   12.599969] ==================================================================
[   12.600457] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   12.600918] Read of size 1 at addr ffff888103968000 by task kunit_try_catch/252
[   12.601240] 
[   12.601352] CPU: 1 UID: 0 PID: 252 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   12.601430] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.601442] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.601488] Call Trace:
[   12.601523]  <TASK>
[   12.601561]  dump_stack_lvl+0x73/0xb0
[   12.601587]  print_report+0xd1/0x610
[   12.601610]  ? __virt_addr_valid+0x1db/0x2d0
[   12.601631]  ? mempool_uaf_helper+0x392/0x400
[   12.601653]  ? kasan_addr_to_slab+0x11/0xa0
[   12.601735]  ? mempool_uaf_helper+0x392/0x400
[   12.601762]  kasan_report+0x141/0x180
[   12.601784]  ? mempool_uaf_helper+0x392/0x400
[   12.601830]  __asan_report_load1_noabort+0x18/0x20
[   12.601851]  mempool_uaf_helper+0x392/0x400
[   12.601875]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   12.601908]  ? dequeue_entities+0x852/0x1740
[   12.601932]  ? finish_task_switch.isra.0+0x153/0x700
[   12.601958]  mempool_page_alloc_uaf+0xed/0x140
[   12.601979]  ? __pfx_mempool_page_alloc_uaf+0x10/0x10
[   12.601998]  ? dequeue_task_fair+0x166/0x4e0
[   12.602019]  ? __pfx_mempool_alloc_pages+0x10/0x10
[   12.602039]  ? __pfx_mempool_free_pages+0x10/0x10
[   12.602061]  ? __pfx_read_tsc+0x10/0x10
[   12.602080]  ? ktime_get_ts64+0x86/0x230
[   12.602106]  kunit_try_run_case+0x1a5/0x480
[   12.602127]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.602145]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.602170]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.602193]  ? __kthread_parkme+0x82/0x180
[   12.602214]  ? preempt_count_sub+0x50/0x80
[   12.602237]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.602257]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.602280]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.602303]  kthread+0x337/0x6f0
[   12.602319]  ? trace_preempt_on+0x20/0xc0
[   12.602343]  ? __pfx_kthread+0x10/0x10
[   12.602360]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.602381]  ? calculate_sigpending+0x7b/0xa0
[   12.602402]  ? __pfx_kthread+0x10/0x10
[   12.602420]  ret_from_fork+0x41/0x80
[   12.602441]  ? __pfx_kthread+0x10/0x10
[   12.602458]  ret_from_fork_asm+0x1a/0x30
[   12.602488]  </TASK>
[   12.602500] 
[   12.611648] The buggy address belongs to the physical page:
[   12.611898] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103968
[   12.612152] flags: 0x200000000000000(node=0|zone=2)
[   12.612397] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000
[   12.612751] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   12.613107] page dumped because: kasan: bad access detected
[   12.613361] 
[   12.613444] Memory state around the buggy address:
[   12.613635]  ffff888103967f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.614024]  ffff888103967f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.614322] >ffff888103968000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.614532]                    ^
[   12.614645]  ffff888103968080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.614994]  ffff888103968100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.615354] ==================================================================