Date
May 23, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.926606] ================================================================== [ 26.926877] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 26.927166] Read of size 1 at addr fff00000c77a4000 by task kunit_try_catch/150 [ 26.927735] [ 26.927943] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT [ 26.928304] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.928407] Hardware name: linux,dummy-virt (DT) [ 26.928607] Call trace: [ 26.928933] show_stack+0x20/0x38 (C) [ 26.929119] dump_stack_lvl+0x8c/0xd0 [ 26.929260] print_report+0x118/0x608 [ 26.929391] kasan_report+0xdc/0x128 [ 26.929537] __asan_report_load1_noabort+0x20/0x30 [ 26.929664] kmalloc_large_uaf+0x2cc/0x2f8 [ 26.929769] kunit_try_run_case+0x170/0x3f0 [ 26.929884] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.930022] kthread+0x328/0x630 [ 26.930148] ret_from_fork+0x10/0x20 [ 26.930290] [ 26.930699] The buggy address belongs to the physical page: [ 26.931088] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077a4 [ 26.931346] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.931898] raw: 0bfffe0000000000 ffffc1ffc31df608 fff00000da482d80 0000000000000000 [ 26.932226] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 26.932356] page dumped because: kasan: bad access detected [ 26.932465] [ 26.932519] Memory state around the buggy address: [ 26.932625] fff00000c77a3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.932753] fff00000c77a3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.933124] >fff00000c77a4000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.933363] ^ [ 26.933465] fff00000c77a4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.933583] fff00000c77a4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 26.933729] ==================================================================
[ 12.173725] ================================================================== [ 12.174694] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 12.175006] Read of size 1 at addr ffff888102ab0000 by task kunit_try_catch/167 [ 12.175343] [ 12.175532] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT(voluntary) [ 12.175587] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.175600] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.175621] Call Trace: [ 12.175634] <TASK> [ 12.175653] dump_stack_lvl+0x73/0xb0 [ 12.175684] print_report+0xd1/0x650 [ 12.175707] ? __virt_addr_valid+0x1db/0x2d0 [ 12.175730] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.175750] ? kasan_addr_to_slab+0x11/0xa0 [ 12.175771] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.175792] kasan_report+0x141/0x180 [ 12.175814] ? kmalloc_large_uaf+0x2f1/0x340 [ 12.175839] __asan_report_load1_noabort+0x18/0x20 [ 12.175859] kmalloc_large_uaf+0x2f1/0x340 [ 12.175880] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 12.175901] ? __schedule+0x10cc/0x2b30 [ 12.175924] ? __pfx_read_tsc+0x10/0x10 [ 12.175944] ? ktime_get_ts64+0x86/0x230 [ 12.175971] kunit_try_run_case+0x1a5/0x480 [ 12.175995] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.176016] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.176039] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.176061] ? __kthread_parkme+0x82/0x180 [ 12.176131] ? preempt_count_sub+0x50/0x80 [ 12.176159] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.176182] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.176204] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.176225] kthread+0x337/0x6f0 [ 12.176243] ? trace_preempt_on+0x20/0xc0 [ 12.176269] ? __pfx_kthread+0x10/0x10 [ 12.176301] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.176321] ? calculate_sigpending+0x7b/0xa0 [ 12.176344] ? __pfx_kthread+0x10/0x10 [ 12.176363] ret_from_fork+0x41/0x80 [ 12.176383] ? __pfx_kthread+0x10/0x10 [ 12.176401] ret_from_fork_asm+0x1a/0x30 [ 12.176446] </TASK> [ 12.176460] [ 12.184638] The buggy address belongs to the physical page: [ 12.184892] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ab0 [ 12.185170] flags: 0x200000000000000(node=0|zone=2) [ 12.185358] raw: 0200000000000000 ffffea00040aad08 ffff88815b139a80 0000000000000000 [ 12.186043] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.186376] page dumped because: kasan: bad access detected [ 12.186559] [ 12.186690] Memory state around the buggy address: [ 12.186923] ffff888102aaff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.187214] ffff888102aaff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.187535] >ffff888102ab0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.187743] ^ [ 12.187859] ffff888102ab0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.188164] ffff888102ab0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 12.188479] ==================================================================