Date
May 23, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 27.011901] ================================================================== [ 27.012134] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 27.012304] Read of size 1 at addr fff00000c77f0000 by task kunit_try_catch/156 [ 27.012466] [ 27.012572] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT [ 27.012894] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.013282] Hardware name: linux,dummy-virt (DT) [ 27.013517] Call trace: [ 27.013728] show_stack+0x20/0x38 (C) [ 27.014338] dump_stack_lvl+0x8c/0xd0 [ 27.014641] print_report+0x118/0x608 [ 27.014788] kasan_report+0xdc/0x128 [ 27.014916] __asan_report_load1_noabort+0x20/0x30 [ 27.015065] page_alloc_uaf+0x328/0x350 [ 27.015206] kunit_try_run_case+0x170/0x3f0 [ 27.015369] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.015617] kthread+0x328/0x630 [ 27.015805] ret_from_fork+0x10/0x20 [ 27.016004] [ 27.016056] The buggy address belongs to the physical page: [ 27.016141] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077f0 [ 27.016626] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 27.016787] page_type: f0(buddy) [ 27.016889] raw: 0bfffe0000000000 fff00000ff616020 fff00000ff616020 0000000000000000 [ 27.017282] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 27.017410] page dumped because: kasan: bad access detected [ 27.017530] [ 27.017609] Memory state around the buggy address: [ 27.017718] fff00000c77eff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.017871] fff00000c77eff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.017996] >fff00000c77f0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.018148] ^ [ 27.018268] fff00000c77f0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.018438] fff00000c77f0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 27.018609] ==================================================================
[ 12.217692] ================================================================== [ 12.218357] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 12.218637] Read of size 1 at addr ffff888103910000 by task kunit_try_catch/173 [ 12.218952] [ 12.219059] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT(voluntary) [ 12.219108] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.219120] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.219142] Call Trace: [ 12.219157] <TASK> [ 12.219175] dump_stack_lvl+0x73/0xb0 [ 12.219206] print_report+0xd1/0x650 [ 12.219228] ? __virt_addr_valid+0x1db/0x2d0 [ 12.219252] ? page_alloc_uaf+0x356/0x3d0 [ 12.219269] ? kasan_addr_to_slab+0x11/0xa0 [ 12.219302] ? page_alloc_uaf+0x356/0x3d0 [ 12.219320] kasan_report+0x141/0x180 [ 12.219343] ? page_alloc_uaf+0x356/0x3d0 [ 12.219366] __asan_report_load1_noabort+0x18/0x20 [ 12.219386] page_alloc_uaf+0x356/0x3d0 [ 12.219404] ? __pfx_page_alloc_uaf+0x10/0x10 [ 12.219423] ? __schedule+0x10cc/0x2b30 [ 12.219446] ? __pfx_read_tsc+0x10/0x10 [ 12.219467] ? ktime_get_ts64+0x86/0x230 [ 12.219493] kunit_try_run_case+0x1a5/0x480 [ 12.219518] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.219539] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.219563] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.219585] ? __kthread_parkme+0x82/0x180 [ 12.219607] ? preempt_count_sub+0x50/0x80 [ 12.219633] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.219657] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.219679] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.219700] kthread+0x337/0x6f0 [ 12.219717] ? trace_preempt_on+0x20/0xc0 [ 12.219742] ? __pfx_kthread+0x10/0x10 [ 12.219759] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.219780] ? calculate_sigpending+0x7b/0xa0 [ 12.219802] ? __pfx_kthread+0x10/0x10 [ 12.219820] ret_from_fork+0x41/0x80 [ 12.219840] ? __pfx_kthread+0x10/0x10 [ 12.219857] ret_from_fork_asm+0x1a/0x30 [ 12.219889] </TASK> [ 12.219901] [ 12.227603] The buggy address belongs to the physical page: [ 12.228076] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103910 [ 12.228342] flags: 0x200000000000000(node=0|zone=2) [ 12.228768] page_type: f0(buddy) [ 12.229068] raw: 0200000000000000 ffff88817fffc3e0 ffff88817fffc3e0 0000000000000000 [ 12.229443] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 12.229736] page dumped because: kasan: bad access detected [ 12.230041] [ 12.230120] Memory state around the buggy address: [ 12.230325] ffff88810390ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.230639] ffff88810390ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.230929] >ffff888103910000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.231243] ^ [ 12.231420] ffff888103910080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.231755] ffff888103910100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.232125] ==================================================================