Date
July 8, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.111937] ================================================================== [ 19.112149] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 19.112426] Read of size 1 at addr fff00000c64bc000 by task kunit_try_catch/148 [ 19.112484] [ 19.112726] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.112986] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.113192] Hardware name: linux,dummy-virt (DT) [ 19.113247] Call trace: [ 19.113382] show_stack+0x20/0x38 (C) [ 19.113642] dump_stack_lvl+0x8c/0xd0 [ 19.113719] print_report+0x118/0x608 [ 19.113948] kasan_report+0xdc/0x128 [ 19.114196] __asan_report_load1_noabort+0x20/0x30 [ 19.114389] kmalloc_large_uaf+0x2cc/0x2f8 [ 19.114440] kunit_try_run_case+0x170/0x3f0 [ 19.114619] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.114714] kthread+0x328/0x630 [ 19.114756] ret_from_fork+0x10/0x20 [ 19.114813] [ 19.114847] The buggy address belongs to the physical page: [ 19.114877] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064bc [ 19.114944] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.115024] raw: 0bfffe0000000000 ffffc1ffc3193008 fff00000da478c40 0000000000000000 [ 19.115082] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 19.115121] page dumped because: kasan: bad access detected [ 19.115172] [ 19.115191] Memory state around the buggy address: [ 19.115229] fff00000c64bbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.115271] fff00000c64bbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.115312] >fff00000c64bc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.115359] ^ [ 19.115398] fff00000c64bc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.115438] fff00000c64bc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 19.115475] ==================================================================
[ 12.000683] ================================================================== [ 12.001556] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.002054] Read of size 1 at addr ffff888102a4c000 by task kunit_try_catch/166 [ 12.002691] [ 12.002881] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.002926] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.002937] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.002957] Call Trace: [ 12.002970] <TASK> [ 12.002985] dump_stack_lvl+0x73/0xb0 [ 12.003033] print_report+0xd1/0x650 [ 12.003056] ? __virt_addr_valid+0x1db/0x2d0 [ 12.003079] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.003100] ? kasan_addr_to_slab+0x11/0xa0 [ 12.003120] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.003141] kasan_report+0x141/0x180 [ 12.003162] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.003188] __asan_report_load1_noabort+0x18/0x20 [ 12.003212] kmalloc_large_uaf+0x2f1/0x340 [ 12.003233] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.003255] ? __schedule+0x10cc/0x2b60 [ 12.003276] ? __pfx_read_tsc+0x10/0x10 [ 12.003297] ? ktime_get_ts64+0x86/0x230 [ 12.003322] kunit_try_run_case+0x1a5/0x480 [ 12.003347] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.003369] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.003393] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.003416] ? __kthread_parkme+0x82/0x180 [ 12.003436] ? preempt_count_sub+0x50/0x80 [ 12.003461] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.003484] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.003508] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.003585] kthread+0x337/0x6f0 [ 12.003614] ? trace_preempt_on+0x20/0xc0 [ 12.003638] ? __pfx_kthread+0x10/0x10 [ 12.003658] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.003679] ? calculate_sigpending+0x7b/0xa0 [ 12.003702] ? __pfx_kthread+0x10/0x10 [ 12.003723] ret_from_fork+0x116/0x1d0 [ 12.003741] ? __pfx_kthread+0x10/0x10 [ 12.003761] ret_from_fork_asm+0x1a/0x30 [ 12.003792] </TASK> [ 12.003802] [ 12.014176] The buggy address belongs to the physical page: [ 12.014644] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a4c [ 12.015207] flags: 0x200000000000000(node=0|zone=2) [ 12.015404] raw: 0200000000000000 ffffea00040a9408 ffff88815b139f80 0000000000000000 [ 12.016002] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.016320] page dumped because: kasan: bad access detected [ 12.016545] [ 12.016654] Memory state around the buggy address: [ 12.017290] ffff888102a4bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.017553] ffff888102a4bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.018178] >ffff888102a4c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.018484] ^ [ 12.018785] ffff888102a4c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.019179] ffff888102a4c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.019437] ==================================================================