Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.472680] ================================================================== [ 16.472752] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 16.473003] Read of size 1 at addr fff00000c78c0000 by task kunit_try_catch/154 [ 16.473386] [ 16.473516] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.473603] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.473629] Hardware name: linux,dummy-virt (DT) [ 16.473659] Call trace: [ 16.473680] show_stack+0x20/0x38 (C) [ 16.473753] dump_stack_lvl+0x8c/0xd0 [ 16.473801] print_report+0x118/0x5d0 [ 16.474313] kasan_report+0xdc/0x128 [ 16.474563] __asan_report_load1_noabort+0x20/0x30 [ 16.474617] page_alloc_uaf+0x328/0x350 [ 16.474662] kunit_try_run_case+0x170/0x3f0 [ 16.474720] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.474773] kthread+0x328/0x630 [ 16.474814] ret_from_fork+0x10/0x20 [ 16.474861] [ 16.474888] The buggy address belongs to the physical page: [ 16.475048] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078c0 [ 16.475104] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.475158] page_type: f0(buddy) [ 16.475272] raw: 0bfffe0000000000 fff00000ff616170 fff00000ff616170 0000000000000000 [ 16.475322] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 16.475361] page dumped because: kasan: bad access detected [ 16.475391] [ 16.475408] Memory state around the buggy address: [ 16.475439] fff00000c78bff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.475608] fff00000c78bff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.475852] >fff00000c78c0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.476477] ^ [ 16.476528] fff00000c78c0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.476572] fff00000c78c0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.476610] ==================================================================
[ 12.134783] ================================================================== [ 12.135482] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 12.135773] Read of size 1 at addr ffff888103900000 by task kunit_try_catch/171 [ 12.136062] [ 12.136238] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.136283] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.136295] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.136315] Call Trace: [ 12.136327] <TASK> [ 12.136342] dump_stack_lvl+0x73/0xb0 [ 12.136372] print_report+0xd1/0x610 [ 12.136394] ? __virt_addr_valid+0x1db/0x2d0 [ 12.136417] ? page_alloc_uaf+0x356/0x3d0 [ 12.136446] ? kasan_addr_to_slab+0x11/0xa0 [ 12.136467] ? page_alloc_uaf+0x356/0x3d0 [ 12.136489] kasan_report+0x141/0x180 [ 12.136511] ? page_alloc_uaf+0x356/0x3d0 [ 12.136537] __asan_report_load1_noabort+0x18/0x20 [ 12.136562] page_alloc_uaf+0x356/0x3d0 [ 12.136584] ? __pfx_page_alloc_uaf+0x10/0x10 [ 12.136607] ? __schedule+0x10cc/0x2b60 [ 12.136630] ? __pfx_read_tsc+0x10/0x10 [ 12.136651] ? ktime_get_ts64+0x86/0x230 [ 12.136675] kunit_try_run_case+0x1a5/0x480 [ 12.136699] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.136723] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.136746] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.136782] ? __kthread_parkme+0x82/0x180 [ 12.136803] ? preempt_count_sub+0x50/0x80 [ 12.136827] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.136852] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.136876] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.136902] kthread+0x337/0x6f0 [ 12.136920] ? trace_preempt_on+0x20/0xc0 [ 12.136944] ? __pfx_kthread+0x10/0x10 [ 12.136965] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.136986] ? calculate_sigpending+0x7b/0xa0 [ 12.137010] ? __pfx_kthread+0x10/0x10 [ 12.137042] ret_from_fork+0x116/0x1d0 [ 12.137061] ? __pfx_kthread+0x10/0x10 [ 12.137081] ret_from_fork_asm+0x1a/0x30 [ 12.137112] </TASK> [ 12.137122] [ 12.144988] The buggy address belongs to the physical page: [ 12.145243] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103900 [ 12.145561] flags: 0x200000000000000(node=0|zone=2) [ 12.145880] page_type: f0(buddy) [ 12.146194] raw: 0200000000000000 ffff88817fffc580 ffff88817fffc580 0000000000000000 [ 12.146591] raw: 0000000000000000 0000000000000008 00000000f0000000 0000000000000000 [ 12.146883] page dumped because: kasan: bad access detected [ 12.147056] [ 12.147150] Memory state around the buggy address: [ 12.147480] ffff8881038fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.147767] ffff8881038fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.148259] >ffff888103900000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.148609] ^ [ 12.148784] ffff888103900080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.149171] ffff888103900100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.149420] ==================================================================