Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.233551] ================================================================== [ 24.233667] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 24.233790] Read of size 1 at addr fff00000c7730000 by task kunit_try_catch/156 [ 24.233913] [ 24.234139] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 24.234473] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.234618] Hardware name: linux,dummy-virt (DT) [ 24.234738] Call trace: [ 24.234832] show_stack+0x20/0x38 (C) [ 24.235040] dump_stack_lvl+0x8c/0xd0 [ 24.235182] print_report+0x118/0x608 [ 24.235314] kasan_report+0xdc/0x128 [ 24.235464] __asan_report_load1_noabort+0x20/0x30 [ 24.235629] page_alloc_uaf+0x328/0x350 [ 24.235924] kunit_try_run_case+0x170/0x3f0 [ 24.236059] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.236191] kthread+0x328/0x630 [ 24.236305] ret_from_fork+0x10/0x20 [ 24.236443] [ 24.236542] The buggy address belongs to the physical page: [ 24.236674] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107730 [ 24.236841] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.236964] page_type: f0(buddy) [ 24.237149] raw: 0bfffe0000000000 fff00000ff616020 fff00000ff616020 0000000000000000 [ 24.237343] raw: 0000000000000000 0000000000000004 00000000f0000000 0000000000000000 [ 24.237505] page dumped because: kasan: bad access detected [ 24.237581] [ 24.237624] Memory state around the buggy address: [ 24.237717] fff00000c772ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.237902] fff00000c772ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.238011] >fff00000c7730000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.238163] ^ [ 24.238274] fff00000c7730080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.238376] fff00000c7730100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.238525] ==================================================================
[ 16.311295] ================================================================== [ 16.312580] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 16.313487] Read of size 1 at addr ffff88810a700000 by task kunit_try_catch/175 [ 16.314068] [ 16.314326] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 16.314452] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.314489] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.314542] Call Trace: [ 16.314582] <TASK> [ 16.315043] dump_stack_lvl+0x73/0xb0 [ 16.315125] print_report+0xd1/0x650 [ 16.315252] ? __virt_addr_valid+0x1db/0x2d0 [ 16.315313] ? page_alloc_uaf+0x356/0x3d0 [ 16.315344] ? kasan_addr_to_slab+0x11/0xa0 [ 16.315377] ? page_alloc_uaf+0x356/0x3d0 [ 16.315404] kasan_report+0x141/0x180 [ 16.315439] ? page_alloc_uaf+0x356/0x3d0 [ 16.315473] __asan_report_load1_noabort+0x18/0x20 [ 16.315505] page_alloc_uaf+0x356/0x3d0 [ 16.315531] ? __pfx_page_alloc_uaf+0x10/0x10 [ 16.315560] ? __schedule+0x10cc/0x2b60 [ 16.315594] ? __pfx_read_tsc+0x10/0x10 [ 16.315685] ? ktime_get_ts64+0x86/0x230 [ 16.315757] kunit_try_run_case+0x1a5/0x480 [ 16.315798] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.315833] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.315869] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.315904] ? __kthread_parkme+0x82/0x180 [ 16.315936] ? preempt_count_sub+0x50/0x80 [ 16.315973] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.316009] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.316042] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.316077] kthread+0x337/0x6f0 [ 16.316101] ? trace_preempt_on+0x20/0xc0 [ 16.316136] ? __pfx_kthread+0x10/0x10 [ 16.316162] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.316194] ? calculate_sigpending+0x7b/0xa0 [ 16.316263] ? __pfx_kthread+0x10/0x10 [ 16.316296] ret_from_fork+0x41/0x80 [ 16.316330] ? __pfx_kthread+0x10/0x10 [ 16.316355] ret_from_fork_asm+0x1a/0x30 [ 16.316398] </TASK> [ 16.316413] [ 16.336387] The buggy address belongs to the physical page: [ 16.336832] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a700 [ 16.337946] flags: 0x200000000000000(node=0|zone=2) [ 16.338684] page_type: f0(buddy) [ 16.339140] raw: 0200000000000000 ffff88817fffc500 ffff88817fffc500 0000000000000000 [ 16.340033] raw: 0000000000000000 0000000000000008 00000000f0000000 0000000000000000 [ 16.341050] page dumped because: kasan: bad access detected [ 16.341656] [ 16.341868] Memory state around the buggy address: [ 16.342315] ffff88810a6fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.342897] ffff88810a6fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.344169] >ffff88810a700000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.344828] ^ [ 16.345331] ffff88810a700080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.346226] ffff88810a700100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.346863] ==================================================================