Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.979359] ================================================================== [ 21.979498] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 21.979624] Read of size 1 at addr fff00000c79b4000 by task kunit_try_catch/234 [ 21.979740] [ 21.979835] CPU: 1 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.980032] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.981247] Hardware name: linux,dummy-virt (DT) [ 21.982313] Call trace: [ 21.982386] show_stack+0x20/0x38 (C) [ 21.982551] dump_stack_lvl+0x8c/0xd0 [ 21.982714] print_report+0x118/0x608 [ 21.982859] kasan_report+0xdc/0x128 [ 21.982956] __asan_report_load1_noabort+0x20/0x30 [ 21.983737] mempool_uaf_helper+0x314/0x340 [ 21.983899] mempool_page_alloc_uaf+0xc0/0x118 [ 21.984019] kunit_try_run_case+0x170/0x3f0 [ 21.984136] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.984250] kthread+0x328/0x630 [ 21.984358] ret_from_fork+0x10/0x20 [ 21.984472] [ 21.984533] The buggy address belongs to the physical page: [ 21.984610] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079b4 [ 21.984733] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.985287] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 21.985770] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.986161] page dumped because: kasan: bad access detected [ 21.986240] [ 21.986281] Memory state around the buggy address: [ 21.986363] fff00000c79b3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.986470] fff00000c79b3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.986584] >fff00000c79b4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.986681] ^ [ 21.987087] fff00000c79b4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.987481] fff00000c79b4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.988069] ================================================================== [ 21.891767] ================================================================== [ 21.891931] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 21.892059] Read of size 1 at addr fff00000c79b4000 by task kunit_try_catch/230 [ 21.892165] [ 21.892239] CPU: 1 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.892424] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.892487] Hardware name: linux,dummy-virt (DT) [ 21.892553] Call trace: [ 21.892603] show_stack+0x20/0x38 (C) [ 21.893250] dump_stack_lvl+0x8c/0xd0 [ 21.893438] print_report+0x118/0x608 [ 21.893558] kasan_report+0xdc/0x128 [ 21.893728] __asan_report_load1_noabort+0x20/0x30 [ 21.893852] mempool_uaf_helper+0x314/0x340 [ 21.893952] mempool_kmalloc_large_uaf+0xc4/0x120 [ 21.894056] kunit_try_run_case+0x170/0x3f0 [ 21.894148] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.894245] kthread+0x328/0x630 [ 21.894327] ret_from_fork+0x10/0x20 [ 21.894432] [ 21.894477] The buggy address belongs to the physical page: [ 21.894776] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079b4 [ 21.895030] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.895155] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.895290] page_type: f8(unknown) [ 21.895834] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.895974] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.896405] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.896661] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.897081] head: 0bfffe0000000002 ffffc1ffc31e6d01 00000000ffffffff 00000000ffffffff [ 21.897322] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 21.897537] page dumped because: kasan: bad access detected [ 21.897638] [ 21.897686] Memory state around the buggy address: [ 21.898102] fff00000c79b3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.898214] fff00000c79b3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.898549] >fff00000c79b4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.898940] ^ [ 21.899017] fff00000c79b4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.899342] fff00000c79b4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 21.899580] ==================================================================
[ 14.169736] ================================================================== [ 14.170367] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.170644] Read of size 1 at addr ffff888103b74000 by task kunit_try_catch/247 [ 14.171771] [ 14.171895] CPU: 1 UID: 0 PID: 247 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.171941] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.171952] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.171974] Call Trace: [ 14.171986] <TASK> [ 14.172000] dump_stack_lvl+0x73/0xb0 [ 14.172031] print_report+0xd1/0x650 [ 14.172053] ? __virt_addr_valid+0x1db/0x2d0 [ 14.172077] ? mempool_uaf_helper+0x392/0x400 [ 14.172099] ? kasan_addr_to_slab+0x11/0xa0 [ 14.172119] ? mempool_uaf_helper+0x392/0x400 [ 14.172142] kasan_report+0x141/0x180 [ 14.172164] ? mempool_uaf_helper+0x392/0x400 [ 14.172190] __asan_report_load1_noabort+0x18/0x20 [ 14.172215] mempool_uaf_helper+0x392/0x400 [ 14.172254] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.172282] ? mempool_alloc_preallocated+0x5b/0x90 [ 14.172314] mempool_kmalloc_large_uaf+0xef/0x140 [ 14.172338] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 14.172375] ? __pfx_mempool_kmalloc+0x10/0x10 [ 14.172398] ? __pfx_mempool_kfree+0x10/0x10 [ 14.172423] ? __pfx_read_tsc+0x10/0x10 [ 14.172444] ? ktime_get_ts64+0x86/0x230 [ 14.172467] kunit_try_run_case+0x1a5/0x480 [ 14.172491] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.172514] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.172539] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.172563] ? __kthread_parkme+0x82/0x180 [ 14.172584] ? preempt_count_sub+0x50/0x80 [ 14.172610] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.172633] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.172674] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.172723] kthread+0x337/0x6f0 [ 14.172742] ? trace_preempt_on+0x20/0xc0 [ 14.172777] ? __pfx_kthread+0x10/0x10 [ 14.172798] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.172819] ? calculate_sigpending+0x7b/0xa0 [ 14.172843] ? __pfx_kthread+0x10/0x10 [ 14.172865] ret_from_fork+0x116/0x1d0 [ 14.172883] ? __pfx_kthread+0x10/0x10 [ 14.172904] ret_from_fork_asm+0x1a/0x30 [ 14.172934] </TASK> [ 14.172945] [ 14.186322] The buggy address belongs to the physical page: [ 14.186883] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b74 [ 14.187774] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 14.188096] flags: 0x200000000000040(head|node=0|zone=2) [ 14.188278] page_type: f8(unknown) [ 14.188405] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.188635] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.189448] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 14.190260] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 14.191142] head: 0200000000000002 ffffea00040edd01 00000000ffffffff 00000000ffffffff [ 14.191903] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 14.192563] page dumped because: kasan: bad access detected [ 14.193088] [ 14.193162] Memory state around the buggy address: [ 14.193319] ffff888103b73f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.193536] ffff888103b73f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.193782] >ffff888103b74000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.194185] ^ [ 14.194341] ffff888103b74080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.194587] ffff888103b74100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.194899] ================================================================== [ 14.241740] ================================================================== [ 14.242171] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 14.242404] Read of size 1 at addr ffff888103b74000 by task kunit_try_catch/251 [ 14.242626] [ 14.243367] CPU: 1 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.243419] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.243433] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.243456] Call Trace: [ 14.243469] <TASK> [ 14.243486] dump_stack_lvl+0x73/0xb0 [ 14.243518] print_report+0xd1/0x650 [ 14.243541] ? __virt_addr_valid+0x1db/0x2d0 [ 14.243564] ? mempool_uaf_helper+0x392/0x400 [ 14.243587] ? kasan_addr_to_slab+0x11/0xa0 [ 14.243607] ? mempool_uaf_helper+0x392/0x400 [ 14.243630] kasan_report+0x141/0x180 [ 14.243810] ? mempool_uaf_helper+0x392/0x400 [ 14.243848] __asan_report_load1_noabort+0x18/0x20 [ 14.243916] mempool_uaf_helper+0x392/0x400 [ 14.243941] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 14.243966] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.243991] ? finish_task_switch.isra.0+0x153/0x700 [ 14.244018] mempool_page_alloc_uaf+0xed/0x140 [ 14.244041] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 14.244069] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 14.244096] ? __pfx_mempool_free_pages+0x10/0x10 [ 14.244123] ? __pfx_read_tsc+0x10/0x10 [ 14.244144] ? ktime_get_ts64+0x86/0x230 [ 14.244169] kunit_try_run_case+0x1a5/0x480 [ 14.244195] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.244218] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.244243] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.244267] ? __kthread_parkme+0x82/0x180 [ 14.244288] ? preempt_count_sub+0x50/0x80 [ 14.244311] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.244335] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.244360] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.244386] kthread+0x337/0x6f0 [ 14.244405] ? trace_preempt_on+0x20/0xc0 [ 14.244429] ? __pfx_kthread+0x10/0x10 [ 14.244449] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.244470] ? calculate_sigpending+0x7b/0xa0 [ 14.244494] ? __pfx_kthread+0x10/0x10 [ 14.244516] ret_from_fork+0x116/0x1d0 [ 14.244535] ? __pfx_kthread+0x10/0x10 [ 14.244556] ret_from_fork_asm+0x1a/0x30 [ 14.244586] </TASK> [ 14.244596] [ 14.259552] The buggy address belongs to the physical page: [ 14.260240] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b74 [ 14.260630] flags: 0x200000000000000(node=0|zone=2) [ 14.260821] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 14.261048] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 14.261266] page dumped because: kasan: bad access detected [ 14.261434] [ 14.261502] Memory state around the buggy address: [ 14.261665] ffff888103b73f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.262291] ffff888103b73f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.263011] >ffff888103b74000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.263677] ^ [ 14.264043] ffff888103b74080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.264668] ffff888103b74100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 14.265288] ==================================================================