Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 27.647992] ================================================================== [ 27.648226] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 27.648407] Read of size 1 at addr fff00000c77ec000 by task kunit_try_catch/235 [ 27.648537] [ 27.648672] CPU: 0 UID: 0 PID: 235 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 27.648868] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.648988] Hardware name: linux,dummy-virt (DT) [ 27.649136] Call trace: [ 27.649310] show_stack+0x20/0x38 (C) [ 27.649529] dump_stack_lvl+0x8c/0xd0 [ 27.649677] print_report+0x118/0x608 [ 27.649796] kasan_report+0xdc/0x128 [ 27.649918] __asan_report_load1_noabort+0x20/0x30 [ 27.650815] mempool_uaf_helper+0x314/0x340 [ 27.651059] mempool_page_alloc_uaf+0xc0/0x118 [ 27.651468] kunit_try_run_case+0x170/0x3f0 [ 27.651923] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.652082] kthread+0x328/0x630 [ 27.652383] ret_from_fork+0x10/0x20 [ 27.652958] [ 27.653092] The buggy address belongs to the physical page: [ 27.653184] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077ec [ 27.654015] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 27.654850] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 27.655615] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 27.655727] page dumped because: kasan: bad access detected [ 27.655897] [ 27.655996] Memory state around the buggy address: [ 27.656199] fff00000c77ebf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.656354] fff00000c77ebf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.656751] >fff00000c77ec000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.656868] ^ [ 27.657092] fff00000c77ec080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.657234] fff00000c77ec100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.657346] ================================================================== [ 27.536535] ================================================================== [ 27.536764] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 27.536890] Read of size 1 at addr fff00000c77ec000 by task kunit_try_catch/231 [ 27.537006] [ 27.537079] CPU: 0 UID: 0 PID: 231 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 27.537282] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.537347] Hardware name: linux,dummy-virt (DT) [ 27.537440] Call trace: [ 27.537496] show_stack+0x20/0x38 (C) [ 27.537617] dump_stack_lvl+0x8c/0xd0 [ 27.537732] print_report+0x118/0x608 [ 27.537838] kasan_report+0xdc/0x128 [ 27.537945] __asan_report_load1_noabort+0x20/0x30 [ 27.538063] mempool_uaf_helper+0x314/0x340 [ 27.538202] mempool_kmalloc_large_uaf+0xc4/0x120 [ 27.538443] kunit_try_run_case+0x170/0x3f0 [ 27.538733] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.539129] kthread+0x328/0x630 [ 27.539407] ret_from_fork+0x10/0x20 [ 27.539598] [ 27.539740] The buggy address belongs to the physical page: [ 27.539911] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077ec [ 27.540039] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 27.540191] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 27.540345] page_type: f8(unknown) [ 27.540469] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 27.540598] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 27.540999] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 27.541209] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 27.541583] head: 0bfffe0000000002 ffffc1ffc31dfb01 00000000ffffffff 00000000ffffffff [ 27.541774] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 27.541967] page dumped because: kasan: bad access detected [ 27.542098] [ 27.542144] Memory state around the buggy address: [ 27.542270] fff00000c77ebf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.542497] fff00000c77ebf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.542715] >fff00000c77ec000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.543068] ^ [ 27.543224] fff00000c77ec080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.543419] fff00000c77ec100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.543578] ==================================================================
[ 19.448034] ================================================================== [ 19.449141] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 19.450686] Read of size 1 at addr ffff88810a6d0000 by task kunit_try_catch/250 [ 19.451578] [ 19.451862] CPU: 1 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 19.452151] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.452192] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 19.452302] Call Trace: [ 19.452340] <TASK> [ 19.452366] dump_stack_lvl+0x73/0xb0 [ 19.452409] print_report+0xd1/0x650 [ 19.452446] ? __virt_addr_valid+0x1db/0x2d0 [ 19.452480] ? mempool_uaf_helper+0x392/0x400 [ 19.452514] ? kasan_addr_to_slab+0x11/0xa0 [ 19.452544] ? mempool_uaf_helper+0x392/0x400 [ 19.452578] kasan_report+0x141/0x180 [ 19.452685] ? mempool_uaf_helper+0x392/0x400 [ 19.452778] __asan_report_load1_noabort+0x18/0x20 [ 19.452815] mempool_uaf_helper+0x392/0x400 [ 19.452852] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 19.452888] ? dequeue_entities+0x852/0x1740 [ 19.452923] ? irqentry_exit+0x2a/0x60 [ 19.452951] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 19.452992] mempool_kmalloc_large_uaf+0xef/0x140 [ 19.453029] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 19.453069] ? __pfx_mempool_kmalloc+0x10/0x10 [ 19.453101] ? __pfx_mempool_kfree+0x10/0x10 [ 19.453131] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 19.453171] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 19.453210] kunit_try_run_case+0x1a5/0x480 [ 19.453287] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.453324] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 19.453360] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 19.453396] ? __kthread_parkme+0x82/0x180 [ 19.453429] ? preempt_count_sub+0x50/0x80 [ 19.453466] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.453502] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.453535] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 19.453569] kthread+0x337/0x6f0 [ 19.453592] ? trace_preempt_on+0x20/0xc0 [ 19.453687] ? __pfx_kthread+0x10/0x10 [ 19.453743] ? _raw_spin_unlock_irq+0x47/0x80 [ 19.453789] ? calculate_sigpending+0x7b/0xa0 [ 19.453824] ? __pfx_kthread+0x10/0x10 [ 19.453852] ret_from_fork+0x41/0x80 [ 19.453884] ? __pfx_kthread+0x10/0x10 [ 19.453910] ret_from_fork_asm+0x1a/0x30 [ 19.453954] </TASK> [ 19.453971] [ 19.475544] The buggy address belongs to the physical page: [ 19.476290] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a6d0 [ 19.477377] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.478418] flags: 0x200000000000040(head|node=0|zone=2) [ 19.479076] page_type: f8(unknown) [ 19.479512] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.480308] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.481103] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.481876] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.482834] head: 0200000000000002 ffffea000429b401 00000000ffffffff 00000000ffffffff [ 19.483824] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 19.484466] page dumped because: kasan: bad access detected [ 19.485172] [ 19.485395] Memory state around the buggy address: [ 19.486411] ffff88810a6cff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.487321] ffff88810a6cff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.488146] >ffff88810a6d0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.488824] ^ [ 19.489360] ffff88810a6d0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.490011] ffff88810a6d0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.491174] ================================================================== [ 19.568159] ================================================================== [ 19.569060] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 19.569547] Read of size 1 at addr ffff88810a6d4000 by task kunit_try_catch/254 [ 19.570343] [ 19.570641] CPU: 1 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 19.570889] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.570931] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 19.570989] Call Trace: [ 19.571028] <TASK> [ 19.571079] dump_stack_lvl+0x73/0xb0 [ 19.571163] print_report+0xd1/0x650 [ 19.571237] ? __virt_addr_valid+0x1db/0x2d0 [ 19.571313] ? mempool_uaf_helper+0x392/0x400 [ 19.571384] ? kasan_addr_to_slab+0x11/0xa0 [ 19.571449] ? mempool_uaf_helper+0x392/0x400 [ 19.571518] kasan_report+0x141/0x180 [ 19.571593] ? mempool_uaf_helper+0x392/0x400 [ 19.571978] __asan_report_load1_noabort+0x18/0x20 [ 19.572058] mempool_uaf_helper+0x392/0x400 [ 19.572138] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 19.572232] mempool_page_alloc_uaf+0xed/0x140 [ 19.572307] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 19.572375] ? dequeue_task_fair+0x166/0x4e0 [ 19.572454] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 19.572524] ? __pfx_mempool_free_pages+0x10/0x10 [ 19.572565] ? __pfx_read_tsc+0x10/0x10 [ 19.572599] ? ktime_get_ts64+0x86/0x230 [ 19.572704] kunit_try_run_case+0x1a5/0x480 [ 19.572790] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.572826] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 19.572865] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 19.572898] ? __kthread_parkme+0x82/0x180 [ 19.572930] ? preempt_count_sub+0x50/0x80 [ 19.572965] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.573000] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.573034] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 19.573068] kthread+0x337/0x6f0 [ 19.573091] ? trace_preempt_on+0x20/0xc0 [ 19.573125] ? __pfx_kthread+0x10/0x10 [ 19.573149] ? _raw_spin_unlock_irq+0x47/0x80 [ 19.573181] ? calculate_sigpending+0x7b/0xa0 [ 19.573214] ? __pfx_kthread+0x10/0x10 [ 19.573268] ret_from_fork+0x41/0x80 [ 19.573303] ? __pfx_kthread+0x10/0x10 [ 19.573328] ret_from_fork_asm+0x1a/0x30 [ 19.573371] </TASK> [ 19.573385] [ 19.593525] The buggy address belongs to the physical page: [ 19.594461] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a6d4 [ 19.595410] flags: 0x200000000000000(node=0|zone=2) [ 19.596252] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 19.597280] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 19.598028] page dumped because: kasan: bad access detected [ 19.598603] [ 19.598971] Memory state around the buggy address: [ 19.599664] ffff88810a6d3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.600148] ffff88810a6d3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.600909] >ffff88810a6d4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.602188] ^ [ 19.602518] ffff88810a6d4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.603522] ffff88810a6d4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.604144] ==================================================================