Hay
Date
July 3, 2025, 3:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.647701] ==================================================================
[   17.647765] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   17.647829] Read of size 1 at addr fff00000c7920000 by task kunit_try_catch/236
[   17.647877] 
[   17.647914] CPU: 0 UID: 0 PID: 236 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   17.648015] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.648040] Hardware name: linux,dummy-virt (DT)
[   17.648072] Call trace:
[   17.648095]  show_stack+0x20/0x38 (C)
[   17.648144]  dump_stack_lvl+0x8c/0xd0
[   17.648193]  print_report+0x118/0x608
[   17.648236]  kasan_report+0xdc/0x128
[   17.648319]  __asan_report_load1_noabort+0x20/0x30
[   17.648368]  mempool_uaf_helper+0x314/0x340
[   17.648416]  mempool_page_alloc_uaf+0xc0/0x118
[   17.648461]  kunit_try_run_case+0x170/0x3f0
[   17.648509]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.648561]  kthread+0x328/0x630
[   17.648605]  ret_from_fork+0x10/0x20
[   17.648652] 
[   17.648693] The buggy address belongs to the physical page:
[   17.648752] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107920
[   17.648807] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.648873] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.648921] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.648972] page dumped because: kasan: bad access detected
[   17.649004] 
[   17.649021] Memory state around the buggy address:
[   17.649054]  fff00000c791ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.649095]  fff00000c791ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.649137] >fff00000c7920000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.649174]                    ^
[   17.649201]  fff00000c7920080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.649240]  fff00000c7920100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.649276] ==================================================================
[   17.584351] ==================================================================
[   17.584439] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   17.584891] Read of size 1 at addr fff00000c791c000 by task kunit_try_catch/232
[   17.585307] 
[   17.585429] CPU: 0 UID: 0 PID: 232 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   17.585516] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.585543] Hardware name: linux,dummy-virt (DT)
[   17.586004] Call trace:
[   17.586032]  show_stack+0x20/0x38 (C)
[   17.586086]  dump_stack_lvl+0x8c/0xd0
[   17.586597]  print_report+0x118/0x608
[   17.586665]  kasan_report+0xdc/0x128
[   17.586709]  __asan_report_load1_noabort+0x20/0x30
[   17.586883]  mempool_uaf_helper+0x314/0x340
[   17.586938]  mempool_kmalloc_large_uaf+0xc4/0x120
[   17.586998]  kunit_try_run_case+0x170/0x3f0
[   17.587254]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.587353]  kthread+0x328/0x630
[   17.587414]  ret_from_fork+0x10/0x20
[   17.587472] 
[   17.587608] The buggy address belongs to the physical page:
[   17.587672] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10791c
[   17.587764] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.587833] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   17.588321] page_type: f8(unknown)
[   17.588683] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.589496] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.589651] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.589701] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.589749] head: 0bfffe0000000002 ffffc1ffc31e4701 00000000ffffffff 00000000ffffffff
[   17.589796] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   17.590356] page dumped because: kasan: bad access detected
[   17.590403] 
[   17.590432] Memory state around the buggy address:
[   17.590542]  fff00000c791bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.590935]  fff00000c791bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.591118] >fff00000c791c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.591222]                    ^
[   17.591254]  fff00000c791c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.591318]  fff00000c791c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   17.591357] ==================================================================

