Date
July 12, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.757143] ================================================================== [ 18.757221] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 18.757403] Read of size 1 at addr fff00000c66fec50 by task kunit_try_catch/259 [ 18.757513] [ 18.757570] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.757778] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.757859] Hardware name: linux,dummy-virt (DT) [ 18.757895] Call trace: [ 18.757941] show_stack+0x20/0x38 (C) [ 18.758085] dump_stack_lvl+0x8c/0xd0 [ 18.758137] print_report+0x118/0x5d0 [ 18.758210] kasan_report+0xdc/0x128 [ 18.758260] __asan_report_load1_noabort+0x20/0x30 [ 18.758590] kasan_strings+0x95c/0xb00 [ 18.758730] kunit_try_run_case+0x170/0x3f0 [ 18.758838] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.758923] kthread+0x328/0x630 [ 18.759067] ret_from_fork+0x10/0x20 [ 18.759119] [ 18.759159] Allocated by task 259: [ 18.759267] kasan_save_stack+0x3c/0x68 [ 18.759439] kasan_save_track+0x20/0x40 [ 18.759742] kasan_save_alloc_info+0x40/0x58 [ 18.759882] __kasan_kmalloc+0xd4/0xd8 [ 18.760042] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.760151] kasan_strings+0xc8/0xb00 [ 18.760338] kunit_try_run_case+0x170/0x3f0 [ 18.760469] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.760645] kthread+0x328/0x630 [ 18.760739] ret_from_fork+0x10/0x20 [ 18.760890] [ 18.760951] Freed by task 259: [ 18.761087] kasan_save_stack+0x3c/0x68 [ 18.761236] kasan_save_track+0x20/0x40 [ 18.761351] kasan_save_free_info+0x4c/0x78 [ 18.761396] __kasan_slab_free+0x6c/0x98 [ 18.761648] kfree+0x214/0x3c8 [ 18.761823] kasan_strings+0x24c/0xb00 [ 18.761889] kunit_try_run_case+0x170/0x3f0 [ 18.761943] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.762135] kthread+0x328/0x630 [ 18.762248] ret_from_fork+0x10/0x20 [ 18.762399] [ 18.762461] The buggy address belongs to the object at fff00000c66fec40 [ 18.762461] which belongs to the cache kmalloc-32 of size 32 [ 18.762614] The buggy address is located 16 bytes inside of [ 18.762614] freed 32-byte region [fff00000c66fec40, fff00000c66fec60) [ 18.762766] [ 18.762838] The buggy address belongs to the physical page: [ 18.762891] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1066fe [ 18.763148] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.763417] page_type: f5(slab) [ 18.763505] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.763689] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.763847] page dumped because: kasan: bad access detected [ 18.763909] [ 18.763931] Memory state around the buggy address: [ 18.763987] fff00000c66feb00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.764240] fff00000c66feb80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.764427] >fff00000c66fec00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 18.764502] ^ [ 18.764616] fff00000c66fec80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.764743] fff00000c66fed00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 18.764897] ==================================================================
[ 14.954872] ================================================================== [ 14.955158] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.956518] Read of size 1 at addr ffff888103a693d0 by task kunit_try_catch/276 [ 14.956856] [ 14.956965] CPU: 0 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.957008] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.957020] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.957041] Call Trace: [ 14.957056] <TASK> [ 14.957071] dump_stack_lvl+0x73/0xb0 [ 14.957102] print_report+0xd1/0x610 [ 14.957125] ? __virt_addr_valid+0x1db/0x2d0 [ 14.957149] ? kasan_strings+0xcbc/0xe80 [ 14.957168] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.957192] ? kasan_strings+0xcbc/0xe80 [ 14.957213] kasan_report+0x141/0x180 [ 14.957234] ? kasan_strings+0xcbc/0xe80 [ 14.957260] __asan_report_load1_noabort+0x18/0x20 [ 14.958810] kasan_strings+0xcbc/0xe80 [ 14.958834] ? trace_hardirqs_on+0x37/0xe0 [ 14.958862] ? __pfx_kasan_strings+0x10/0x10 [ 14.958884] ? finish_task_switch.isra.0+0x153/0x700 [ 14.958908] ? __switch_to+0x47/0xf50 [ 14.958934] ? __schedule+0x10cc/0x2b60 [ 14.958956] ? __pfx_read_tsc+0x10/0x10 [ 14.959213] ? ktime_get_ts64+0x86/0x230 [ 14.959248] kunit_try_run_case+0x1a5/0x480 [ 14.959303] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.959328] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.959379] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.959404] ? __kthread_parkme+0x82/0x180 [ 14.959425] ? preempt_count_sub+0x50/0x80 [ 14.959449] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.959474] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.959500] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.959526] kthread+0x337/0x6f0 [ 14.959545] ? trace_preempt_on+0x20/0xc0 [ 14.959568] ? __pfx_kthread+0x10/0x10 [ 14.959589] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.959611] ? calculate_sigpending+0x7b/0xa0 [ 14.959636] ? __pfx_kthread+0x10/0x10 [ 14.959657] ret_from_fork+0x116/0x1d0 [ 14.959676] ? __pfx_kthread+0x10/0x10 [ 14.959696] ret_from_fork_asm+0x1a/0x30 [ 14.960475] </TASK> [ 14.960490] [ 14.967442] Allocated by task 276: [ 14.967595] kasan_save_stack+0x45/0x70 [ 14.967739] kasan_save_track+0x18/0x40 [ 14.967874] kasan_save_alloc_info+0x3b/0x50 [ 14.968024] __kasan_kmalloc+0xb7/0xc0 [ 14.968210] __kmalloc_cache_noprof+0x189/0x420 [ 14.968444] kasan_strings+0xc0/0xe80 [ 14.968627] kunit_try_run_case+0x1a5/0x480 [ 14.968831] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.969079] kthread+0x337/0x6f0 [ 14.969243] ret_from_fork+0x116/0x1d0 [ 14.969416] ret_from_fork_asm+0x1a/0x30 [ 14.969557] [ 14.969627] Freed by task 276: [ 14.969748] kasan_save_stack+0x45/0x70 [ 14.969939] kasan_save_track+0x18/0x40 [ 14.970133] kasan_save_free_info+0x3f/0x60 [ 14.970345] __kasan_slab_free+0x56/0x70 [ 14.970539] kfree+0x222/0x3f0 [ 14.970706] kasan_strings+0x2aa/0xe80 [ 14.970873] kunit_try_run_case+0x1a5/0x480 [ 14.971071] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.971300] kthread+0x337/0x6f0 [ 14.971472] ret_from_fork+0x116/0x1d0 [ 14.971605] ret_from_fork_asm+0x1a/0x30 [ 14.971745] [ 14.971814] The buggy address belongs to the object at ffff888103a693c0 [ 14.971814] which belongs to the cache kmalloc-32 of size 32 [ 14.972168] The buggy address is located 16 bytes inside of [ 14.972168] freed 32-byte region [ffff888103a693c0, ffff888103a693e0) [ 14.972697] [ 14.972791] The buggy address belongs to the physical page: [ 14.973038] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a69 [ 14.973327] flags: 0x200000000000000(node=0|zone=2) [ 14.973491] page_type: f5(slab) [ 14.973610] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.973841] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.974066] page dumped because: kasan: bad access detected [ 14.974327] [ 14.974418] Memory state around the buggy address: [ 14.974640] ffff888103a69280: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.974969] ffff888103a69300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.975305] >ffff888103a69380: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.975619] ^ [ 14.975883] ffff888103a69400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.976205] ffff888103a69480: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.976527] ==================================================================