Date
June 24, 2025, 12:47 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 12.507713] ================================================================== [ 12.508204] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.508952] Read of size 1 at addr ffff8881039e50c8 by task kunit_try_catch/227 [ 12.509372] [ 12.509571] CPU: 0 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc2 #1 PREEMPT(voluntary) [ 12.509827] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.509853] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.509894] Call Trace: [ 12.509920] <TASK> [ 12.509965] dump_stack_lvl+0x73/0xb0 [ 12.510030] print_report+0xd1/0x650 [ 12.510076] ? __virt_addr_valid+0x1db/0x2d0 [ 12.510114] ? kmem_cache_oob+0x402/0x530 [ 12.510147] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.510192] ? kmem_cache_oob+0x402/0x530 [ 12.510227] kasan_report+0x141/0x180 [ 12.510269] ? kmem_cache_oob+0x402/0x530 [ 12.510805] __asan_report_load1_noabort+0x18/0x20 [ 12.510855] kmem_cache_oob+0x402/0x530 [ 12.510890] ? trace_hardirqs_on+0x37/0xe0 [ 12.510932] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.510961] ? finish_task_switch.isra.0+0x153/0x700 [ 12.511001] ? __switch_to+0x5d9/0xf60 [ 12.511035] ? dequeue_task_fair+0x166/0x4e0 [ 12.511078] ? __pfx_read_tsc+0x10/0x10 [ 12.511100] ? ktime_get_ts64+0x86/0x230 [ 12.511124] kunit_try_run_case+0x1a5/0x480 [ 12.511149] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.511170] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.511195] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.511217] ? __kthread_parkme+0x82/0x180 [ 12.511239] ? preempt_count_sub+0x50/0x80 [ 12.511261] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.511391] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.511419] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.511440] kthread+0x337/0x6f0 [ 12.511457] ? trace_preempt_on+0x20/0xc0 [ 12.511479] ? __pfx_kthread+0x10/0x10 [ 12.511495] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.511515] ? calculate_sigpending+0x7b/0xa0 [ 12.511551] ? __pfx_kthread+0x10/0x10 [ 12.511572] ret_from_fork+0x41/0x80 [ 12.511593] ? __pfx_kthread+0x10/0x10 [ 12.511610] ret_from_fork_asm+0x1a/0x30 [ 12.511656] </TASK> [ 12.511669] [ 12.523948] Allocated by task 227: [ 12.524206] kasan_save_stack+0x45/0x70 [ 12.524802] kasan_save_track+0x18/0x40 [ 12.525015] kasan_save_alloc_info+0x3b/0x50 [ 12.525190] __kasan_slab_alloc+0x91/0xa0 [ 12.525738] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.526116] kmem_cache_oob+0x157/0x530 [ 12.526925] kunit_try_run_case+0x1a5/0x480 [ 12.527275] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.527844] kthread+0x337/0x6f0 [ 12.528056] ret_from_fork+0x41/0x80 [ 12.528485] ret_from_fork_asm+0x1a/0x30 [ 12.528820] [ 12.528974] The buggy address belongs to the object at ffff8881039e5000 [ 12.528974] which belongs to the cache test_cache of size 200 [ 12.530006] The buggy address is located 0 bytes to the right of [ 12.530006] allocated 200-byte region [ffff8881039e5000, ffff8881039e50c8) [ 12.530853] [ 12.530956] The buggy address belongs to the physical page: [ 12.531594] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039e5 [ 12.532240] flags: 0x200000000000000(node=0|zone=2) [ 12.532724] page_type: f5(slab) [ 12.532959] raw: 0200000000000000 ffff888101e34280 dead000000000122 0000000000000000 [ 12.533266] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.533719] page dumped because: kasan: bad access detected [ 12.533952] [ 12.534109] Memory state around the buggy address: [ 12.534373] ffff8881039e4f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.534803] ffff8881039e5000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.535038] >ffff8881039e5080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.535261] ^ [ 12.536255] ffff8881039e5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.536677] ffff8881039e5180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.537039] ==================================================================