Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.353599] ================================================================== [ 17.353693] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 17.353921] Read of size 1 at addr fff00000c776c000 by task kunit_try_catch/234 [ 17.353972] [ 17.354023] CPU: 1 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.354108] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.354301] Hardware name: linux,dummy-virt (DT) [ 17.354399] Call trace: [ 17.354466] show_stack+0x20/0x38 (C) [ 17.354618] dump_stack_lvl+0x8c/0xd0 [ 17.354698] print_report+0x118/0x5d0 [ 17.354808] kasan_report+0xdc/0x128 [ 17.354853] __asan_report_load1_noabort+0x20/0x30 [ 17.354927] mempool_uaf_helper+0x314/0x340 [ 17.355225] mempool_page_alloc_uaf+0xc0/0x118 [ 17.355367] kunit_try_run_case+0x170/0x3f0 [ 17.355461] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.355515] kthread+0x328/0x630 [ 17.355854] ret_from_fork+0x10/0x20 [ 17.355996] [ 17.356096] The buggy address belongs to the physical page: [ 17.356165] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10776c [ 17.356217] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.356318] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 17.356600] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 17.356724] page dumped because: kasan: bad access detected [ 17.356802] [ 17.356897] Memory state around the buggy address: [ 17.356975] fff00000c776bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.357020] fff00000c776bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.357401] >fff00000c776c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.357500] ^ [ 17.357629] fff00000c776c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.357738] fff00000c776c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.357780] ================================================================== [ 17.314707] ================================================================== [ 17.314766] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 17.314816] Read of size 1 at addr fff00000c776c000 by task kunit_try_catch/230 [ 17.314866] [ 17.315134] CPU: 1 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.315470] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.315501] Hardware name: linux,dummy-virt (DT) [ 17.315869] Call trace: [ 17.315924] show_stack+0x20/0x38 (C) [ 17.316140] dump_stack_lvl+0x8c/0xd0 [ 17.316302] print_report+0x118/0x5d0 [ 17.316439] kasan_report+0xdc/0x128 [ 17.316759] __asan_report_load1_noabort+0x20/0x30 [ 17.317184] mempool_uaf_helper+0x314/0x340 [ 17.317288] mempool_kmalloc_large_uaf+0xc4/0x120 [ 17.317489] kunit_try_run_case+0x170/0x3f0 [ 17.317547] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.317601] kthread+0x328/0x630 [ 17.317643] ret_from_fork+0x10/0x20 [ 17.317690] [ 17.317717] The buggy address belongs to the physical page: [ 17.317751] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10776c [ 17.317805] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.317851] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.317904] page_type: f8(unknown) [ 17.317942] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.317992] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.318041] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.318090] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.318137] head: 0bfffe0000000002 ffffc1ffc31ddb01 00000000ffffffff 00000000ffffffff [ 17.318187] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.318227] page dumped because: kasan: bad access detected [ 17.318258] [ 17.318275] Memory state around the buggy address: [ 17.318307] fff00000c776bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.318377] fff00000c776bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.318429] >fff00000c776c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.318465] ^ [ 17.318503] fff00000c776c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.318556] fff00000c776c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.318844] ==================================================================
[ 13.637019] ================================================================== [ 13.637466] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 13.637714] Read of size 1 at addr ffff888103934000 by task kunit_try_catch/251 [ 13.637934] [ 13.638025] CPU: 1 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.638071] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.638083] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.638106] Call Trace: [ 13.638118] <TASK> [ 13.638135] dump_stack_lvl+0x73/0xb0 [ 13.638165] print_report+0xd1/0x610 [ 13.638186] ? __virt_addr_valid+0x1db/0x2d0 [ 13.638215] ? mempool_uaf_helper+0x392/0x400 [ 13.638237] ? kasan_addr_to_slab+0x11/0xa0 [ 13.638258] ? mempool_uaf_helper+0x392/0x400 [ 13.638280] kasan_report+0x141/0x180 [ 13.638302] ? mempool_uaf_helper+0x392/0x400 [ 13.638329] __asan_report_load1_noabort+0x18/0x20 [ 13.638353] mempool_uaf_helper+0x392/0x400 [ 13.638375] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 13.638397] ? __kasan_check_write+0x18/0x20 [ 13.638416] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.638438] ? finish_task_switch.isra.0+0x153/0x700 [ 13.638465] mempool_page_alloc_uaf+0xed/0x140 [ 13.638488] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 13.638549] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 13.638573] ? __pfx_mempool_free_pages+0x10/0x10 [ 13.638598] ? __pfx_read_tsc+0x10/0x10 [ 13.638620] ? ktime_get_ts64+0x86/0x230 [ 13.638644] kunit_try_run_case+0x1a5/0x480 [ 13.638803] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.638828] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.638854] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.638878] ? __kthread_parkme+0x82/0x180 [ 13.638898] ? preempt_count_sub+0x50/0x80 [ 13.639068] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.639101] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.639125] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.639150] kthread+0x337/0x6f0 [ 13.639542] ? trace_preempt_on+0x20/0xc0 [ 13.639569] ? __pfx_kthread+0x10/0x10 [ 13.639590] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.639611] ? calculate_sigpending+0x7b/0xa0 [ 13.639636] ? __pfx_kthread+0x10/0x10 [ 13.639657] ret_from_fork+0x116/0x1d0 [ 13.639676] ? __pfx_kthread+0x10/0x10 [ 13.639696] ret_from_fork_asm+0x1a/0x30 [ 13.639726] </TASK> [ 13.639736] [ 13.651410] The buggy address belongs to the physical page: [ 13.651893] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103934 [ 13.652404] flags: 0x200000000000000(node=0|zone=2) [ 13.652642] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 13.652969] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 13.653605] page dumped because: kasan: bad access detected [ 13.653883] [ 13.653979] Memory state around the buggy address: [ 13.654186] ffff888103933f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.654465] ffff888103933f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.654762] >ffff888103934000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.655042] ^ [ 13.655275] ffff888103934080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.655632] ffff888103934100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.655930] ================================================================== [ 13.579249] ================================================================== [ 13.579721] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 13.580031] Read of size 1 at addr ffff888103934000 by task kunit_try_catch/247 [ 13.580380] [ 13.580487] CPU: 1 UID: 0 PID: 247 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.580546] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.580558] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.580580] Call Trace: [ 13.580593] <TASK> [ 13.580609] dump_stack_lvl+0x73/0xb0 [ 13.580640] print_report+0xd1/0x610 [ 13.580663] ? __virt_addr_valid+0x1db/0x2d0 [ 13.580687] ? mempool_uaf_helper+0x392/0x400 [ 13.580709] ? kasan_addr_to_slab+0x11/0xa0 [ 13.580730] ? mempool_uaf_helper+0x392/0x400 [ 13.580752] kasan_report+0x141/0x180 [ 13.580774] ? mempool_uaf_helper+0x392/0x400 [ 13.580800] __asan_report_load1_noabort+0x18/0x20 [ 13.580825] mempool_uaf_helper+0x392/0x400 [ 13.580848] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 13.580869] ? update_load_avg+0x1be/0x21b0 [ 13.580894] ? update_load_avg+0x1be/0x21b0 [ 13.580915] ? update_curr+0x80/0x810 [ 13.580936] ? irqentry_exit+0x2a/0x60 [ 13.580958] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 13.580985] mempool_kmalloc_large_uaf+0xef/0x140 [ 13.581008] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 13.581034] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.581059] ? __pfx_mempool_kfree+0x10/0x10 [ 13.581082] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 13.581108] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 13.581134] kunit_try_run_case+0x1a5/0x480 [ 13.581159] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.581181] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.581227] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.581251] ? __kthread_parkme+0x82/0x180 [ 13.581272] ? preempt_count_sub+0x50/0x80 [ 13.581296] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.581320] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.581343] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.581367] kthread+0x337/0x6f0 [ 13.581385] ? trace_preempt_on+0x20/0xc0 [ 13.581409] ? __pfx_kthread+0x10/0x10 [ 13.581429] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.581450] ? calculate_sigpending+0x7b/0xa0 [ 13.581475] ? __pfx_kthread+0x10/0x10 [ 13.581506] ret_from_fork+0x116/0x1d0 [ 13.581527] ? __pfx_kthread+0x10/0x10 [ 13.581546] ret_from_fork_asm+0x1a/0x30 [ 13.581577] </TASK> [ 13.581587] [ 13.590444] The buggy address belongs to the physical page: [ 13.590733] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103934 [ 13.591211] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.591479] flags: 0x200000000000040(head|node=0|zone=2) [ 13.591706] page_type: f8(unknown) [ 13.591884] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.592411] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.592763] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.593055] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.593437] head: 0200000000000002 ffffea00040e4d01 00000000ffffffff 00000000ffffffff [ 13.593683] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 13.593914] page dumped because: kasan: bad access detected [ 13.594108] [ 13.594243] Memory state around the buggy address: [ 13.594465] ffff888103933f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.594788] ffff888103933f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.595106] >ffff888103934000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.595334] ^ [ 13.595452] ffff888103934080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.596085] ffff888103934100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.596750] ==================================================================