Date
July 15, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.119253] ================================================================== [ 20.119312] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 20.119366] Read of size 1 at addr fff00000c59caad0 by task kunit_try_catch/261 [ 20.119678] [ 20.119887] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT [ 20.120118] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.120496] Hardware name: linux,dummy-virt (DT) [ 20.120576] Call trace: [ 20.120651] show_stack+0x20/0x38 (C) [ 20.120729] dump_stack_lvl+0x8c/0xd0 [ 20.120795] print_report+0x118/0x5d0 [ 20.120850] kasan_report+0xdc/0x128 [ 20.120897] __asan_report_load1_noabort+0x20/0x30 [ 20.120950] strcmp+0xc0/0xc8 [ 20.120995] kasan_strings+0x340/0xb00 [ 20.121042] kunit_try_run_case+0x170/0x3f0 [ 20.121391] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.121508] kthread+0x328/0x630 [ 20.122305] ret_from_fork+0x10/0x20 [ 20.122555] [ 20.122579] Allocated by task 261: [ 20.122732] kasan_save_stack+0x3c/0x68 [ 20.123088] kasan_save_track+0x20/0x40 [ 20.123311] kasan_save_alloc_info+0x40/0x58 [ 20.123428] __kasan_kmalloc+0xd4/0xd8 [ 20.123535] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.123679] kasan_strings+0xc8/0xb00 [ 20.123734] kunit_try_run_case+0x170/0x3f0 [ 20.123786] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.124098] kthread+0x328/0x630 [ 20.124171] ret_from_fork+0x10/0x20 [ 20.124302] [ 20.124364] Freed by task 261: [ 20.124421] kasan_save_stack+0x3c/0x68 [ 20.124465] kasan_save_track+0x20/0x40 [ 20.124824] kasan_save_free_info+0x4c/0x78 [ 20.124896] __kasan_slab_free+0x6c/0x98 [ 20.125040] kfree+0x214/0x3c8 [ 20.125096] kasan_strings+0x24c/0xb00 [ 20.125303] kunit_try_run_case+0x170/0x3f0 [ 20.125515] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.125610] kthread+0x328/0x630 [ 20.125701] ret_from_fork+0x10/0x20 [ 20.125759] [ 20.125797] The buggy address belongs to the object at fff00000c59caac0 [ 20.125797] which belongs to the cache kmalloc-32 of size 32 [ 20.125905] The buggy address is located 16 bytes inside of [ 20.125905] freed 32-byte region [fff00000c59caac0, fff00000c59caae0) [ 20.125972] [ 20.125994] The buggy address belongs to the physical page: [ 20.126327] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059ca [ 20.126426] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.126643] page_type: f5(slab) [ 20.126827] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.126912] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.126986] page dumped because: kasan: bad access detected [ 20.127268] [ 20.127304] Memory state around the buggy address: [ 20.127502] fff00000c59ca980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.127679] fff00000c59caa00: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.127813] >fff00000c59caa80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.127876] ^ [ 20.127987] fff00000c59cab00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.128039] fff00000c59cab80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.128106] ==================================================================
[ 12.901875] ================================================================== [ 12.902547] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 12.902904] Read of size 1 at addr ffff8881022482d0 by task kunit_try_catch/278 [ 12.904172] [ 12.904338] CPU: 0 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT(voluntary) [ 12.904384] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.904396] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.904415] Call Trace: [ 12.904426] <TASK> [ 12.904441] dump_stack_lvl+0x73/0xb0 [ 12.904466] print_report+0xd1/0x610 [ 12.904488] ? __virt_addr_valid+0x1db/0x2d0 [ 12.904510] ? strcmp+0xb0/0xc0 [ 12.904527] ? kasan_complete_mode_report_info+0x64/0x200 [ 12.904549] ? strcmp+0xb0/0xc0 [ 12.904567] kasan_report+0x141/0x180 [ 12.904589] ? strcmp+0xb0/0xc0 [ 12.904612] __asan_report_load1_noabort+0x18/0x20 [ 12.904632] strcmp+0xb0/0xc0 [ 12.904652] kasan_strings+0x431/0xe80 [ 12.904671] ? trace_hardirqs_on+0x37/0xe0 [ 12.904694] ? __pfx_kasan_strings+0x10/0x10 [ 12.904714] ? finish_task_switch.isra.0+0x153/0x700 [ 12.904736] ? __switch_to+0x5d9/0xf60 [ 12.904755] ? dequeue_task_fair+0x166/0x4e0 [ 12.904778] ? __schedule+0x10cc/0x2b60 [ 12.904801] ? __pfx_read_tsc+0x10/0x10 [ 12.904819] ? ktime_get_ts64+0x86/0x230 [ 12.904844] kunit_try_run_case+0x1a5/0x480 [ 12.904864] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.904895] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.904920] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.904980] ? __kthread_parkme+0x82/0x180 [ 12.905005] ? preempt_count_sub+0x50/0x80 [ 12.905030] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.905049] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.905072] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.905094] kthread+0x337/0x6f0 [ 12.905110] ? trace_preempt_on+0x20/0xc0 [ 12.905136] ? __pfx_kthread+0x10/0x10 [ 12.905153] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.905174] ? calculate_sigpending+0x7b/0xa0 [ 12.905196] ? __pfx_kthread+0x10/0x10 [ 12.905213] ret_from_fork+0x41/0x80 [ 12.905233] ? __pfx_kthread+0x10/0x10 [ 12.905250] ret_from_fork_asm+0x1a/0x30 [ 12.905279] </TASK> [ 12.905289] [ 12.915597] Allocated by task 278: [ 12.916335] kasan_save_stack+0x45/0x70 [ 12.916528] kasan_save_track+0x18/0x40 [ 12.916683] kasan_save_alloc_info+0x3b/0x50 [ 12.916972] __kasan_kmalloc+0xb7/0xc0 [ 12.917392] __kmalloc_cache_noprof+0x189/0x420 [ 12.917633] kasan_strings+0xc0/0xe80 [ 12.918195] kunit_try_run_case+0x1a5/0x480 [ 12.918400] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.918615] kthread+0x337/0x6f0 [ 12.918812] ret_from_fork+0x41/0x80 [ 12.919099] ret_from_fork_asm+0x1a/0x30 [ 12.919247] [ 12.919368] Freed by task 278: [ 12.919531] kasan_save_stack+0x45/0x70 [ 12.919774] kasan_save_track+0x18/0x40 [ 12.920070] kasan_save_free_info+0x3f/0x60 [ 12.920320] __kasan_slab_free+0x56/0x70 [ 12.920456] kfree+0x222/0x3f0 [ 12.920626] kasan_strings+0x2aa/0xe80 [ 12.921001] kunit_try_run_case+0x1a5/0x480 [ 12.921223] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.921553] kthread+0x337/0x6f0 [ 12.921672] ret_from_fork+0x41/0x80 [ 12.921840] ret_from_fork_asm+0x1a/0x30 [ 12.922122] [ 12.922222] The buggy address belongs to the object at ffff8881022482c0 [ 12.922222] which belongs to the cache kmalloc-32 of size 32 [ 12.923180] The buggy address is located 16 bytes inside of [ 12.923180] freed 32-byte region [ffff8881022482c0, ffff8881022482e0) [ 12.923658] [ 12.924275] The buggy address belongs to the physical page: [ 12.924490] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102248 [ 12.925053] flags: 0x200000000000000(node=0|zone=2) [ 12.925279] page_type: f5(slab) [ 12.925558] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 12.926105] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 12.926427] page dumped because: kasan: bad access detected [ 12.926654] [ 12.927033] Memory state around the buggy address: [ 12.927251] ffff888102248180: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 12.927606] ffff888102248200: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 12.928078] >ffff888102248280: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 12.928326] ^ [ 12.928605] ffff888102248300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 12.929049] ffff888102248380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 12.929332] ==================================================================