Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 27.028574] ================================================================== [ 27.029311] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 27.029567] Read of size 1 at addr ffff88810585a498 by task kunit_try_catch/305 [ 27.030197] [ 27.030295] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 27.030348] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.030361] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.030384] Call Trace: [ 27.030397] <TASK> [ 27.030415] dump_stack_lvl+0x73/0xb0 [ 27.030445] print_report+0xd1/0x610 [ 27.030470] ? __virt_addr_valid+0x1db/0x2d0 [ 27.030508] ? memcmp+0x1b4/0x1d0 [ 27.030527] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.030554] ? memcmp+0x1b4/0x1d0 [ 27.030573] kasan_report+0x141/0x180 [ 27.030594] ? memcmp+0x1b4/0x1d0 [ 27.030618] __asan_report_load1_noabort+0x18/0x20 [ 27.030643] memcmp+0x1b4/0x1d0 [ 27.030663] kasan_memcmp+0x18f/0x390 [ 27.030684] ? trace_hardirqs_on+0x37/0xe0 [ 27.030722] ? __pfx_kasan_memcmp+0x10/0x10 [ 27.030743] ? finish_task_switch.isra.0+0x153/0x700 [ 27.030766] ? __switch_to+0x47/0xf80 [ 27.030870] ? __pfx_read_tsc+0x10/0x10 [ 27.030893] ? ktime_get_ts64+0x86/0x230 [ 27.030919] kunit_try_run_case+0x1a5/0x480 [ 27.030943] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.030964] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.030988] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.031012] ? __kthread_parkme+0x82/0x180 [ 27.031033] ? preempt_count_sub+0x50/0x80 [ 27.031057] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.031079] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.031105] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.031130] kthread+0x337/0x6f0 [ 27.031150] ? trace_preempt_on+0x20/0xc0 [ 27.031173] ? __pfx_kthread+0x10/0x10 [ 27.031195] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.031216] ? calculate_sigpending+0x7b/0xa0 [ 27.031241] ? __pfx_kthread+0x10/0x10 [ 27.031262] ret_from_fork+0x116/0x1d0 [ 27.031281] ? __pfx_kthread+0x10/0x10 [ 27.031302] ret_from_fork_asm+0x1a/0x30 [ 27.031334] </TASK> [ 27.031346] [ 27.039364] Allocated by task 305: [ 27.039626] kasan_save_stack+0x45/0x70 [ 27.039804] kasan_save_track+0x18/0x40 [ 27.040089] kasan_save_alloc_info+0x3b/0x50 [ 27.040313] __kasan_kmalloc+0xb7/0xc0 [ 27.040489] __kmalloc_cache_noprof+0x189/0x420 [ 27.040668] kasan_memcmp+0xb7/0x390 [ 27.040961] kunit_try_run_case+0x1a5/0x480 [ 27.041166] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.041476] kthread+0x337/0x6f0 [ 27.041657] ret_from_fork+0x116/0x1d0 [ 27.041800] ret_from_fork_asm+0x1a/0x30 [ 27.042019] [ 27.042109] The buggy address belongs to the object at ffff88810585a480 [ 27.042109] which belongs to the cache kmalloc-32 of size 32 [ 27.042686] The buggy address is located 0 bytes to the right of [ 27.042686] allocated 24-byte region [ffff88810585a480, ffff88810585a498) [ 27.043454] [ 27.043530] The buggy address belongs to the physical page: [ 27.044720] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10585a [ 27.045789] flags: 0x200000000000000(node=0|zone=2) [ 27.045981] page_type: f5(slab) [ 27.046106] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 27.046337] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 27.046563] page dumped because: kasan: bad access detected [ 27.046742] [ 27.046806] Memory state around the buggy address: [ 27.046957] ffff88810585a380: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 27.047169] ffff88810585a400: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 27.047379] >ffff88810585a480: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.047589] ^ [ 27.047780] ffff88810585a500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.048375] ffff88810585a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.048967] ==================================================================