Date
July 22, 2025, 2:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.472989] ================================================================== [ 19.473047] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 19.473109] Read of size 1 at addr fff00000c6fc4b90 by task kunit_try_catch/261 [ 19.473161] [ 19.473202] CPU: 1 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT [ 19.473301] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.473371] Hardware name: linux,dummy-virt (DT) [ 19.473407] Call trace: [ 19.473445] show_stack+0x20/0x38 (C) [ 19.473508] dump_stack_lvl+0x8c/0xd0 [ 19.473569] print_report+0x118/0x5d0 [ 19.473619] kasan_report+0xdc/0x128 [ 19.473665] __asan_report_load1_noabort+0x20/0x30 [ 19.473726] strcmp+0xc0/0xc8 [ 19.473771] kasan_strings+0x340/0xb00 [ 19.473819] kunit_try_run_case+0x170/0x3f0 [ 19.473870] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.473956] kthread+0x328/0x630 [ 19.474005] ret_from_fork+0x10/0x20 [ 19.474061] [ 19.474181] Allocated by task 261: [ 19.474256] kasan_save_stack+0x3c/0x68 [ 19.474372] kasan_save_track+0x20/0x40 [ 19.474553] kasan_save_alloc_info+0x40/0x58 [ 19.474895] __kasan_kmalloc+0xd4/0xd8 [ 19.474936] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.474977] kasan_strings+0xc8/0xb00 [ 19.475014] kunit_try_run_case+0x170/0x3f0 [ 19.475056] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.475097] kthread+0x328/0x630 [ 19.475136] ret_from_fork+0x10/0x20 [ 19.475180] [ 19.475291] Freed by task 261: [ 19.475320] kasan_save_stack+0x3c/0x68 [ 19.476131] kthread+0x328/0x630 [ 19.477392] [ 19.478702] ==================================================================
[ 13.090069] ================================================================== [ 13.091257] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 13.091531] Read of size 1 at addr ffff8881028ca790 by task kunit_try_catch/279 [ 13.091864] [ 13.091999] CPU: 1 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT(voluntary) [ 13.092068] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.092080] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.092104] Call Trace: [ 13.092117] <TASK> [ 13.092135] dump_stack_lvl+0x73/0xb0 [ 13.092161] print_report+0xd1/0x610 [ 13.092189] ? __virt_addr_valid+0x1db/0x2d0 [ 13.092210] ? strcmp+0xb0/0xc0 [ 13.092238] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.092279] ? strcmp+0xb0/0xc0 [ 13.092298] kasan_report+0x141/0x180 [ 13.092321] ? strcmp+0xb0/0xc0 [ 13.092343] __asan_report_load1_noabort+0x18/0x20 [ 13.092364] strcmp+0xb0/0xc0 [ 13.092383] kasan_strings+0x431/0xe80 [ 13.092415] ? trace_hardirqs_on+0x37/0xe0 [ 13.092439] ? __pfx_kasan_strings+0x10/0x10 [ 13.092461] ? __kasan_check_write+0x18/0x20 [ 13.092480] ? queued_spin_lock_slowpath+0x116/0xb40 [ 13.092503] ? __pfx_queued_spin_lock_slowpath+0x10/0x10 [ 13.092524] ? __pfx_read_tsc+0x10/0x10 [ 13.092545] ? ktime_get_ts64+0x86/0x230 [ 13.092570] kunit_try_run_case+0x1a5/0x480 [ 13.092611] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.092630] ? _raw_spin_lock_irqsave+0xf9/0x100 [ 13.092648] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.092673] ? __kthread_parkme+0x82/0x180 [ 13.092711] ? preempt_count_sub+0x50/0x80 [ 13.092738] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.092759] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.092782] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.092805] kthread+0x337/0x6f0 [ 13.092822] ? trace_preempt_on+0x20/0xc0 [ 13.092843] ? __pfx_kthread+0x10/0x10 [ 13.092861] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.092883] ? calculate_sigpending+0x7b/0xa0 [ 13.092905] ? __pfx_kthread+0x10/0x10 [ 13.092928] ret_from_fork+0x41/0x80 [ 13.092948] ? __pfx_kthread+0x10/0x10 [ 13.092966] ret_from_fork_asm+0x1a/0x30 [ 13.092997] </TASK> [ 13.093008] [ 13.100694] Allocated by task 279: [ 13.100902] kasan_save_stack+0x45/0x70 [ 13.101106] kasan_save_track+0x18/0x40 [ 13.101301] kasan_save_alloc_info+0x3b/0x50 [ 13.101501] __kasan_kmalloc+0xb7/0xc0 [ 13.101681] __kmalloc_cache_noprof+0x189/0x420 [ 13.101908] kasan_strings+0xc0/0xe80 [ 13.102046] kunit_try_run_case+0x1a5/0x480 [ 13.102184] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.102373] kthread+0x337/0x6f0 [ 13.102541] ret_from_fork+0x41/0x80 [ 13.102729] ret_from_fork_asm+0x1a/0x30 [ 13.102945] [ 13.103037] Freed by task 279: [ 13.103215] kasan_save_stack+0x45/0x70 [ 13.103471] kasan_save_track+0x18/0x40 [ 13.103639] kasan_save_free_info+0x3f/0x60 [ 13.103860] __kasan_slab_free+0x56/0x70 [ 13.104048] kfree+0x222/0x3f0 [ 13.104160] kasan_strings+0x2aa/0xe80 [ 13.104344] kunit_try_run_case+0x1a5/0x480 [ 13.104544] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.104795] kthread+0x337/0x6f0 [ 13.105036] ret_from_fork+0x41/0x80 [ 13.105235] ret_from_fork_asm+0x1a/0x30 [ 13.106139] [ 13.106265] The buggy address belongs to the object at ffff8881028ca780 [ 13.106265] which belongs to the cache kmalloc-32 of size 32 [ 13.107106] The buggy address is located 16 bytes inside of [ 13.107106] freed 32-byte region [ffff8881028ca780, ffff8881028ca7a0) [ 13.107806] [ 13.107879] The buggy address belongs to the physical page: [ 13.108047] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028ca [ 13.108438] flags: 0x200000000000000(node=0|zone=2) [ 13.108822] page_type: f5(slab) [ 13.109013] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.109453] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.109783] page dumped because: kasan: bad access detected [ 13.110009] [ 13.110076] Memory state around the buggy address: [ 13.110237] ffff8881028ca680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.110804] ffff8881028ca700: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.111135] >ffff8881028ca780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.111500] ^ [ 13.111685] ffff8881028ca800: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.111922] ffff8881028ca880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.112202] ==================================================================