Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.463392] ================================================================== [ 17.463455] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 17.463788] Read of size 1 at addr fff00000c767da50 by task kunit_try_catch/260 [ 17.463968] [ 17.464007] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.464340] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.464408] Hardware name: linux,dummy-virt (DT) [ 17.464446] Call trace: [ 17.464472] show_stack+0x20/0x38 (C) [ 17.464782] dump_stack_lvl+0x8c/0xd0 [ 17.464835] print_report+0x118/0x5d0 [ 17.465050] kasan_report+0xdc/0x128 [ 17.465568] __asan_report_load1_noabort+0x20/0x30 [ 17.465652] strcmp+0xc0/0xc8 [ 17.465814] kasan_strings+0x340/0xb00 [ 17.465897] kunit_try_run_case+0x170/0x3f0 [ 17.466125] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.466305] kthread+0x328/0x630 [ 17.466357] ret_from_fork+0x10/0x20 [ 17.466412] [ 17.466459] Allocated by task 260: [ 17.466512] kasan_save_stack+0x3c/0x68 [ 17.466568] kasan_save_track+0x20/0x40 [ 17.466608] kasan_save_alloc_info+0x40/0x58 [ 17.466661] __kasan_kmalloc+0xd4/0xd8 [ 17.466703] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.466755] kasan_strings+0xc8/0xb00 [ 17.466803] kunit_try_run_case+0x170/0x3f0 [ 17.466845] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.466889] kthread+0x328/0x630 [ 17.466924] ret_from_fork+0x10/0x20 [ 17.466962] [ 17.466985] Freed by task 260: [ 17.467026] kasan_save_stack+0x3c/0x68 [ 17.467090] kasan_save_track+0x20/0x40 [ 17.467131] kasan_save_free_info+0x4c/0x78 [ 17.467183] __kasan_slab_free+0x6c/0x98 [ 17.467243] kfree+0x214/0x3c8 [ 17.467289] kasan_strings+0x24c/0xb00 [ 17.467326] kunit_try_run_case+0x170/0x3f0 [ 17.467366] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.467412] kthread+0x328/0x630 [ 17.467455] ret_from_fork+0x10/0x20 [ 17.467492] [ 17.467525] The buggy address belongs to the object at fff00000c767da40 [ 17.467525] which belongs to the cache kmalloc-32 of size 32 [ 17.467595] The buggy address is located 16 bytes inside of [ 17.467595] freed 32-byte region [fff00000c767da40, fff00000c767da60) [ 17.467659] [ 17.467694] The buggy address belongs to the physical page: [ 17.467744] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10767d [ 17.467799] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.467852] page_type: f5(slab) [ 17.467901] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.467969] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.468025] page dumped because: kasan: bad access detected [ 17.468060] [ 17.468088] Memory state around the buggy address: [ 17.468124] fff00000c767d900: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.468171] fff00000c767d980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.469003] >fff00000c767da00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 17.469090] ^ [ 17.469146] fff00000c767da80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.469224] fff00000c767db00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 17.469349] ==================================================================
[ 14.878635] ================================================================== [ 14.880553] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 14.880945] Read of size 1 at addr ffff8881038b6250 by task kunit_try_catch/277 [ 14.881695] [ 14.881940] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.881998] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.882011] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.882159] Call Trace: [ 14.882179] <TASK> [ 14.882199] dump_stack_lvl+0x73/0xb0 [ 14.882277] print_report+0xd1/0x610 [ 14.882314] ? __virt_addr_valid+0x1db/0x2d0 [ 14.882341] ? strcmp+0xb0/0xc0 [ 14.882359] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.882385] ? strcmp+0xb0/0xc0 [ 14.882436] kasan_report+0x141/0x180 [ 14.882461] ? strcmp+0xb0/0xc0 [ 14.882500] __asan_report_load1_noabort+0x18/0x20 [ 14.882525] strcmp+0xb0/0xc0 [ 14.882546] kasan_strings+0x431/0xe80 [ 14.882568] ? trace_hardirqs_on+0x37/0xe0 [ 14.882594] ? __pfx_kasan_strings+0x10/0x10 [ 14.882615] ? finish_task_switch.isra.0+0x153/0x700 [ 14.882640] ? __switch_to+0x47/0xf50 [ 14.882670] ? __schedule+0x10c6/0x2b60 [ 14.882696] ? __pfx_read_tsc+0x10/0x10 [ 14.882719] ? ktime_get_ts64+0x86/0x230 [ 14.882748] kunit_try_run_case+0x1a5/0x480 [ 14.882776] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.882799] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.882825] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.882850] ? __kthread_parkme+0x82/0x180 [ 14.882873] ? preempt_count_sub+0x50/0x80 [ 14.882898] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.882923] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.882947] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.882972] kthread+0x337/0x6f0 [ 14.882992] ? trace_preempt_on+0x20/0xc0 [ 14.883015] ? __pfx_kthread+0x10/0x10 [ 14.883046] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.883069] ? calculate_sigpending+0x7b/0xa0 [ 14.883094] ? __pfx_kthread+0x10/0x10 [ 14.883116] ret_from_fork+0x116/0x1d0 [ 14.883136] ? __pfx_kthread+0x10/0x10 [ 14.883157] ret_from_fork_asm+0x1a/0x30 [ 14.883194] </TASK> [ 14.883204] [ 14.895943] Allocated by task 277: [ 14.896494] kasan_save_stack+0x45/0x70 [ 14.896709] kasan_save_track+0x18/0x40 [ 14.897211] kasan_save_alloc_info+0x3b/0x50 [ 14.897584] __kasan_kmalloc+0xb7/0xc0 [ 14.897968] __kmalloc_cache_noprof+0x189/0x420 [ 14.898359] kasan_strings+0xc0/0xe80 [ 14.898729] kunit_try_run_case+0x1a5/0x480 [ 14.899026] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.899270] kthread+0x337/0x6f0 [ 14.899463] ret_from_fork+0x116/0x1d0 [ 14.899706] ret_from_fork_asm+0x1a/0x30 [ 14.899862] [ 14.900001] Freed by task 277: [ 14.900257] kasan_save_stack+0x45/0x70 [ 14.900455] kasan_save_track+0x18/0x40 [ 14.900670] kasan_save_free_info+0x3f/0x60 [ 14.900915] __kasan_slab_free+0x56/0x70 [ 14.901171] kfree+0x222/0x3f0 [ 14.901348] kasan_strings+0x2aa/0xe80 [ 14.901511] kunit_try_run_case+0x1a5/0x480 [ 14.901668] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.901893] kthread+0x337/0x6f0 [ 14.902275] ret_from_fork+0x116/0x1d0 [ 14.902501] ret_from_fork_asm+0x1a/0x30 [ 14.902711] [ 14.902855] The buggy address belongs to the object at ffff8881038b6240 [ 14.902855] which belongs to the cache kmalloc-32 of size 32 [ 14.903446] The buggy address is located 16 bytes inside of [ 14.903446] freed 32-byte region [ffff8881038b6240, ffff8881038b6260) [ 14.904148] [ 14.904248] The buggy address belongs to the physical page: [ 14.904496] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038b6 [ 14.904889] flags: 0x200000000000000(node=0|zone=2) [ 14.905084] page_type: f5(slab) [ 14.905214] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.905488] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.905963] page dumped because: kasan: bad access detected [ 14.906222] [ 14.906318] Memory state around the buggy address: [ 14.906562] ffff8881038b6100: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.906997] ffff8881038b6180: 00 00 00 04 fc fc fc fc fa fb fb fb fc fc fc fc [ 14.907388] >ffff8881038b6200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.907676] ^ [ 14.907869] ffff8881038b6280: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.908250] ffff8881038b6300: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.908537] ==================================================================