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

Environment
qemu-arm64
qemu-x86_64

[   18.781430] ==================================================================
[   18.781503] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   18.781574] Read of size 1 at addr fff00000c7864000 by task kunit_try_catch/234
[   18.781624] 
[   18.781663] CPU: 1 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.781749] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.781775] Hardware name: linux,dummy-virt (DT)
[   18.781809] Call trace:
[   18.781833]  show_stack+0x20/0x38 (C)
[   18.781903]  dump_stack_lvl+0x8c/0xd0
[   18.781954]  print_report+0x118/0x608
[   18.782001]  kasan_report+0xdc/0x128
[   18.782047]  __asan_report_load1_noabort+0x20/0x30
[   18.782096]  mempool_uaf_helper+0x314/0x340
[   18.782143]  mempool_page_alloc_uaf+0xc0/0x118
[   18.782190]  kunit_try_run_case+0x170/0x3f0
[   18.782239]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.782291]  kthread+0x328/0x630
[   18.782333]  ret_from_fork+0x10/0x20
[   18.782381] 
[   18.782402] The buggy address belongs to the physical page:
[   18.782437] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107864
[   18.782491] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.782560] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.782610] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.782652] page dumped because: kasan: bad access detected
[   18.782684] 
[   18.782701] Memory state around the buggy address:
[   18.782830]  fff00000c7863f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.782895]  fff00000c7863f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.782938] >fff00000c7864000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.782976]                    ^
[   18.783005]  fff00000c7864080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.783046]  fff00000c7864100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.783444] ==================================================================
[   18.706162] ==================================================================
[   18.706851] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340
[   18.707186] Read of size 1 at addr fff00000c659c000 by task kunit_try_catch/230
[   18.707528] 
[   18.707567] CPU: 1 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.707830] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.708190] Hardware name: linux,dummy-virt (DT)
[   18.708237] Call trace:
[   18.708742]  show_stack+0x20/0x38 (C)
[   18.708976]  dump_stack_lvl+0x8c/0xd0
[   18.709267]  print_report+0x118/0x608
[   18.709413]  kasan_report+0xdc/0x128
[   18.709783]  __asan_report_load1_noabort+0x20/0x30
[   18.710081]  mempool_uaf_helper+0x314/0x340
[   18.710466]  mempool_kmalloc_large_uaf+0xc4/0x120
[   18.710777]  kunit_try_run_case+0x170/0x3f0
[   18.711101]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.711201]  kthread+0x328/0x630
[   18.711247]  ret_from_fork+0x10/0x20
[   18.711296] 
[   18.711837] The buggy address belongs to the physical page:
[   18.711898] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10659c
[   18.711955] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   18.712296] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   18.712479] page_type: f8(unknown)
[   18.712539] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   18.712944] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   18.713159] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   18.713210] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   18.713723] head: 0bfffe0000000002 ffffc1ffc3196701 00000000ffffffff 00000000ffffffff
[   18.713785] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   18.713826] page dumped because: kasan: bad access detected
[   18.713864] 
[   18.713881] Memory state around the buggy address:
[   18.714359]  fff00000c659bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.714790]  fff00000c659bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.714900] >fff00000c659c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.714954]                    ^
[   18.715358]  fff00000c659c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.715468]  fff00000c659c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   18.715630] ==================================================================

