Date
June 23, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 35.672725] ================================================================== [ 35.672847] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 35.672987] Read of size 1 at addr fff00000c77b0000 by task kunit_try_catch/245 [ 35.673122] [ 35.673987] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT [ 35.674867] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.675311] Hardware name: linux,dummy-virt (DT) [ 35.675616] Call trace: [ 35.675683] show_stack+0x20/0x38 (C) [ 35.676394] dump_stack_lvl+0x8c/0xd0 [ 35.676643] print_report+0x118/0x608 [ 35.676822] kasan_report+0xdc/0x128 [ 35.677181] __asan_report_load1_noabort+0x20/0x30 [ 35.677557] mempool_uaf_helper+0x314/0x340 [ 35.677712] mempool_page_alloc_uaf+0xc0/0x118 [ 35.677851] kunit_try_run_case+0x170/0x3f0 [ 35.678487] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.678680] kthread+0x328/0x630 [ 35.678739] ret_from_fork+0x10/0x20 [ 35.678852] [ 35.679049] The buggy address belongs to the physical page: [ 35.679134] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077b0 [ 35.679577] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 35.680357] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 35.680481] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 35.680577] page dumped because: kasan: bad access detected [ 35.680651] [ 35.681077] Memory state around the buggy address: [ 35.681169] fff00000c77aff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.681390] fff00000c77aff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.681659] >fff00000c77b0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.682020] ^ [ 35.682399] fff00000c77b0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.682729] fff00000c77b0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.683118] ================================================================== [ 35.577853] ================================================================== [ 35.577923] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 35.577994] Read of size 1 at addr fff00000c77b0000 by task kunit_try_catch/241 [ 35.578101] [ 35.578175] CPU: 0 UID: 0 PID: 241 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT [ 35.578407] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.578474] Hardware name: linux,dummy-virt (DT) [ 35.578546] Call trace: [ 35.578602] show_stack+0x20/0x38 (C) [ 35.578719] dump_stack_lvl+0x8c/0xd0 [ 35.578843] print_report+0x118/0x608 [ 35.578957] kasan_report+0xdc/0x128 [ 35.579101] __asan_report_load1_noabort+0x20/0x30 [ 35.579464] mempool_uaf_helper+0x314/0x340 [ 35.579596] mempool_kmalloc_large_uaf+0xc4/0x120 [ 35.579729] kunit_try_run_case+0x170/0x3f0 [ 35.579847] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.579972] kthread+0x328/0x630 [ 35.580381] ret_from_fork+0x10/0x20 [ 35.581165] [ 35.581522] The buggy address belongs to the physical page: [ 35.581862] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077b0 [ 35.581995] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 35.583095] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 35.583793] page_type: f8(unknown) [ 35.584533] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 35.584718] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 35.585070] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 35.585210] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 35.585482] head: 0bfffe0000000002 ffffc1ffc31dec01 00000000ffffffff 00000000ffffffff [ 35.585985] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 35.586132] page dumped because: kasan: bad access detected [ 35.586211] [ 35.586254] Memory state around the buggy address: [ 35.586335] fff00000c77aff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.588115] fff00000c77aff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.588181] >fff00000c77b0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.588227] ^ [ 35.588291] fff00000c77b0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.588563] fff00000c77b0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.588674] ==================================================================
[ 23.499100] ================================================================== [ 23.499475] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 23.500071] Read of size 1 at addr ffff888103818000 by task kunit_try_catch/262 [ 23.500422] [ 23.500597] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) [ 23.500688] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.500710] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.500745] Call Trace: [ 23.500770] <TASK> [ 23.500797] dump_stack_lvl+0x73/0xb0 [ 23.500862] print_report+0xd1/0x650 [ 23.500896] ? __virt_addr_valid+0x1db/0x2d0 [ 23.500936] ? mempool_uaf_helper+0x392/0x400 [ 23.500972] ? kasan_addr_to_slab+0x11/0xa0 [ 23.501004] ? mempool_uaf_helper+0x392/0x400 [ 23.501039] kasan_report+0x141/0x180 [ 23.501075] ? mempool_uaf_helper+0x392/0x400 [ 23.501120] __asan_report_load1_noabort+0x18/0x20 [ 23.501156] mempool_uaf_helper+0x392/0x400 [ 23.501214] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 23.501256] ? __pfx_sched_clock_cpu+0x10/0x10 [ 23.501297] ? finish_task_switch.isra.0+0x153/0x700 [ 23.501343] mempool_page_alloc_uaf+0xed/0x140 [ 23.501399] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 23.501445] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 23.501487] ? __pfx_mempool_free_pages+0x10/0x10 [ 23.501532] ? __pfx_read_tsc+0x10/0x10 [ 23.501570] ? ktime_get_ts64+0x86/0x230 [ 23.501608] kunit_try_run_case+0x1a5/0x480 [ 23.501637] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.501656] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.501675] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.501695] ? __kthread_parkme+0x82/0x180 [ 23.501712] ? preempt_count_sub+0x50/0x80 [ 23.501732] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.501751] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.501770] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.501790] kthread+0x337/0x6f0 [ 23.501807] ? trace_preempt_on+0x20/0xc0 [ 23.501828] ? __pfx_kthread+0x10/0x10 [ 23.501855] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.501874] ? calculate_sigpending+0x7b/0xa0 [ 23.501894] ? __pfx_kthread+0x10/0x10 [ 23.501913] ret_from_fork+0x116/0x1d0 [ 23.501929] ? __pfx_kthread+0x10/0x10 [ 23.501946] ret_from_fork_asm+0x1a/0x30 [ 23.501972] </TASK> [ 23.501984] [ 23.511118] The buggy address belongs to the physical page: [ 23.511608] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88810381e600 pfn:0x103818 [ 23.512146] flags: 0x200000000000000(node=0|zone=2) [ 23.512350] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 23.512775] raw: ffff88810381e600 0000000000000000 00000001ffffffff 0000000000000000 [ 23.513240] page dumped because: kasan: bad access detected [ 23.513556] [ 23.513665] Memory state around the buggy address: [ 23.514066] ffff888103817f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.514485] ffff888103817f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.514763] >ffff888103818000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.515000] ^ [ 23.515271] ffff888103818080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.515830] ffff888103818100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.516514] ================================================================== [ 23.427703] ================================================================== [ 23.428624] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 23.429280] Read of size 1 at addr ffff888103818000 by task kunit_try_catch/258 [ 23.430135] [ 23.430348] CPU: 1 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) [ 23.430476] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.430503] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.430555] Call Trace: [ 23.430784] <TASK> [ 23.430819] dump_stack_lvl+0x73/0xb0 [ 23.430869] print_report+0xd1/0x650 [ 23.430892] ? __virt_addr_valid+0x1db/0x2d0 [ 23.430916] ? mempool_uaf_helper+0x392/0x400 [ 23.430936] ? kasan_addr_to_slab+0x11/0xa0 [ 23.430955] ? mempool_uaf_helper+0x392/0x400 [ 23.430974] kasan_report+0x141/0x180 [ 23.430994] ? mempool_uaf_helper+0x392/0x400 [ 23.431017] __asan_report_load1_noabort+0x18/0x20 [ 23.431037] mempool_uaf_helper+0x392/0x400 [ 23.431056] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 23.431092] ? __kasan_check_write+0x18/0x20 [ 23.431122] ? __pfx_sched_clock_cpu+0x10/0x10 [ 23.431151] ? finish_task_switch.isra.0+0x153/0x700 [ 23.431189] mempool_kmalloc_large_uaf+0xef/0x140 [ 23.431211] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 23.431232] ? __pfx_mempool_kmalloc+0x10/0x10 [ 23.431252] ? __pfx_mempool_kfree+0x10/0x10 [ 23.431273] ? __pfx_read_tsc+0x10/0x10 [ 23.431292] ? ktime_get_ts64+0x86/0x230 [ 23.431314] kunit_try_run_case+0x1a5/0x480 [ 23.431335] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.431353] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.431372] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.431412] ? __kthread_parkme+0x82/0x180 [ 23.431430] ? preempt_count_sub+0x50/0x80 [ 23.431449] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.431469] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.431489] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.431509] kthread+0x337/0x6f0 [ 23.431525] ? trace_preempt_on+0x20/0xc0 [ 23.431545] ? __pfx_kthread+0x10/0x10 [ 23.431563] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.431580] ? calculate_sigpending+0x7b/0xa0 [ 23.431601] ? __pfx_kthread+0x10/0x10 [ 23.431619] ret_from_fork+0x116/0x1d0 [ 23.431635] ? __pfx_kthread+0x10/0x10 [ 23.431652] ret_from_fork_asm+0x1a/0x30 [ 23.431680] </TASK> [ 23.431691] [ 23.444938] The buggy address belongs to the physical page: [ 23.445499] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810381e600 pfn:0x103818 [ 23.446319] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.446630] flags: 0x200000000000040(head|node=0|zone=2) [ 23.447036] page_type: f8(unknown) [ 23.447493] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.447977] raw: ffff88810381e600 0000000000000000 00000000f8000000 0000000000000000 [ 23.448524] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.448669] head: ffff88810381e600 0000000000000000 00000000f8000000 0000000000000000 [ 23.448789] head: 0200000000000002 ffffea00040e0601 00000000ffffffff 00000000ffffffff [ 23.449010] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 23.449471] page dumped because: kasan: bad access detected [ 23.449670] [ 23.449785] Memory state around the buggy address: [ 23.450123] ffff888103817f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.450347] ffff888103817f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.451339] >ffff888103818000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.451891] ^ [ 23.452277] ffff888103818080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.452703] ffff888103818100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.453324] ==================================================================