Date
July 17, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.426430] ================================================================== [ 16.426506] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 16.426726] Read of size 1 at addr fff00000c7920000 by task kunit_try_catch/154 [ 16.426777] [ 16.427129] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.427424] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.427483] Hardware name: linux,dummy-virt (DT) [ 16.427552] Call trace: [ 16.427594] show_stack+0x20/0x38 (C) [ 16.427704] dump_stack_lvl+0x8c/0xd0 [ 16.427788] print_report+0x118/0x5d0 [ 16.428195] kasan_report+0xdc/0x128 [ 16.428253] __asan_report_load1_noabort+0x20/0x30 [ 16.428537] page_alloc_uaf+0x328/0x350 [ 16.428739] kunit_try_run_case+0x170/0x3f0 [ 16.428803] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.428873] kthread+0x328/0x630 [ 16.428939] ret_from_fork+0x10/0x20 [ 16.429000] [ 16.429023] The buggy address belongs to the physical page: [ 16.429054] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107920 [ 16.429117] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.429167] page_type: f0(buddy) [ 16.429213] raw: 0bfffe0000000000 fff00000ff616108 fff00000ff616108 0000000000000000 [ 16.429288] raw: 0000000000000000 0000000000000005 00000000f0000000 0000000000000000 [ 16.429326] page dumped because: kasan: bad access detected [ 16.429370] [ 16.429395] Memory state around the buggy address: [ 16.429429] fff00000c791ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.429470] fff00000c791ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.429519] >fff00000c7920000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.429557] ^ [ 16.429584] fff00000c7920080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.429637] fff00000c7920100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.429673] ==================================================================
[ 11.811154] ================================================================== [ 11.811909] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 11.812581] Read of size 1 at addr ffff888103a40000 by task kunit_try_catch/171 [ 11.813220] [ 11.813371] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.813529] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.813541] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.813563] Call Trace: [ 11.813576] <TASK> [ 11.813594] dump_stack_lvl+0x73/0xb0 [ 11.813626] print_report+0xd1/0x610 [ 11.813649] ? __virt_addr_valid+0x1db/0x2d0 [ 11.813672] ? page_alloc_uaf+0x356/0x3d0 [ 11.813693] ? kasan_addr_to_slab+0x11/0xa0 [ 11.813713] ? page_alloc_uaf+0x356/0x3d0 [ 11.813735] kasan_report+0x141/0x180 [ 11.813756] ? page_alloc_uaf+0x356/0x3d0 [ 11.813782] __asan_report_load1_noabort+0x18/0x20 [ 11.813806] page_alloc_uaf+0x356/0x3d0 [ 11.813826] ? __pfx_page_alloc_uaf+0x10/0x10 [ 11.813848] ? __schedule+0x10cc/0x2b60 [ 11.813870] ? __pfx_read_tsc+0x10/0x10 [ 11.813890] ? ktime_get_ts64+0x86/0x230 [ 11.813915] kunit_try_run_case+0x1a5/0x480 [ 11.813939] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.814099] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.814126] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.814149] ? __kthread_parkme+0x82/0x180 [ 11.814169] ? preempt_count_sub+0x50/0x80 [ 11.814193] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.814222] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.814246] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.814269] kthread+0x337/0x6f0 [ 11.814287] ? trace_preempt_on+0x20/0xc0 [ 11.814310] ? __pfx_kthread+0x10/0x10 [ 11.814329] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.814349] ? calculate_sigpending+0x7b/0xa0 [ 11.814373] ? __pfx_kthread+0x10/0x10 [ 11.814394] ret_from_fork+0x116/0x1d0 [ 11.814412] ? __pfx_kthread+0x10/0x10 [ 11.814431] ret_from_fork_asm+0x1a/0x30 [ 11.814463] </TASK> [ 11.814474] [ 11.825119] The buggy address belongs to the physical page: [ 11.825521] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a40 [ 11.826090] flags: 0x200000000000000(node=0|zone=2) [ 11.826288] page_type: f0(buddy) [ 11.826651] raw: 0200000000000000 ffff88817fffc4f0 ffff88817fffc4f0 0000000000000000 [ 11.827163] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 11.827591] page dumped because: kasan: bad access detected [ 11.828068] [ 11.828161] Memory state around the buggy address: [ 11.828466] ffff888103a3ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.828924] ffff888103a3ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.829416] >ffff888103a40000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.829765] ^ [ 11.830099] ffff888103a40080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.830618] ffff888103a40100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.831292] ==================================================================