Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.839311] ================================================================== [ 18.839436] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 18.839652] Read of size 1 at addr fff00000c6460590 by task kunit_try_catch/259 [ 18.839725] [ 18.840236] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.840353] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.840383] Hardware name: linux,dummy-virt (DT) [ 18.840418] Call trace: [ 18.840448] show_stack+0x20/0x38 (C) [ 18.840505] dump_stack_lvl+0x8c/0xd0 [ 18.840555] print_report+0x118/0x608 [ 18.840605] kasan_report+0xdc/0x128 [ 18.840652] __asan_report_load1_noabort+0x20/0x30 [ 18.840705] strcmp+0xc0/0xc8 [ 18.840748] kasan_strings+0x340/0xb00 [ 18.840795] kunit_try_run_case+0x170/0x3f0 [ 18.840847] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.840903] kthread+0x328/0x630 [ 18.840946] ret_from_fork+0x10/0x20 [ 18.840997] [ 18.841019] Allocated by task 259: [ 18.841050] kasan_save_stack+0x3c/0x68 [ 18.841095] kasan_save_track+0x20/0x40 [ 18.841148] kasan_save_alloc_info+0x40/0x58 [ 18.841191] __kasan_kmalloc+0xd4/0xd8 [ 18.841230] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.841272] kasan_strings+0xc8/0xb00 [ 18.841310] kunit_try_run_case+0x170/0x3f0 [ 18.841351] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.841395] kthread+0x328/0x630 [ 18.841429] ret_from_fork+0x10/0x20 [ 18.841467] [ 18.841488] Freed by task 259: [ 18.841519] kasan_save_stack+0x3c/0x68 [ 18.841559] kasan_save_track+0x20/0x40 [ 18.841599] kasan_save_free_info+0x4c/0x78 [ 18.841641] __kasan_slab_free+0x6c/0x98 [ 18.841681] kfree+0x214/0x3c8 [ 18.841715] kasan_strings+0x24c/0xb00 [ 18.841753] kunit_try_run_case+0x170/0x3f0 [ 18.841791] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.841837] kthread+0x328/0x630 [ 18.841872] ret_from_fork+0x10/0x20 [ 18.841910] [ 18.841932] The buggy address belongs to the object at fff00000c6460580 [ 18.841932] which belongs to the cache kmalloc-32 of size 32 [ 18.841992] The buggy address is located 16 bytes inside of [ 18.841992] freed 32-byte region [fff00000c6460580, fff00000c64605a0) [ 18.842057] [ 18.842081] The buggy address belongs to the physical page: [ 18.844964] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106460 [ 18.845032] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.845296] page_type: f5(slab) [ 18.845342] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.845393] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.845436] page dumped because: kasan: bad access detected [ 18.845470] [ 18.845490] Memory state around the buggy address: [ 18.845533] fff00000c6460480: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.845578] fff00000c6460500: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.845623] >fff00000c6460580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.845664] ^ [ 18.845696] fff00000c6460600: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.845739] fff00000c6460680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.845781] ==================================================================
[ 14.446442] ================================================================== [ 14.447368] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 14.447575] Read of size 1 at addr ffff8881032060d0 by task kunit_try_catch/276 [ 14.447807] [ 14.447897] CPU: 0 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.447942] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.447954] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.447975] Call Trace: [ 14.447986] <TASK> [ 14.448003] dump_stack_lvl+0x73/0xb0 [ 14.448030] print_report+0xd1/0x650 [ 14.448054] ? __virt_addr_valid+0x1db/0x2d0 [ 14.448076] ? strcmp+0xb0/0xc0 [ 14.448092] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.448116] ? strcmp+0xb0/0xc0 [ 14.448132] kasan_report+0x141/0x180 [ 14.448153] ? strcmp+0xb0/0xc0 [ 14.448173] __asan_report_load1_noabort+0x18/0x20 [ 14.448197] strcmp+0xb0/0xc0 [ 14.448215] kasan_strings+0x431/0xe80 [ 14.448234] ? trace_hardirqs_on+0x37/0xe0 [ 14.448258] ? __pfx_kasan_strings+0x10/0x10 [ 14.448277] ? finish_task_switch.isra.0+0x153/0x700 [ 14.448299] ? __switch_to+0x47/0xf50 [ 14.448329] ? __schedule+0x10cc/0x2b60 [ 14.448350] ? __pfx_read_tsc+0x10/0x10 [ 14.448372] ? ktime_get_ts64+0x86/0x230 [ 14.448395] kunit_try_run_case+0x1a5/0x480 [ 14.448419] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.448441] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.448464] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.448487] ? __kthread_parkme+0x82/0x180 [ 14.448509] ? preempt_count_sub+0x50/0x80 [ 14.448531] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.448554] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.448577] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.448601] kthread+0x337/0x6f0 [ 14.448619] ? trace_preempt_on+0x20/0xc0 [ 14.448641] ? __pfx_kthread+0x10/0x10 [ 14.448660] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.448680] ? calculate_sigpending+0x7b/0xa0 [ 14.448724] ? __pfx_kthread+0x10/0x10 [ 14.448745] ret_from_fork+0x116/0x1d0 [ 14.448762] ? __pfx_kthread+0x10/0x10 [ 14.448782] ret_from_fork_asm+0x1a/0x30 [ 14.448812] </TASK> [ 14.448822] [ 14.462787] Allocated by task 276: [ 14.462954] kasan_save_stack+0x45/0x70 [ 14.463202] kasan_save_track+0x18/0x40 [ 14.463385] kasan_save_alloc_info+0x3b/0x50 [ 14.463539] __kasan_kmalloc+0xb7/0xc0 [ 14.463684] __kmalloc_cache_noprof+0x189/0x420 [ 14.463915] kasan_strings+0xc0/0xe80 [ 14.464179] kunit_try_run_case+0x1a5/0x480 [ 14.464392] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.464587] kthread+0x337/0x6f0 [ 14.464764] ret_from_fork+0x116/0x1d0 [ 14.464921] ret_from_fork_asm+0x1a/0x30 [ 14.465186] [ 14.465265] Freed by task 276: [ 14.465376] kasan_save_stack+0x45/0x70 [ 14.465511] kasan_save_track+0x18/0x40 [ 14.465645] kasan_save_free_info+0x3f/0x60 [ 14.465864] __kasan_slab_free+0x56/0x70 [ 14.466062] kfree+0x222/0x3f0 [ 14.466224] kasan_strings+0x2aa/0xe80 [ 14.466382] kunit_try_run_case+0x1a5/0x480 [ 14.466526] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.466700] kthread+0x337/0x6f0 [ 14.466970] ret_from_fork+0x116/0x1d0 [ 14.467492] ret_from_fork_asm+0x1a/0x30 [ 14.467733] [ 14.467830] The buggy address belongs to the object at ffff8881032060c0 [ 14.467830] which belongs to the cache kmalloc-32 of size 32 [ 14.468477] The buggy address is located 16 bytes inside of [ 14.468477] freed 32-byte region [ffff8881032060c0, ffff8881032060e0) [ 14.468916] [ 14.469013] The buggy address belongs to the physical page: [ 14.469269] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103206 [ 14.469635] flags: 0x200000000000000(node=0|zone=2) [ 14.469816] page_type: f5(slab) [ 14.469938] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.470476] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.471065] page dumped because: kasan: bad access detected [ 14.471359] [ 14.471446] Memory state around the buggy address: [ 14.471601] ffff888103205f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.471852] ffff888103206000: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.472485] >ffff888103206080: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.472835] ^ [ 14.473183] ffff888103206100: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.473461] ffff888103206180: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.473728] ==================================================================