Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.105823] ================================================================== [ 20.105885] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 20.105938] Read of size 1 at addr fff00000c77f8000 by task kunit_try_catch/229 [ 20.105988] [ 20.106021] CPU: 1 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.106103] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.106146] Hardware name: linux,dummy-virt (DT) [ 20.106178] Call trace: [ 20.106201] show_stack+0x20/0x38 (C) [ 20.106250] dump_stack_lvl+0x8c/0xd0 [ 20.106309] print_report+0x118/0x608 [ 20.106354] kasan_report+0xdc/0x128 [ 20.106400] __asan_report_load1_noabort+0x20/0x30 [ 20.106451] mempool_uaf_helper+0x314/0x340 [ 20.106495] mempool_kmalloc_large_uaf+0xc4/0x120 [ 20.106552] kunit_try_run_case+0x170/0x3f0 [ 20.106600] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.106649] kthread+0x328/0x630 [ 20.106689] ret_from_fork+0x10/0x20 [ 20.106741] [ 20.106762] The buggy address belongs to the physical page: [ 20.106793] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077f8 [ 20.106859] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.106904] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 20.106985] page_type: f8(unknown) [ 20.107024] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.107331] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.107393] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 20.107502] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 20.107563] head: 0bfffe0000000002 ffffc1ffc31dfe01 00000000ffffffff 00000000ffffffff [ 20.107691] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 20.107912] page dumped because: kasan: bad access detected [ 20.107944] [ 20.107962] Memory state around the buggy address: [ 20.107997] fff00000c77f7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.108236] fff00000c77f7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.108318] >fff00000c77f8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.108415] ^ [ 20.108466] fff00000c77f8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.108546] fff00000c77f8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.108619] ================================================================== [ 20.148975] ================================================================== [ 20.149059] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 20.149168] Read of size 1 at addr fff00000c77fc000 by task kunit_try_catch/233 [ 20.149270] [ 20.149500] CPU: 1 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.149686] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.149744] Hardware name: linux,dummy-virt (DT) [ 20.150006] Call trace: [ 20.150147] show_stack+0x20/0x38 (C) [ 20.150307] dump_stack_lvl+0x8c/0xd0 [ 20.150360] print_report+0x118/0x608 [ 20.150420] kasan_report+0xdc/0x128 [ 20.150466] __asan_report_load1_noabort+0x20/0x30 [ 20.150607] mempool_uaf_helper+0x314/0x340 [ 20.150654] mempool_page_alloc_uaf+0xc0/0x118 [ 20.150796] kunit_try_run_case+0x170/0x3f0 [ 20.150892] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.151073] kthread+0x328/0x630 [ 20.151156] ret_from_fork+0x10/0x20 [ 20.151227] [ 20.151248] The buggy address belongs to the physical page: [ 20.151621] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077fc [ 20.151772] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.151938] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.152108] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.152183] page dumped because: kasan: bad access detected [ 20.152215] [ 20.152361] Memory state around the buggy address: [ 20.152607] fff00000c77fbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.152843] fff00000c77fbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.152958] >fff00000c77fc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.153033] ^ [ 20.153063] fff00000c77fc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.153111] fff00000c77fc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 20.153423] ==================================================================
[ 13.614108] ================================================================== [ 13.615297] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 13.615847] Read of size 1 at addr ffff8881039bc000 by task kunit_try_catch/250 [ 13.616084] [ 13.616185] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.616301] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.616317] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.616341] Call Trace: [ 13.616358] <TASK> [ 13.616377] dump_stack_lvl+0x73/0xb0 [ 13.616412] print_report+0xd1/0x650 [ 13.616437] ? __virt_addr_valid+0x1db/0x2d0 [ 13.616474] ? mempool_uaf_helper+0x392/0x400 [ 13.616499] ? kasan_addr_to_slab+0x11/0xa0 [ 13.616519] ? mempool_uaf_helper+0x392/0x400 [ 13.616540] kasan_report+0x141/0x180 [ 13.616561] ? mempool_uaf_helper+0x392/0x400 [ 13.616588] __asan_report_load1_noabort+0x18/0x20 [ 13.616612] mempool_uaf_helper+0x392/0x400 [ 13.616634] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 13.616657] ? __kasan_check_write+0x18/0x20 [ 13.616676] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.616698] ? finish_task_switch.isra.0+0x153/0x700 [ 13.616724] mempool_page_alloc_uaf+0xed/0x140 [ 13.616746] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 13.616771] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 13.616799] ? __pfx_mempool_free_pages+0x10/0x10 [ 13.616821] ? __pfx_read_tsc+0x10/0x10 [ 13.616842] ? ktime_get_ts64+0x86/0x230 [ 13.616867] kunit_try_run_case+0x1a5/0x480 [ 13.616893] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.616914] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.616938] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.616961] ? __kthread_parkme+0x82/0x180 [ 13.616981] ? preempt_count_sub+0x50/0x80 [ 13.617004] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.617027] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.617049] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.617072] kthread+0x337/0x6f0 [ 13.617091] ? trace_preempt_on+0x20/0xc0 [ 13.617114] ? __pfx_kthread+0x10/0x10 [ 13.617133] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.617153] ? calculate_sigpending+0x7b/0xa0 [ 13.617177] ? __pfx_kthread+0x10/0x10 [ 13.617198] ret_from_fork+0x116/0x1d0 [ 13.617227] ? __pfx_kthread+0x10/0x10 [ 13.617247] ret_from_fork_asm+0x1a/0x30 [ 13.617279] </TASK> [ 13.617290] [ 13.630250] The buggy address belongs to the physical page: [ 13.630893] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039bc [ 13.631422] flags: 0x200000000000000(node=0|zone=2) [ 13.631850] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 13.632113] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 13.632521] page dumped because: kasan: bad access detected [ 13.632737] [ 13.632847] Memory state around the buggy address: [ 13.633047] ffff8881039bbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.633449] ffff8881039bbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.633771] >ffff8881039bc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.634118] ^ [ 13.634319] ffff8881039bc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.634614] ffff8881039bc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.634871] ================================================================== [ 13.530749] ================================================================== [ 13.531268] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 13.531844] Read of size 1 at addr ffff8881039bc000 by task kunit_try_catch/246 [ 13.532194] [ 13.532479] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.532535] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.532548] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.532572] Call Trace: [ 13.532590] <TASK> [ 13.532610] dump_stack_lvl+0x73/0xb0 [ 13.532647] print_report+0xd1/0x650 [ 13.532672] ? __virt_addr_valid+0x1db/0x2d0 [ 13.532697] ? mempool_uaf_helper+0x392/0x400 [ 13.532719] ? kasan_addr_to_slab+0x11/0xa0 [ 13.532739] ? mempool_uaf_helper+0x392/0x400 [ 13.532817] kasan_report+0x141/0x180 [ 13.532839] ? mempool_uaf_helper+0x392/0x400 [ 13.532886] __asan_report_load1_noabort+0x18/0x20 [ 13.532911] mempool_uaf_helper+0x392/0x400 [ 13.532933] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 13.532956] ? __kasan_check_write+0x18/0x20 [ 13.532975] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.532999] ? finish_task_switch.isra.0+0x153/0x700 [ 13.533087] mempool_kmalloc_large_uaf+0xef/0x140 [ 13.533129] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 13.533155] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.533181] ? __pfx_mempool_kfree+0x10/0x10 [ 13.533233] ? __pfx_read_tsc+0x10/0x10 [ 13.533255] ? ktime_get_ts64+0x86/0x230 [ 13.533280] kunit_try_run_case+0x1a5/0x480 [ 13.533307] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.533329] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.533354] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.533376] ? __kthread_parkme+0x82/0x180 [ 13.533398] ? preempt_count_sub+0x50/0x80 [ 13.533420] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.533443] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.533465] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.533488] kthread+0x337/0x6f0 [ 13.533507] ? trace_preempt_on+0x20/0xc0 [ 13.533531] ? __pfx_kthread+0x10/0x10 [ 13.533551] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.533572] ? calculate_sigpending+0x7b/0xa0 [ 13.533597] ? __pfx_kthread+0x10/0x10 [ 13.533618] ret_from_fork+0x116/0x1d0 [ 13.533637] ? __pfx_kthread+0x10/0x10 [ 13.533657] ret_from_fork_asm+0x1a/0x30 [ 13.533689] </TASK> [ 13.533700] [ 13.547163] The buggy address belongs to the physical page: [ 13.547513] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039bc [ 13.547908] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.548241] flags: 0x200000000000040(head|node=0|zone=2) [ 13.548806] page_type: f8(unknown) [ 13.549034] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.550009] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.550623] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.550944] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.551677] head: 0200000000000002 ffffea00040e6f01 00000000ffffffff 00000000ffffffff [ 13.552026] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 13.552561] page dumped because: kasan: bad access detected [ 13.553316] [ 13.553440] Memory state around the buggy address: [ 13.554071] ffff8881039bbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.554490] ffff8881039bbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.554914] >ffff8881039bc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.555555] ^ [ 13.555704] ffff8881039bc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.556109] ffff8881039bc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.556713] ==================================================================