Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.026483] ================================================================== [ 19.026632] BUG: KASAN: use-after-free in page_alloc_uaf+0x328/0x350 [ 19.026774] Read of size 1 at addr fff00000c7920000 by task kunit_try_catch/155 [ 19.026915] [ 19.027002] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.027207] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.027274] Hardware name: linux,dummy-virt (DT) [ 19.027350] Call trace: [ 19.027404] show_stack+0x20/0x38 (C) [ 19.027525] dump_stack_lvl+0x8c/0xd0 [ 19.027642] print_report+0x118/0x608 [ 19.027771] kasan_report+0xdc/0x128 [ 19.028373] __asan_report_load1_noabort+0x20/0x30 [ 19.028542] page_alloc_uaf+0x328/0x350 [ 19.028645] kunit_try_run_case+0x170/0x3f0 [ 19.028794] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.029158] kthread+0x328/0x630 [ 19.029346] ret_from_fork+0x10/0x20 [ 19.029671] [ 19.029726] The buggy address belongs to the physical page: [ 19.029793] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107920 [ 19.029935] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.030058] page_type: f0(buddy) [ 19.030419] raw: 0bfffe0000000000 fff00000ff616108 fff00000ff616108 0000000000000000 [ 19.030702] raw: 0000000000000000 0000000000000005 00000000f0000000 0000000000000000 [ 19.030889] page dumped because: kasan: bad access detected [ 19.030972] [ 19.031068] Memory state around the buggy address: [ 19.031144] fff00000c791ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.031474] fff00000c791ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.031596] >fff00000c7920000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.033548] ^ [ 19.033764] fff00000c7920080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.034340] fff00000c7920100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.034718] ==================================================================
[ 12.217741] ================================================================== [ 12.218419] BUG: KASAN: use-after-free in page_alloc_uaf+0x356/0x3d0 [ 12.218682] Read of size 1 at addr ffff888103b00000 by task kunit_try_catch/172 [ 12.219086] [ 12.219205] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.219247] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.219258] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.219278] Call Trace: [ 12.219290] <TASK> [ 12.219306] dump_stack_lvl+0x73/0xb0 [ 12.219337] print_report+0xd1/0x650 [ 12.219359] ? __virt_addr_valid+0x1db/0x2d0 [ 12.219383] ? page_alloc_uaf+0x356/0x3d0 [ 12.219405] ? kasan_addr_to_slab+0x11/0xa0 [ 12.219425] ? page_alloc_uaf+0x356/0x3d0 [ 12.219447] kasan_report+0x141/0x180 [ 12.219469] ? page_alloc_uaf+0x356/0x3d0 [ 12.219495] __asan_report_load1_noabort+0x18/0x20 [ 12.219520] page_alloc_uaf+0x356/0x3d0 [ 12.219541] ? __pfx_page_alloc_uaf+0x10/0x10 [ 12.219565] ? __schedule+0x10cc/0x2b60 [ 12.219587] ? __pfx_read_tsc+0x10/0x10 [ 12.219609] ? ktime_get_ts64+0x86/0x230 [ 12.219634] kunit_try_run_case+0x1a5/0x480 [ 12.219860] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.219890] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.219915] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.219940] ? __kthread_parkme+0x82/0x180 [ 12.219961] ? preempt_count_sub+0x50/0x80 [ 12.219985] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.220009] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.220034] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.220059] kthread+0x337/0x6f0 [ 12.220710] ? trace_preempt_on+0x20/0xc0 [ 12.220739] ? __pfx_kthread+0x10/0x10 [ 12.220784] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.220808] ? calculate_sigpending+0x7b/0xa0 [ 12.220832] ? __pfx_kthread+0x10/0x10 [ 12.220854] ret_from_fork+0x116/0x1d0 [ 12.220873] ? __pfx_kthread+0x10/0x10 [ 12.220895] ret_from_fork_asm+0x1a/0x30 [ 12.220929] </TASK> [ 12.220942] [ 12.231620] The buggy address belongs to the physical page: [ 12.231894] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b00 [ 12.232392] flags: 0x200000000000000(node=0|zone=2) [ 12.232899] page_type: f0(buddy) [ 12.233202] raw: 0200000000000000 ffff88817fffc580 ffff88817fffc580 0000000000000000 [ 12.233964] raw: 0000000000000000 0000000000000008 00000000f0000000 0000000000000000 [ 12.234381] page dumped because: kasan: bad access detected [ 12.234554] [ 12.234625] Memory state around the buggy address: [ 12.234805] ffff888103afff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.235108] ffff888103afff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.235391] >ffff888103b00000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.235672] ^ [ 12.236135] ffff888103b00080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.236443] ffff888103b00100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.236807] ==================================================================