Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.098707] ================================================================== [ 15.098762] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 15.098814] Read of size 1 at addr fff00000c7710000 by task kunit_try_catch/155 [ 15.098863] [ 15.098896] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.098982] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.099008] Hardware name: linux,dummy-virt (DT) [ 15.099039] Call trace: [ 15.099060] show_stack+0x20/0x38 (C) [ 15.099108] dump_stack_lvl+0x8c/0xd0 [ 15.099153] print_report+0x118/0x5d0 [ 15.099198] kasan_report+0xdc/0x128 [ 15.099593] __asan_report_load1_noabort+0x20/0x30 [ 15.099650] page_alloc_uaf+0x328/0x350 [ 15.099790] kunit_try_run_case+0x170/0x3f0 [ 15.099855] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.099974] kthread+0x328/0x630 [ 15.100078] ret_from_fork+0x10/0x20 [ 15.100130] [ 15.100242] The buggy address belongs to the physical page: [ 15.100328] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107710 [ 15.100379] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.100433] page_type: f0(buddy) [ 15.100576] raw: 0bfffe0000000000 fff00000ff6160a0 fff00000ff6160a0 0000000000000000 [ 15.100717] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 15.100757] page dumped because: kasan: bad access detected [ 15.100792] [ 15.100883] Memory state around the buggy address: [ 15.100950] fff00000c770ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.101080] fff00000c770ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.101122] >fff00000c7710000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.101158] ^ [ 15.101185] fff00000c7710080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.101225] fff00000c7710100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.101260] ==================================================================
[ 11.651696] ================================================================== [ 11.652608] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 11.652882] Read of size 1 at addr ffff8881039c0000 by task kunit_try_catch/172 [ 11.653427] [ 11.653582] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.653667] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.653679] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.653731] Call Trace: [ 11.653744] <TASK> [ 11.653760] dump_stack_lvl+0x73/0xb0 [ 11.653802] print_report+0xd1/0x610 [ 11.653823] ? __virt_addr_valid+0x1db/0x2d0 [ 11.653846] ? page_alloc_uaf+0x356/0x3d0 [ 11.653866] ? kasan_addr_to_slab+0x11/0xa0 [ 11.653886] ? page_alloc_uaf+0x356/0x3d0 [ 11.653906] kasan_report+0x141/0x180 [ 11.653927] ? page_alloc_uaf+0x356/0x3d0 [ 11.653952] __asan_report_load1_noabort+0x18/0x20 [ 11.653976] page_alloc_uaf+0x356/0x3d0 [ 11.653996] ? __pfx_page_alloc_uaf+0x10/0x10 [ 11.654126] ? __schedule+0x10cc/0x2b60 [ 11.654150] ? __pfx_read_tsc+0x10/0x10 [ 11.654170] ? ktime_get_ts64+0x86/0x230 [ 11.654203] kunit_try_run_case+0x1a5/0x480 [ 11.654227] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.654249] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.654272] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.654295] ? __kthread_parkme+0x82/0x180 [ 11.654315] ? preempt_count_sub+0x50/0x80 [ 11.654339] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.654361] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.654384] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.654407] kthread+0x337/0x6f0 [ 11.654426] ? trace_preempt_on+0x20/0xc0 [ 11.654448] ? __pfx_kthread+0x10/0x10 [ 11.654467] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.654488] ? calculate_sigpending+0x7b/0xa0 [ 11.654521] ? __pfx_kthread+0x10/0x10 [ 11.654541] ret_from_fork+0x116/0x1d0 [ 11.654559] ? __pfx_kthread+0x10/0x10 [ 11.654578] ret_from_fork_asm+0x1a/0x30 [ 11.654608] </TASK> [ 11.654618] [ 11.663836] The buggy address belongs to the physical page: [ 11.664106] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c0 [ 11.664444] flags: 0x200000000000000(node=0|zone=2) [ 11.664770] page_type: f0(buddy) [ 11.664944] raw: 0200000000000000 ffff88817fffc4f0 ffff88817fffc4f0 0000000000000000 [ 11.665330] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 11.665580] page dumped because: kasan: bad access detected [ 11.665746] [ 11.665867] Memory state around the buggy address: [ 11.666092] ffff8881039bff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.666441] ffff8881039bff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.666941] >ffff8881039c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.667314] ^ [ 11.667488] ffff8881039c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.667816] ffff8881039c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.668084] ==================================================================