Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.937780] ================================================================== [ 19.938083] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 19.938226] Read of size 1 at addr fff00000c7720000 by task kunit_try_catch/164 [ 19.938325] [ 19.938401] CPU: 0 UID: 0 PID: 164 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 19.938589] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.938647] Hardware name: linux,dummy-virt (DT) [ 19.938708] Call trace: [ 19.938749] show_stack+0x20/0x38 (C) [ 19.938840] dump_stack_lvl+0x8c/0xd0 [ 19.938928] print_report+0x118/0x608 [ 19.939000] kasan_report+0xdc/0x128 [ 19.939088] __asan_report_load1_noabort+0x20/0x30 [ 19.939185] page_alloc_uaf+0x328/0x350 [ 19.939286] kunit_try_run_case+0x170/0x3f0 [ 19.939415] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.939548] kthread+0x328/0x630 [ 19.939640] ret_from_fork+0x10/0x20 [ 19.939746] [ 19.939791] The buggy address belongs to the physical page: [ 19.939856] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107720 [ 19.939969] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.940077] page_type: f0(buddy) [ 19.940161] raw: 0bfffe0000000000 fff00000ff616108 fff00000ff616108 0000000000000000 [ 19.940267] raw: 0000000000000000 0000000000000005 00000000f0000000 0000000000000000 [ 19.940426] page dumped because: kasan: bad access detected [ 19.940811] [ 19.940868] Memory state around the buggy address: [ 19.940971] fff00000c771ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.941302] fff00000c771ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.941422] >fff00000c7720000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.941509] ^ [ 19.941747] fff00000c7720080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.941847] fff00000c7720100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.941935] ==================================================================
[ 10.722722] ================================================================== [ 10.723339] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 10.723681] Read of size 1 at addr ffff888103ad0000 by task kunit_try_catch/180 [ 10.723977] [ 10.724072] CPU: 1 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 10.724118] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.724130] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.724150] Call Trace: [ 10.724161] <TASK> [ 10.724176] dump_stack_lvl+0x73/0xb0 [ 10.724203] print_report+0xd1/0x650 [ 10.724235] ? __virt_addr_valid+0x1db/0x2d0 [ 10.724257] ? page_alloc_uaf+0x356/0x3d0 [ 10.724277] ? kasan_addr_to_slab+0x11/0xa0 [ 10.724296] ? page_alloc_uaf+0x356/0x3d0 [ 10.724316] kasan_report+0x141/0x180 [ 10.724336] ? page_alloc_uaf+0x356/0x3d0 [ 10.724360] __asan_report_load1_noabort+0x18/0x20 [ 10.724383] page_alloc_uaf+0x356/0x3d0 [ 10.724403] ? __pfx_page_alloc_uaf+0x10/0x10 [ 10.724423] ? __schedule+0x10cc/0x2b60 [ 10.724443] ? __pfx_read_tsc+0x10/0x10 [ 10.724464] ? ktime_get_ts64+0x86/0x230 [ 10.724488] kunit_try_run_case+0x1a5/0x480 [ 10.724510] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.724531] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.724552] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.724573] ? __kthread_parkme+0x82/0x180 [ 10.724592] ? preempt_count_sub+0x50/0x80 [ 10.724614] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.724636] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.724660] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.724682] kthread+0x337/0x6f0 [ 10.724700] ? trace_preempt_on+0x20/0xc0 [ 10.724722] ? __pfx_kthread+0x10/0x10 [ 10.724741] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.724760] ? calculate_sigpending+0x7b/0xa0 [ 10.724782] ? __pfx_kthread+0x10/0x10 [ 10.724802] ret_from_fork+0x116/0x1d0 [ 10.724819] ? __pfx_kthread+0x10/0x10 [ 10.724838] ret_from_fork_asm+0x1a/0x30 [ 10.724867] </TASK> [ 10.724877] [ 10.731424] The buggy address belongs to the physical page: [ 10.731872] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ad0 [ 10.732171] flags: 0x200000000000000(node=0|zone=2) [ 10.732364] page_type: f0(buddy) [ 10.732526] raw: 0200000000000000 ffff88817fffd460 ffff88817fffd460 0000000000000000 [ 10.732864] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 10.733150] page dumped because: kasan: bad access detected [ 10.733357] [ 10.733443] Memory state around the buggy address: [ 10.733629] ffff888103acff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.734079] ffff888103acff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.734316] >ffff888103ad0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.735005] ^ [ 10.735164] ffff888103ad0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.735386] ffff888103ad0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 10.735616] ==================================================================