Date
July 9, 2025, 1:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.079238] ================================================================== [ 29.079606] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2cc/0x2f8 [ 29.079788] Read of size 1 at addr fff00000c9afc000 by task kunit_try_catch/180 [ 29.079838] [ 29.079869] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250709 #1 PREEMPT [ 29.079951] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.079977] Hardware name: linux,dummy-virt (DT) [ 29.080657] Call trace: [ 29.080812] show_stack+0x20/0x38 (C) [ 29.080868] dump_stack_lvl+0x8c/0xd0 [ 29.080915] print_report+0x118/0x5d0 [ 29.081253] kasan_report+0xdc/0x128 [ 29.081484] __asan_report_load1_noabort+0x20/0x30 [ 29.081539] kmalloc_large_uaf+0x2cc/0x2f8 [ 29.081886] kunit_try_run_case+0x170/0x3f0 [ 29.082180] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.082296] kthread+0x328/0x630 [ 29.082345] ret_from_fork+0x10/0x20 [ 29.082549] [ 29.082649] The buggy address belongs to the physical page: [ 29.082684] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109afc [ 29.082941] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.083005] raw: 0bfffe0000000000 ffffc1ffc326c008 fff00000da461d00 0000000000000000 [ 29.083063] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 29.083522] page dumped because: kasan: bad access detected [ 29.083561] [ 29.083599] Memory state around the buggy address: [ 29.083746] fff00000c9afbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.083822] fff00000c9afbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.083864] >fff00000c9afc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.083900] ^ [ 29.083934] fff00000c9afc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.083974] fff00000c9afc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.084009] ==================================================================
[ 23.666095] ================================================================== [ 23.667280] BUG: KASAN: use-after-free in kmalloc_large_uaf+0x2f1/0x340 [ 23.667832] Read of size 1 at addr ffff888106140000 by task kunit_try_catch/198 [ 23.668269] [ 23.668365] CPU: 1 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) [ 23.668421] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 23.668435] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.668457] Call Trace: [ 23.668471] <TASK> [ 23.668491] dump_stack_lvl+0x73/0xb0 [ 23.668523] print_report+0xd1/0x610 [ 23.668546] ? __virt_addr_valid+0x1db/0x2d0 [ 23.668571] ? kmalloc_large_uaf+0x2f1/0x340 [ 23.668591] ? kasan_addr_to_slab+0x11/0xa0 [ 23.668610] ? kmalloc_large_uaf+0x2f1/0x340 [ 23.668631] kasan_report+0x141/0x180 [ 23.668652] ? kmalloc_large_uaf+0x2f1/0x340 [ 23.668676] __asan_report_load1_noabort+0x18/0x20 [ 23.668711] kmalloc_large_uaf+0x2f1/0x340 [ 23.668731] ? __pfx_kmalloc_large_uaf+0x10/0x10 [ 23.668752] ? __schedule+0x10cc/0x2b60 [ 23.668797] ? __pfx_read_tsc+0x10/0x10 [ 23.668819] ? ktime_get_ts64+0x86/0x230 [ 23.668844] kunit_try_run_case+0x1a5/0x480 [ 23.668867] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.668942] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.668966] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.669001] ? __kthread_parkme+0x82/0x180 [ 23.669021] ? preempt_count_sub+0x50/0x80 [ 23.669045] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.669066] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.669090] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.669114] kthread+0x337/0x6f0 [ 23.669133] ? trace_preempt_on+0x20/0xc0 [ 23.669156] ? __pfx_kthread+0x10/0x10 [ 23.669176] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.669198] ? calculate_sigpending+0x7b/0xa0 [ 23.669222] ? __pfx_kthread+0x10/0x10 [ 23.669244] ret_from_fork+0x116/0x1d0 [ 23.669263] ? __pfx_kthread+0x10/0x10 [ 23.669283] ret_from_fork_asm+0x1a/0x30 [ 23.669314] </TASK> [ 23.669326] [ 23.679756] The buggy address belongs to the physical page: [ 23.680247] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106140 [ 23.680590] flags: 0x200000000000000(node=0|zone=2) [ 23.681047] raw: 0200000000000000 ffffea0004185108 ffff88815b139fc0 0000000000000000 [ 23.681369] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 23.681708] page dumped because: kasan: bad access detected [ 23.681924] [ 23.682108] Memory state around the buggy address: [ 23.682345] ffff88810613ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.682635] ffff88810613ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.682936] >ffff888106140000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.683565] ^ [ 23.683721] ffff888106140080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.684357] ffff888106140100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.684794] ==================================================================