Date
July 12, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.537206] ================================================================== [ 16.537608] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 16.537670] Read of size 1 at addr fff00000c7960000 by task kunit_try_catch/154 [ 16.537735] [ 16.537914] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.538387] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.538718] Hardware name: linux,dummy-virt (DT) [ 16.538751] Call trace: [ 16.539053] show_stack+0x20/0x38 (C) [ 16.539122] dump_stack_lvl+0x8c/0xd0 [ 16.539570] print_report+0x118/0x5d0 [ 16.539623] kasan_report+0xdc/0x128 [ 16.539668] __asan_report_load1_noabort+0x20/0x30 [ 16.539757] page_alloc_uaf+0x328/0x350 [ 16.540105] kunit_try_run_case+0x170/0x3f0 [ 16.540160] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.540224] kthread+0x328/0x630 [ 16.540566] ret_from_fork+0x10/0x20 [ 16.540630] [ 16.540650] The buggy address belongs to the physical page: [ 16.540680] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107960 [ 16.541231] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.541564] page_type: f0(buddy) [ 16.541606] raw: 0bfffe0000000000 fff00000ff616108 fff00000ff616108 0000000000000000 [ 16.541655] raw: 0000000000000000 0000000000000005 00000000f0000000 0000000000000000 [ 16.541696] page dumped because: kasan: bad access detected [ 16.541726] [ 16.541743] Memory state around the buggy address: [ 16.541775] fff00000c795ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.542159] fff00000c795ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.542231] >fff00000c7960000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.542967] ^ [ 16.543010] fff00000c7960080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.543281] fff00000c7960100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.543325] ==================================================================
[ 12.487715] ================================================================== [ 12.488670] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 12.489051] Read of size 1 at addr ffff888103ac0000 by task kunit_try_catch/171 [ 12.489328] [ 12.489536] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.489580] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.489593] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.489613] Call Trace: [ 12.489626] <TASK> [ 12.489640] dump_stack_lvl+0x73/0xb0 [ 12.489671] print_report+0xd1/0x610 [ 12.489694] ? __virt_addr_valid+0x1db/0x2d0 [ 12.489717] ? page_alloc_uaf+0x356/0x3d0 [ 12.489740] ? kasan_addr_to_slab+0x11/0xa0 [ 12.489761] ? page_alloc_uaf+0x356/0x3d0 [ 12.489783] kasan_report+0x141/0x180 [ 12.489804] ? page_alloc_uaf+0x356/0x3d0 [ 12.489830] __asan_report_load1_noabort+0x18/0x20 [ 12.489855] page_alloc_uaf+0x356/0x3d0 [ 12.489876] ? __pfx_page_alloc_uaf+0x10/0x10 [ 12.489900] ? __schedule+0x10cc/0x2b60 [ 12.489922] ? __pfx_read_tsc+0x10/0x10 [ 12.489943] ? ktime_get_ts64+0x86/0x230 [ 12.489968] kunit_try_run_case+0x1a5/0x480 [ 12.490331] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.490355] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.490381] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.490405] ? __kthread_parkme+0x82/0x180 [ 12.490426] ? preempt_count_sub+0x50/0x80 [ 12.490450] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.490474] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.490499] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.490524] kthread+0x337/0x6f0 [ 12.490543] ? trace_preempt_on+0x20/0xc0 [ 12.490566] ? __pfx_kthread+0x10/0x10 [ 12.490587] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.490608] ? calculate_sigpending+0x7b/0xa0 [ 12.490633] ? __pfx_kthread+0x10/0x10 [ 12.490654] ret_from_fork+0x116/0x1d0 [ 12.490672] ? __pfx_kthread+0x10/0x10 [ 12.490692] ret_from_fork_asm+0x1a/0x30 [ 12.490729] </TASK> [ 12.490739] [ 12.500990] The buggy address belongs to the physical page: [ 12.501394] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ac0 [ 12.501714] flags: 0x200000000000000(node=0|zone=2) [ 12.501930] page_type: f0(buddy) [ 12.502277] raw: 0200000000000000 ffff88817fffc4f0 ffff88817fffc4f0 0000000000000000 [ 12.502734] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 12.503149] page dumped because: kasan: bad access detected [ 12.503423] [ 12.503592] Memory state around the buggy address: [ 12.503945] ffff888103abff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.504377] ffff888103abff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.504837] >ffff888103ac0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.505141] ^ [ 12.505324] ffff888103ac0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.505622] ffff888103ac0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.506158] ==================================================================