[   12.705768] ==================================================================
[   12.706198] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   12.706680] Read of size 1 at addr ffff888103928000 by task kunit_try_catch/248
[   12.707214] 
[   12.707718] CPU: 0 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   12.707773] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.707786] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.707813] Call Trace:
[   12.707827]  <TASK>
[   12.707847]  dump_stack_lvl+0x73/0xb0
[   12.707878]  print_report+0xd1/0x650
[   12.707902]  ? __virt_addr_valid+0x1db/0x2d0
[   12.707926]  ? mempool_uaf_helper+0x392/0x400
[   12.707949]  ? kasan_addr_to_slab+0x11/0xa0
[   12.707971]  ? mempool_uaf_helper+0x392/0x400
[   12.707994]  kasan_report+0x141/0x180
[   12.708017]  ? mempool_uaf_helper+0x392/0x400
[   12.708044]  __asan_report_load1_noabort+0x18/0x20
[   12.708066]  mempool_uaf_helper+0x392/0x400
[   12.708089]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   12.708112]  ? update_load_avg+0x1be/0x21b0
[   12.708134]  ? dequeue_entities+0x27e/0x1740
[   12.708157]  ? finish_task_switch.isra.0+0x153/0x700
[   12.708185]  mempool_kmalloc_large_uaf+0xef/0x140
[   12.708210]  ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10
[   12.708248]  ? dequeue_task_fair+0x166/0x4e0
[   12.708271]  ? __pfx_mempool_kmalloc+0x10/0x10
[   12.708293]  ? __pfx_mempool_kfree+0x10/0x10
[   12.708315]  ? __pfx_read_tsc+0x10/0x10
[   12.708335]  ? ktime_get_ts64+0x86/0x230
[   12.708361]  kunit_try_run_case+0x1a5/0x480
[   12.708387]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.708409]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.708434]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.708458]  ? __kthread_parkme+0x82/0x180
[   12.708481]  ? preempt_count_sub+0x50/0x80
[   12.708506]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.708530]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.708553]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.708576]  kthread+0x337/0x6f0
[   12.708593]  ? trace_preempt_on+0x20/0xc0
[   12.708617]  ? __pfx_kthread+0x10/0x10
[   12.708635]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.708658]  ? calculate_sigpending+0x7b/0xa0
[   12.708680]  ? __pfx_kthread+0x10/0x10
[   12.708699]  ret_from_fork+0x41/0x80
[   12.708719]  ? __pfx_kthread+0x10/0x10
[   12.708737]  ret_from_fork_asm+0x1a/0x30
[   12.708769]  </TASK>
[   12.708781] 
[   12.724819] The buggy address belongs to the physical page:
[   12.725037] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103928
[   12.725381] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.726071] flags: 0x200000000000040(head|node=0|zone=2)
[   12.726613] page_type: f8(unknown)
[   12.726993] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.727799] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.728522] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.728995] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.729856] head: 0200000000000002 ffffea00040e4a01 00000000ffffffff 00000000ffffffff
[   12.730097] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.730515] page dumped because: kasan: bad access detected
[   12.731049] 
[   12.731207] Memory state around the buggy address:
[   12.731704]  ffff888103927f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.732431]  ffff888103927f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.733101] >ffff888103928000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.733409]                    ^
[   12.733750]  ffff888103928080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.734387]  ffff888103928100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.734669] ==================================================================
[   12.787386] ==================================================================
[   12.787857] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   12.788583] Read of size 1 at addr ffff888102a38000 by task kunit_try_catch/252
[   12.789134] 
[   12.789270] CPU: 1 UID: 0 PID: 252 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   12.789565] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.789592] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.789616] Call Trace:
[   12.789629]  <TASK>
[   12.789649]  dump_stack_lvl+0x73/0xb0
[   12.789679]  print_report+0xd1/0x650
[   12.789703]  ? __virt_addr_valid+0x1db/0x2d0
[   12.789727]  ? mempool_uaf_helper+0x392/0x400
[   12.789750]  ? kasan_addr_to_slab+0x11/0xa0
[   12.789772]  ? mempool_uaf_helper+0x392/0x400
[   12.789796]  kasan_report+0x141/0x180
[   12.789819]  ? mempool_uaf_helper+0x392/0x400
[   12.789847]  __asan_report_load1_noabort+0x18/0x20
[   12.789868]  mempool_uaf_helper+0x392/0x400
[   12.789892]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   12.789915]  ? dequeue_entities+0x852/0x1740
[   12.789941]  ? finish_task_switch.isra.0+0x153/0x700
[   12.789970]  mempool_page_alloc_uaf+0xed/0x140
[   12.789990]  ? __pfx_mempool_page_alloc_uaf+0x10/0x10
[   12.790011]  ? dequeue_task_fair+0x166/0x4e0
[   12.790033]  ? __pfx_mempool_alloc_pages+0x10/0x10
[   12.790055]  ? __pfx_mempool_free_pages+0x10/0x10
[   12.790079]  ? __pfx_read_tsc+0x10/0x10
[   12.790098]  ? ktime_get_ts64+0x86/0x230
[   12.790124]  kunit_try_run_case+0x1a5/0x480
[   12.790152]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.790176]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.790201]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.790225]  ? __kthread_parkme+0x82/0x180
[   12.790258]  ? preempt_count_sub+0x50/0x80
[   12.790295]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.790320]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.790342]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.790366]  kthread+0x337/0x6f0
[   12.790384]  ? trace_preempt_on+0x20/0xc0
[   12.790409]  ? __pfx_kthread+0x10/0x10
[   12.790427]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.790449]  ? calculate_sigpending+0x7b/0xa0
[   12.790471]  ? __pfx_kthread+0x10/0x10
[   12.790490]  ret_from_fork+0x41/0x80
[   12.790511]  ? __pfx_kthread+0x10/0x10
[   12.790529]  ret_from_fork_asm+0x1a/0x30
[   12.790560]  </TASK>
[   12.790572] 
[   12.802865] The buggy address belongs to the physical page:
[   12.803208] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a38
[   12.803743] flags: 0x200000000000000(node=0|zone=2)
[   12.804023] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000
[   12.804468] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   12.804779] page dumped because: kasan: bad access detected
[   12.805112] 
[   12.805268] Memory state around the buggy address:
[   12.805655]  ffff888102a37f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.806111]  ffff888102a37f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.806576] >ffff888102a38000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.806914]                    ^
[   12.807035]  ffff888102a38080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.807389]  ffff888102a38100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   12.807839] ==================================================================