Date
July 23, 2025, 2:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.176517] ================================================================== [ 15.176616] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 15.176862] Read of size 1 at addr fff00000c77f0000 by task kunit_try_catch/154 [ 15.176914] [ 15.176946] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 15.177025] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.177051] Hardware name: linux,dummy-virt (DT) [ 15.177081] Call trace: [ 15.177102] show_stack+0x20/0x38 (C) [ 15.177150] dump_stack_lvl+0x8c/0xd0 [ 15.177299] print_report+0x118/0x5d0 [ 15.177449] kasan_report+0xdc/0x128 [ 15.177932] __asan_report_load1_noabort+0x20/0x30 [ 15.178011] page_alloc_uaf+0x328/0x350 [ 15.178057] kunit_try_run_case+0x170/0x3f0 [ 15.178457] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.178518] kthread+0x328/0x630 [ 15.178567] ret_from_fork+0x10/0x20 [ 15.179033] [ 15.179145] The buggy address belongs to the physical page: [ 15.179185] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077f0 [ 15.179284] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.179530] page_type: f0(buddy) [ 15.179701] raw: 0bfffe0000000000 fff00000ff6160a0 fff00000ff6160a0 0000000000000000 [ 15.179878] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 15.179921] page dumped because: kasan: bad access detected [ 15.179952] [ 15.179970] Memory state around the buggy address: [ 15.180004] fff00000c77eff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.180047] fff00000c77eff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.180090] >fff00000c77f0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.180130] ^ [ 15.180158] fff00000c77f0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.180200] fff00000c77f0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 15.180237] ==================================================================
[ 12.258788] ================================================================== [ 12.259408] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 12.259874] Read of size 1 at addr ffff888103a00000 by task kunit_try_catch/171 [ 12.260143] [ 12.260256] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 12.260299] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.260311] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.260331] Call Trace: [ 12.260343] <TASK> [ 12.260358] dump_stack_lvl+0x73/0xb0 [ 12.260387] print_report+0xd1/0x610 [ 12.260408] ? __virt_addr_valid+0x1db/0x2d0 [ 12.260430] ? page_alloc_uaf+0x356/0x3d0 [ 12.260451] ? kasan_addr_to_slab+0x11/0xa0 [ 12.260471] ? page_alloc_uaf+0x356/0x3d0 [ 12.260492] kasan_report+0x141/0x180 [ 12.260513] ? page_alloc_uaf+0x356/0x3d0 [ 12.260539] __asan_report_load1_noabort+0x18/0x20 [ 12.260562] page_alloc_uaf+0x356/0x3d0 [ 12.260583] ? __pfx_page_alloc_uaf+0x10/0x10 [ 12.260605] ? __schedule+0x10c6/0x2b60 [ 12.260627] ? __pfx_read_tsc+0x10/0x10 [ 12.260647] ? ktime_get_ts64+0x86/0x230 [ 12.260670] kunit_try_run_case+0x1a5/0x480 [ 12.260695] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.260717] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.260740] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.260762] ? __kthread_parkme+0x82/0x180 [ 12.260782] ? preempt_count_sub+0x50/0x80 [ 12.260805] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.260842] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.260865] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.260888] kthread+0x337/0x6f0 [ 12.260907] ? trace_preempt_on+0x20/0xc0 [ 12.260929] ? __pfx_kthread+0x10/0x10 [ 12.260949] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.260969] ? calculate_sigpending+0x7b/0xa0 [ 12.260992] ? __pfx_kthread+0x10/0x10 [ 12.261013] ret_from_fork+0x116/0x1d0 [ 12.261031] ? __pfx_kthread+0x10/0x10 [ 12.261051] ret_from_fork_asm+0x1a/0x30 [ 12.261080] </TASK> [ 12.261090] [ 12.268483] The buggy address belongs to the physical page: [ 12.268706] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a00 [ 12.268979] flags: 0x200000000000000(node=0|zone=2) [ 12.269301] page_type: f0(buddy) [ 12.269483] raw: 0200000000000000 ffff88817fffc5c8 ffff88817fffc5c8 0000000000000000 [ 12.269831] raw: 0000000000000000 0000000000000009 00000000f0000000 0000000000000000 [ 12.270175] page dumped because: kasan: bad access detected [ 12.270536] [ 12.270612] Memory state around the buggy address: [ 12.270837] ffff8881039fff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.271277] ffff8881039fff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.271551] >ffff888103a00000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.271882] ^ [ 12.272033] ffff888103a00080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.272429] ffff888103a00100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.272703] ==================================================================