Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.944830] ================================================================== [ 19.944885] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 19.944934] Read of size 1 at addr fff00000c7750000 by task kunit_try_catch/229 [ 19.944983] [ 19.945010] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 19.945094] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.945120] Hardware name: linux,dummy-virt (DT) [ 19.945151] Call trace: [ 19.945188] show_stack+0x20/0x38 (C) [ 19.945234] dump_stack_lvl+0x8c/0xd0 [ 19.945280] print_report+0x118/0x608 [ 19.945368] kasan_report+0xdc/0x128 [ 19.945427] __asan_report_load1_noabort+0x20/0x30 [ 19.945477] mempool_uaf_helper+0x314/0x340 [ 19.945520] mempool_kmalloc_large_uaf+0xc4/0x120 [ 19.945566] kunit_try_run_case+0x170/0x3f0 [ 19.945629] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.945692] kthread+0x328/0x630 [ 19.945764] ret_from_fork+0x10/0x20 [ 19.945808] [ 19.945836] The buggy address belongs to the physical page: [ 19.945868] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107750 [ 19.945920] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.945966] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.946016] page_type: f8(unknown) [ 19.946052] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.946102] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.946151] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.946292] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.946343] head: 0bfffe0000000002 ffffc1ffc31dd401 00000000ffffffff 00000000ffffffff [ 19.946393] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 19.946432] page dumped because: kasan: bad access detected [ 19.946485] [ 19.946504] Memory state around the buggy address: [ 19.946536] fff00000c774ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.946580] fff00000c774ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.946623] >fff00000c7750000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.946691] ^ [ 19.946722] fff00000c7750080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.946827] fff00000c7750100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.946919] ================================================================== [ 19.981390] ================================================================== [ 19.981501] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 19.981618] Read of size 1 at addr fff00000c7868000 by task kunit_try_catch/233 [ 19.981696] [ 19.981731] CPU: 0 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 19.981898] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.982023] Hardware name: linux,dummy-virt (DT) [ 19.982062] Call trace: [ 19.982087] show_stack+0x20/0x38 (C) [ 19.982136] dump_stack_lvl+0x8c/0xd0 [ 19.982195] print_report+0x118/0x608 [ 19.982402] kasan_report+0xdc/0x128 [ 19.982447] __asan_report_load1_noabort+0x20/0x30 [ 19.982495] mempool_uaf_helper+0x314/0x340 [ 19.982540] mempool_page_alloc_uaf+0xc0/0x118 [ 19.982585] kunit_try_run_case+0x170/0x3f0 [ 19.982665] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.982867] kthread+0x328/0x630 [ 19.982937] ret_from_fork+0x10/0x20 [ 19.985170] [ 19.985201] The buggy address belongs to the physical page: [ 19.985233] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107868 [ 19.985287] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.985350] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 19.985398] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 19.985438] page dumped because: kasan: bad access detected [ 19.985470] [ 19.985488] Memory state around the buggy address: [ 19.985519] fff00000c7867f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.985560] fff00000c7867f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.985601] >fff00000c7868000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.985638] ^ [ 19.985666] fff00000c7868080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.985707] fff00000c7868100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.985744] ==================================================================
[ 15.853734] ================================================================== [ 15.854210] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 15.854782] Read of size 1 at addr ffff888103c2c000 by task kunit_try_catch/251 [ 15.855058] [ 15.855319] CPU: 1 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 15.855931] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.855957] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.855996] Call Trace: [ 15.856024] <TASK> [ 15.856059] dump_stack_lvl+0x73/0xb0 [ 15.856399] print_report+0xd1/0x650 [ 15.856429] ? __virt_addr_valid+0x1db/0x2d0 [ 15.856456] ? mempool_uaf_helper+0x392/0x400 [ 15.856617] ? kasan_addr_to_slab+0x11/0xa0 [ 15.856649] ? mempool_uaf_helper+0x392/0x400 [ 15.856672] kasan_report+0x141/0x180 [ 15.856696] ? mempool_uaf_helper+0x392/0x400 [ 15.856722] __asan_report_load1_noabort+0x18/0x20 [ 15.856742] mempool_uaf_helper+0x392/0x400 [ 15.856764] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 15.856788] ? __pfx_sched_clock_cpu+0x10/0x10 [ 15.856810] ? finish_task_switch.isra.0+0x153/0x700 [ 15.856835] mempool_page_alloc_uaf+0xed/0x140 [ 15.856858] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 15.856883] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 15.856905] ? __pfx_mempool_free_pages+0x10/0x10 [ 15.856927] ? __pfx_read_tsc+0x10/0x10 [ 15.856948] ? ktime_get_ts64+0x86/0x230 [ 15.856972] kunit_try_run_case+0x1a5/0x480 [ 15.856997] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.857018] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.857040] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.857062] ? __kthread_parkme+0x82/0x180 [ 15.857083] ? preempt_count_sub+0x50/0x80 [ 15.857105] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.857127] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.857149] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.857171] kthread+0x337/0x6f0 [ 15.857189] ? trace_preempt_on+0x20/0xc0 [ 15.857212] ? __pfx_kthread+0x10/0x10 [ 15.857255] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.857275] ? calculate_sigpending+0x7b/0xa0 [ 15.857298] ? __pfx_kthread+0x10/0x10 [ 15.857319] ret_from_fork+0x116/0x1d0 [ 15.857337] ? __pfx_kthread+0x10/0x10 [ 15.857356] ret_from_fork_asm+0x1a/0x30 [ 15.857388] </TASK> [ 15.857401] [ 15.870560] The buggy address belongs to the physical page: [ 15.871493] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c2c [ 15.872347] flags: 0x200000000000000(node=0|zone=2) [ 15.872922] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 15.873435] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 15.873914] page dumped because: kasan: bad access detected [ 15.874139] [ 15.874321] Memory state around the buggy address: [ 15.874550] ffff888103c2bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.874866] ffff888103c2bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.875332] >ffff888103c2c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.876178] ^ [ 15.876445] ffff888103c2c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.877084] ffff888103c2c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.877423] ================================================================== [ 15.772423] ================================================================== [ 15.773192] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 15.773647] Read of size 1 at addr ffff888103c2c000 by task kunit_try_catch/247 [ 15.774105] [ 15.774269] CPU: 1 UID: 0 PID: 247 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 15.774381] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.774408] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.774449] Call Trace: [ 15.774475] <TASK> [ 15.774508] dump_stack_lvl+0x73/0xb0 [ 15.774565] print_report+0xd1/0x650 [ 15.774613] ? __virt_addr_valid+0x1db/0x2d0 [ 15.774663] ? mempool_uaf_helper+0x392/0x400 [ 15.774710] ? kasan_addr_to_slab+0x11/0xa0 [ 15.774751] ? mempool_uaf_helper+0x392/0x400 [ 15.774790] kasan_report+0x141/0x180 [ 15.774834] ? mempool_uaf_helper+0x392/0x400 [ 15.774886] __asan_report_load1_noabort+0x18/0x20 [ 15.774924] mempool_uaf_helper+0x392/0x400 [ 15.774965] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 15.775014] ? __pfx_sched_clock_cpu+0x10/0x10 [ 15.775058] ? finish_task_switch.isra.0+0x153/0x700 [ 15.775118] mempool_kmalloc_large_uaf+0xef/0x140 [ 15.775155] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 15.775214] ? __pfx_mempool_kmalloc+0x10/0x10 [ 15.775265] ? __pfx_mempool_kfree+0x10/0x10 [ 15.775304] ? __pfx_read_tsc+0x10/0x10 [ 15.775343] ? ktime_get_ts64+0x86/0x230 [ 15.775388] kunit_try_run_case+0x1a5/0x480 [ 15.775431] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.775493] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.775539] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.775587] ? __kthread_parkme+0x82/0x180 [ 15.775626] ? preempt_count_sub+0x50/0x80 [ 15.775667] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.775708] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.775751] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.775790] kthread+0x337/0x6f0 [ 15.775819] ? trace_preempt_on+0x20/0xc0 [ 15.775855] ? __pfx_kthread+0x10/0x10 [ 15.775888] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.775928] ? calculate_sigpending+0x7b/0xa0 [ 15.775974] ? __pfx_kthread+0x10/0x10 [ 15.776035] ret_from_fork+0x116/0x1d0 [ 15.776056] ? __pfx_kthread+0x10/0x10 [ 15.776077] ret_from_fork_asm+0x1a/0x30 [ 15.776109] </TASK> [ 15.776123] [ 15.786754] The buggy address belongs to the physical page: [ 15.787162] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c2c [ 15.787860] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.788268] flags: 0x200000000000040(head|node=0|zone=2) [ 15.788751] page_type: f8(unknown) [ 15.788937] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.789433] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.789992] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.790851] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.791425] head: 0200000000000002 ffffea00040f0b01 00000000ffffffff 00000000ffffffff [ 15.791931] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.792312] page dumped because: kasan: bad access detected [ 15.792718] [ 15.792888] Memory state around the buggy address: [ 15.793143] ffff888103c2bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.793580] ffff888103c2bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.793848] >ffff888103c2c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.794278] ^ [ 15.794676] ffff888103c2c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.795154] ffff888103c2c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.795412] ==================================================================