Date
July 8, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 25.369917] ================================================================== [ 25.370195] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 25.370529] Read of size 1 at addr ffff88810627a650 by task kunit_try_catch/307 [ 25.371031] [ 25.371134] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) [ 25.371187] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.371200] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.371223] Call Trace: [ 25.371256] <TASK> [ 25.371279] dump_stack_lvl+0x73/0xb0 [ 25.371310] print_report+0xd1/0x610 [ 25.371336] ? __virt_addr_valid+0x1db/0x2d0 [ 25.371363] ? kasan_strings+0xcbc/0xe80 [ 25.371387] ? kasan_complete_mode_report_info+0x64/0x200 [ 25.371418] ? kasan_strings+0xcbc/0xe80 [ 25.371439] kasan_report+0x141/0x180 [ 25.371463] ? kasan_strings+0xcbc/0xe80 [ 25.371489] __asan_report_load1_noabort+0x18/0x20 [ 25.371516] kasan_strings+0xcbc/0xe80 [ 25.371538] ? trace_hardirqs_on+0x37/0xe0 [ 25.371562] ? __pfx_kasan_strings+0x10/0x10 [ 25.371585] ? __kasan_check_write+0x18/0x20 [ 25.371611] ? queued_spin_lock_slowpath+0x116/0xb40 [ 25.371634] ? irqentry_exit+0x2a/0x60 [ 25.371656] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 25.371680] ? trace_hardirqs_on+0x37/0xe0 [ 25.371704] ? __pfx_read_tsc+0x10/0x10 [ 25.371729] ? ktime_get_ts64+0x86/0x230 [ 25.371833] kunit_try_run_case+0x1a5/0x480 [ 25.371862] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.371885] ? queued_spin_lock_slowpath+0x116/0xb40 [ 25.371907] ? __kthread_parkme+0x82/0x180 [ 25.371929] ? preempt_count_sub+0x50/0x80 [ 25.371954] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.371977] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.372005] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.372032] kthread+0x337/0x6f0 [ 25.372053] ? trace_preempt_on+0x20/0xc0 [ 25.372078] ? __pfx_kthread+0x10/0x10 [ 25.372101] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.372129] ? calculate_sigpending+0x7b/0xa0 [ 25.372158] ? __pfx_kthread+0x10/0x10 [ 25.372181] ret_from_fork+0x116/0x1d0 [ 25.372202] ? __pfx_kthread+0x10/0x10 [ 25.372224] ret_from_fork_asm+0x1a/0x30 [ 25.372272] </TASK> [ 25.372283] [ 25.379914] Allocated by task 307: [ 25.380151] kasan_save_stack+0x45/0x70 [ 25.380358] kasan_save_track+0x18/0x40 [ 25.380527] kasan_save_alloc_info+0x3b/0x50 [ 25.380716] __kasan_kmalloc+0xb7/0xc0 [ 25.380875] __kmalloc_cache_noprof+0x189/0x420 [ 25.381142] kasan_strings+0xc0/0xe80 [ 25.381389] kunit_try_run_case+0x1a5/0x480 [ 25.381571] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.381743] kthread+0x337/0x6f0 [ 25.381884] ret_from_fork+0x116/0x1d0 [ 25.382119] ret_from_fork_asm+0x1a/0x30 [ 25.382311] [ 25.382375] Freed by task 307: [ 25.382482] kasan_save_stack+0x45/0x70 [ 25.382644] kasan_save_track+0x18/0x40 [ 25.382830] kasan_save_free_info+0x3f/0x60 [ 25.383033] __kasan_slab_free+0x56/0x70 [ 25.383193] kfree+0x222/0x3f0 [ 25.383362] kasan_strings+0x2aa/0xe80 [ 25.383506] kunit_try_run_case+0x1a5/0x480 [ 25.383706] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.383896] kthread+0x337/0x6f0 [ 25.384139] ret_from_fork+0x116/0x1d0 [ 25.384491] ret_from_fork_asm+0x1a/0x30 [ 25.384672] [ 25.384739] The buggy address belongs to the object at ffff88810627a640 [ 25.384739] which belongs to the cache kmalloc-32 of size 32 [ 25.385265] The buggy address is located 16 bytes inside of [ 25.385265] freed 32-byte region [ffff88810627a640, ffff88810627a660) [ 25.385609] [ 25.385680] The buggy address belongs to the physical page: [ 25.385847] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10627a [ 25.386081] flags: 0x200000000000000(node=0|zone=2) [ 25.386270] page_type: f5(slab) [ 25.386431] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 25.386831] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 25.387160] page dumped because: kasan: bad access detected [ 25.387415] [ 25.387500] Memory state around the buggy address: [ 25.387713] ffff88810627a500: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 25.388441] ffff88810627a580: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 25.388662] >ffff88810627a600: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.389215] ^ [ 25.389494] ffff88810627a680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.389892] ffff88810627a700: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.390107] ==================================================================