Date
Dec. 3, 2024, 11:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.497863] ================================================================== [ 29.499847] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 29.500600] Read of size 1 at addr fff00000c6540000 by task kunit_try_catch/143 [ 29.501661] [ 29.502208] CPU: 0 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 29.503981] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.504623] Hardware name: linux,dummy-virt (DT) [ 29.505512] Call trace: [ 29.506000] show_stack+0x20/0x38 (C) [ 29.506636] dump_stack_lvl+0x8c/0xd0 [ 29.507657] print_report+0x118/0x5e0 [ 29.508245] kasan_report+0xc8/0x118 [ 29.508774] __asan_report_load1_noabort+0x20/0x30 [ 29.509485] page_alloc_uaf+0x328/0x350 [ 29.510128] kunit_try_run_case+0x14c/0x3d0 [ 29.510785] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.511537] kthread+0x24c/0x2d0 [ 29.512093] ret_from_fork+0x10/0x20 [ 29.512789] [ 29.513165] The buggy address belongs to the physical page: [ 29.513977] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106540 [ 29.514952] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.516153] page_type: f0(buddy) [ 29.516658] raw: 0bfffe0000000000 fff00000ff6151b0 fff00000ff6151b0 0000000000000000 [ 29.517672] raw: 0000000000000000 0000000000000006 00000000f0000000 0000000000000000 [ 29.518598] page dumped because: kasan: bad access detected [ 29.519551] [ 29.519892] Memory state around the buggy address: [ 29.520442] fff00000c653ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.521319] fff00000c653ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.522249] >fff00000c6540000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.523318] ^ [ 29.523895] fff00000c6540080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.524798] fff00000c6540100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.525547] ==================================================================
[ 25.112684] ================================================================== [ 25.113925] BUG: KASAN: use-after-free in page_alloc_uaf+0x358/0x3d0 [ 25.114802] Read of size 1 at addr ffff888102b00000 by task kunit_try_catch/163 [ 25.115242] [ 25.115425] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 25.117556] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.118303] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.119088] Call Trace: [ 25.119400] <TASK> [ 25.119768] dump_stack_lvl+0x73/0xb0 [ 25.120244] print_report+0xd1/0x640 [ 25.120754] ? __virt_addr_valid+0x1db/0x2d0 [ 25.121174] ? kasan_addr_to_slab+0x11/0xa0 [ 25.121671] kasan_report+0x102/0x140 [ 25.122115] ? page_alloc_uaf+0x358/0x3d0 [ 25.122543] ? page_alloc_uaf+0x358/0x3d0 [ 25.123173] __asan_report_load1_noabort+0x18/0x20 [ 25.123636] page_alloc_uaf+0x358/0x3d0 [ 25.123888] ? __pfx_page_alloc_uaf+0x10/0x10 [ 25.124253] ? __schedule+0xc3e/0x2790 [ 25.124762] ? __pfx_read_tsc+0x10/0x10 [ 25.125223] ? ktime_get_ts64+0x86/0x230 [ 25.125820] kunit_try_run_case+0x1b3/0x490 [ 25.126230] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.126771] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.127295] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.128074] ? __kthread_parkme+0x82/0x160 [ 25.128808] ? preempt_count_sub+0x50/0x80 [ 25.129623] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.130692] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.131173] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.131793] kthread+0x257/0x310 [ 25.132131] ? __pfx_kthread+0x10/0x10 [ 25.132615] ret_from_fork+0x41/0x80 [ 25.133522] ? __pfx_kthread+0x10/0x10 [ 25.133903] ret_from_fork_asm+0x1a/0x30 [ 25.134207] </TASK> [ 25.134439] [ 25.135431] The buggy address belongs to the physical page: [ 25.136152] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b00 [ 25.137265] flags: 0x200000000000000(node=0|zone=2) [ 25.138276] page_type: f0(buddy) [ 25.138883] raw: 0200000000000000 ffff88817fffc5c0 ffff88817fffc5c0 0000000000000000 [ 25.139978] raw: 0000000000000000 0000000000000008 00000000f0000000 0000000000000000 [ 25.140734] page dumped because: kasan: bad access detected [ 25.141443] [ 25.141914] Memory state around the buggy address: [ 25.142313] ffff888102afff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.143319] ffff888102afff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.143898] >ffff888102b00000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.144909] ^ [ 25.145450] ffff888102b00080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.146396] ffff888102b00100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.146967] ==================================================================