[   13.983613] ==================================================================
[   13.984507] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   13.985214] Read of size 1 at addr ffff888102a58000 by task kunit_try_catch/250
[   13.986090] 
[   13.986334] CPU: 1 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   13.986383] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.986395] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.986416] Call Trace:
[   13.986430]  <TASK>
[   13.986446]  dump_stack_lvl+0x73/0xb0
[   13.986477]  print_report+0xd1/0x650
[   13.986508]  ? __virt_addr_valid+0x1db/0x2d0
[   13.986532]  ? mempool_uaf_helper+0x392/0x400
[   13.986554]  ? kasan_addr_to_slab+0x11/0xa0
[   13.986575]  ? mempool_uaf_helper+0x392/0x400
[   13.986598]  kasan_report+0x141/0x180
[   13.986619]  ? mempool_uaf_helper+0x392/0x400
[   13.986647]  __asan_report_load1_noabort+0x18/0x20
[   13.986672]  mempool_uaf_helper+0x392/0x400
[   13.986696]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   13.986720]  ? __kasan_check_write+0x18/0x20
[   13.986740]  ? __pfx_sched_clock_cpu+0x10/0x10
[   13.986773]  ? irqentry_exit+0x2a/0x60
[   13.986795]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   13.986824]  mempool_page_alloc_uaf+0xed/0x140
[   13.986958]  ? __pfx_mempool_page_alloc_uaf+0x10/0x10
[   13.986989]  ? __pfx_mempool_alloc_pages+0x10/0x10
[   13.987034]  ? __pfx_mempool_free_pages+0x10/0x10
[   13.987060]  ? __pfx_mempool_page_alloc_uaf+0x10/0x10
[   13.987087]  ? __pfx_mempool_page_alloc_uaf+0x10/0x10
[   13.987113]  kunit_try_run_case+0x1a5/0x480
[   13.987138]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.987160]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.987184]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.987208]  ? __kthread_parkme+0x82/0x180
[   13.987228]  ? preempt_count_sub+0x50/0x80
[   13.987252]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.987277]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.987300]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.987326]  kthread+0x337/0x6f0
[   13.987344]  ? trace_preempt_on+0x20/0xc0
[   13.987368]  ? __pfx_kthread+0x10/0x10
[   13.987388]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.987409]  ? calculate_sigpending+0x7b/0xa0
[   13.987434]  ? __pfx_kthread+0x10/0x10
[   13.987456]  ret_from_fork+0x116/0x1d0
[   13.987474]  ? __pfx_kthread+0x10/0x10
[   13.987494]  ret_from_fork_asm+0x1a/0x30
[   13.987527]  </TASK>
[   13.987536] 
[   14.000968] The buggy address belongs to the physical page:
[   14.001513] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a58
[   14.001975] flags: 0x200000000000000(node=0|zone=2)
[   14.002356] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000
[   14.002684] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   14.003197] page dumped because: kasan: bad access detected
[   14.003521] 
[   14.003609] Memory state around the buggy address:
[   14.003965]  ffff888102a57f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   14.004453]  ffff888102a57f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   14.004741] >ffff888102a58000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   14.005389]                    ^
[   14.005516]  ffff888102a58080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   14.005984]  ffff888102a58100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   14.006403] ==================================================================
[   13.910638] ==================================================================
[   13.911409] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400
[   13.911717] Read of size 1 at addr ffff888102a54000 by task kunit_try_catch/246
[   13.912161] 
[   13.912303] CPU: 1 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   13.912348] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.912361] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.912381] Call Trace:
[   13.912394]  <TASK>
[   13.912411]  dump_stack_lvl+0x73/0xb0
[   13.912463]  print_report+0xd1/0x650
[   13.912486]  ? __virt_addr_valid+0x1db/0x2d0
[   13.912509]  ? mempool_uaf_helper+0x392/0x400
[   13.912531]  ? kasan_addr_to_slab+0x11/0xa0
[   13.912551]  ? mempool_uaf_helper+0x392/0x400
[   13.912574]  kasan_report+0x141/0x180
[   13.912595]  ? mempool_uaf_helper+0x392/0x400
[   13.912641]  __asan_report_load1_noabort+0x18/0x20
[   13.912666]  mempool_uaf_helper+0x392/0x400
[   13.912689]  ? __pfx_mempool_uaf_helper+0x10/0x10
[   13.912711]  ? update_load_avg+0x1be/0x21b0
[   13.912735]  ? update_load_avg+0x1be/0x21b0
[   13.912765]  ? update_curr+0x80/0x810
[   13.912787]  ? finish_task_switch.isra.0+0x153/0x700
[   13.912814]  mempool_kmalloc_large_uaf+0xef/0x140
[   13.912837]  ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10
[   13.912865]  ? __pfx_mempool_kmalloc+0x10/0x10
[   13.912889]  ? __pfx_mempool_kfree+0x10/0x10
[   13.912913]  ? __pfx_read_tsc+0x10/0x10
[   13.912947]  ? ktime_get_ts64+0x86/0x230
[   13.912972]  kunit_try_run_case+0x1a5/0x480
[   13.912997]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.913020]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.913044]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.913114]  ? __kthread_parkme+0x82/0x180
[   13.913136]  ? preempt_count_sub+0x50/0x80
[   13.913160]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.913184]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.913209]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.913234]  kthread+0x337/0x6f0
[   13.913253]  ? trace_preempt_on+0x20/0xc0
[   13.913276]  ? __pfx_kthread+0x10/0x10
[   13.913296]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.913317]  ? calculate_sigpending+0x7b/0xa0
[   13.913342]  ? __pfx_kthread+0x10/0x10
[   13.913364]  ret_from_fork+0x116/0x1d0
[   13.913382]  ? __pfx_kthread+0x10/0x10
[   13.913403]  ret_from_fork_asm+0x1a/0x30
[   13.913435]  </TASK>
[   13.913446] 
[   13.922456] The buggy address belongs to the physical page:
[   13.922773] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a54
[   13.923174] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   13.923407] flags: 0x200000000000040(head|node=0|zone=2)
[   13.923674] page_type: f8(unknown)
[   13.923850] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   13.924193] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   13.924426] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   13.925113] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   13.925433] head: 0200000000000002 ffffea00040a9501 00000000ffffffff 00000000ffffffff
[   13.925748] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   13.926134] page dumped because: kasan: bad access detected
[   13.926344] 
[   13.926446] Memory state around the buggy address:
[   13.926704]  ffff888102a53f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.927283]  ffff888102a53f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.927616] >ffff888102a54000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.928001]                    ^
[   13.928168]  ffff888102a54080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.928508]  ffff888102a54100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   13.928870] ==================================================================