Date
July 17, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.686446] ================================================================== [ 18.686592] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 18.686655] Read of size 1 at addr fff00000c79b4000 by task kunit_try_catch/229 [ 18.686706] [ 18.687129] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.687295] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.687344] Hardware name: linux,dummy-virt (DT) [ 18.687378] Call trace: [ 18.687402] show_stack+0x20/0x38 (C) [ 18.687710] dump_stack_lvl+0x8c/0xd0 [ 18.687880] print_report+0x118/0x5d0 [ 18.687932] kasan_report+0xdc/0x128 [ 18.688095] __asan_report_load1_noabort+0x20/0x30 [ 18.688188] mempool_uaf_helper+0x314/0x340 [ 18.688234] mempool_kmalloc_large_uaf+0xc4/0x120 [ 18.688292] kunit_try_run_case+0x170/0x3f0 [ 18.688343] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.688395] kthread+0x328/0x630 [ 18.688448] ret_from_fork+0x10/0x20 [ 18.688494] [ 18.688516] The buggy address belongs to the physical page: [ 18.688551] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079b4 [ 18.688623] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.688671] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.688724] page_type: f8(unknown) [ 18.688762] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.688813] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.688884] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.688940] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.688988] head: 0bfffe0000000002 ffffc1ffc31e6d01 00000000ffffffff 00000000ffffffff [ 18.689038] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.689088] page dumped because: kasan: bad access detected [ 18.689127] [ 18.689145] Memory state around the buggy address: [ 18.689186] fff00000c79b3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.689230] fff00000c79b3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.689273] >fff00000c79b4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.689320] ^ [ 18.689347] fff00000c79b4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.689404] fff00000c79b4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.689443] ================================================================== [ 18.745345] ================================================================== [ 18.745502] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 18.745623] Read of size 1 at addr fff00000c79b4000 by task kunit_try_catch/233 [ 18.745676] [ 18.745731] CPU: 0 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.746133] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.746178] Hardware name: linux,dummy-virt (DT) [ 18.746226] Call trace: [ 18.746251] show_stack+0x20/0x38 (C) [ 18.746344] dump_stack_lvl+0x8c/0xd0 [ 18.746398] print_report+0x118/0x5d0 [ 18.746463] kasan_report+0xdc/0x128 [ 18.746565] __asan_report_load1_noabort+0x20/0x30 [ 18.746629] mempool_uaf_helper+0x314/0x340 [ 18.746677] mempool_page_alloc_uaf+0xc0/0x118 [ 18.746734] kunit_try_run_case+0x170/0x3f0 [ 18.746930] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.747127] kthread+0x328/0x630 [ 18.747266] ret_from_fork+0x10/0x20 [ 18.747339] [ 18.747364] The buggy address belongs to the physical page: [ 18.747400] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079b4 [ 18.747456] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.747612] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 18.747692] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 18.747878] page dumped because: kasan: bad access detected [ 18.747932] [ 18.748051] Memory state around the buggy address: [ 18.748106] fff00000c79b3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.748186] fff00000c79b3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.748458] >fff00000c79b4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.748589] ^ [ 18.748656] fff00000c79b4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.748823] fff00000c79b4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.748882] ==================================================================
[ 13.942602] ================================================================== [ 13.944132] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 13.944385] Read of size 1 at addr ffff888103ab8000 by task kunit_try_catch/250 [ 13.944637] [ 13.944991] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.945042] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.945064] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.945087] Call Trace: [ 13.945101] <TASK> [ 13.945120] dump_stack_lvl+0x73/0xb0 [ 13.945154] print_report+0xd1/0x610 [ 13.945176] ? __virt_addr_valid+0x1db/0x2d0 [ 13.945202] ? mempool_uaf_helper+0x392/0x400 [ 13.945223] ? kasan_addr_to_slab+0x11/0xa0 [ 13.945244] ? mempool_uaf_helper+0x392/0x400 [ 13.945266] kasan_report+0x141/0x180 [ 13.945288] ? mempool_uaf_helper+0x392/0x400 [ 13.945316] __asan_report_load1_noabort+0x18/0x20 [ 13.945340] mempool_uaf_helper+0x392/0x400 [ 13.945363] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 13.945386] ? __kasan_check_write+0x18/0x20 [ 13.945406] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.945429] ? finish_task_switch.isra.0+0x153/0x700 [ 13.945456] mempool_page_alloc_uaf+0xed/0x140 [ 13.945480] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 13.945506] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 13.945531] ? __pfx_mempool_free_pages+0x10/0x10 [ 13.945557] ? __pfx_read_tsc+0x10/0x10 [ 13.945579] ? ktime_get_ts64+0x86/0x230 [ 13.945640] kunit_try_run_case+0x1a5/0x480 [ 13.945669] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.945690] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.945728] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.945751] ? __kthread_parkme+0x82/0x180 [ 13.945773] ? preempt_count_sub+0x50/0x80 [ 13.945795] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.945819] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.945844] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.945868] kthread+0x337/0x6f0 [ 13.945886] ? trace_preempt_on+0x20/0xc0 [ 13.945912] ? __pfx_kthread+0x10/0x10 [ 13.945932] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.945953] ? calculate_sigpending+0x7b/0xa0 [ 13.945978] ? __pfx_kthread+0x10/0x10 [ 13.946000] ret_from_fork+0x116/0x1d0 [ 13.946018] ? __pfx_kthread+0x10/0x10 [ 13.946038] ret_from_fork_asm+0x1a/0x30 [ 13.946080] </TASK> [ 13.946092] [ 13.963367] The buggy address belongs to the physical page: [ 13.963565] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ab8 [ 13.964518] flags: 0x200000000000000(node=0|zone=2) [ 13.964878] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 13.965142] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 13.965372] page dumped because: kasan: bad access detected [ 13.965547] [ 13.965654] Memory state around the buggy address: [ 13.966198] ffff888103ab7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.966726] ffff888103ab7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.967539] >ffff888103ab8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.968065] ^ [ 13.968192] ffff888103ab8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.968411] ffff888103ab8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.968644] ================================================================== [ 13.859127] ================================================================== [ 13.860209] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 13.860722] Read of size 1 at addr ffff888102b44000 by task kunit_try_catch/246 [ 13.861002] [ 13.861149] CPU: 1 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.861199] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.861210] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.861234] Call Trace: [ 13.861246] <TASK> [ 13.861264] dump_stack_lvl+0x73/0xb0 [ 13.861295] print_report+0xd1/0x610 [ 13.861317] ? __virt_addr_valid+0x1db/0x2d0 [ 13.861340] ? mempool_uaf_helper+0x392/0x400 [ 13.861363] ? kasan_addr_to_slab+0x11/0xa0 [ 13.861383] ? mempool_uaf_helper+0x392/0x400 [ 13.861405] kasan_report+0x141/0x180 [ 13.861427] ? mempool_uaf_helper+0x392/0x400 [ 13.861454] __asan_report_load1_noabort+0x18/0x20 [ 13.861479] mempool_uaf_helper+0x392/0x400 [ 13.861501] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 13.861528] ? finish_task_switch.isra.0+0x153/0x700 [ 13.861555] mempool_kmalloc_large_uaf+0xef/0x140 [ 13.861579] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 13.861694] ? __pfx_mempool_kmalloc+0x10/0x10 [ 13.861720] ? __pfx_mempool_kfree+0x10/0x10 [ 13.861757] ? __pfx_read_tsc+0x10/0x10 [ 13.861777] ? ktime_get_ts64+0x86/0x230 [ 13.861803] kunit_try_run_case+0x1a5/0x480 [ 13.861929] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.861952] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.862088] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.862118] ? __kthread_parkme+0x82/0x180 [ 13.862138] ? preempt_count_sub+0x50/0x80 [ 13.862162] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.862186] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.862211] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.862240] kthread+0x337/0x6f0 [ 13.862259] ? trace_preempt_on+0x20/0xc0 [ 13.862282] ? __pfx_kthread+0x10/0x10 [ 13.862302] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.862324] ? calculate_sigpending+0x7b/0xa0 [ 13.862348] ? __pfx_kthread+0x10/0x10 [ 13.862369] ret_from_fork+0x116/0x1d0 [ 13.862387] ? __pfx_kthread+0x10/0x10 [ 13.862407] ret_from_fork_asm+0x1a/0x30 [ 13.862440] </TASK> [ 13.862451] [ 13.876724] The buggy address belongs to the physical page: [ 13.877124] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b44 [ 13.877373] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.877652] flags: 0x200000000000040(head|node=0|zone=2) [ 13.878451] page_type: f8(unknown) [ 13.878853] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.879844] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.880639] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.881037] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.881287] head: 0200000000000002 ffffea00040ad101 00000000ffffffff 00000000ffffffff [ 13.881514] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 13.882296] page dumped because: kasan: bad access detected [ 13.883302] [ 13.883479] Memory state around the buggy address: [ 13.884072] ffff888102b43f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.884704] ffff888102b43f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.885508] >ffff888102b44000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.886165] ^ [ 13.886300] ffff888102b44080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.886520] ffff888102b44100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 13.886754] ==================================================================