Date
July 15, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 10.992996] ================================================================== [ 10.993459] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 10.993746] Write of size 16 at addr ffff88810212e9e0 by task kunit_try_catch/185 [ 10.994277] [ 10.994398] CPU: 0 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT(voluntary) [ 10.994442] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.994453] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.994472] Call Trace: [ 10.994485] <TASK> [ 10.994500] dump_stack_lvl+0x73/0xb0 [ 10.994525] print_report+0xd1/0x610 [ 10.994548] ? __virt_addr_valid+0x1db/0x2d0 [ 10.994568] ? kmalloc_oob_16+0x452/0x4a0 [ 10.994588] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.994610] ? kmalloc_oob_16+0x452/0x4a0 [ 10.994630] kasan_report+0x141/0x180 [ 10.994652] ? kmalloc_oob_16+0x452/0x4a0 [ 10.994677] __asan_report_store16_noabort+0x1b/0x30 [ 10.994697] kmalloc_oob_16+0x452/0x4a0 [ 10.994718] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 10.994741] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 10.994779] kunit_try_run_case+0x1a5/0x480 [ 10.994799] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.994817] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.994840] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.994863] ? __kthread_parkme+0x82/0x180 [ 10.994896] ? preempt_count_sub+0x50/0x80 [ 10.994921] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.994940] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.994962] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.994984] kthread+0x337/0x6f0 [ 10.994999] ? trace_preempt_on+0x20/0xc0 [ 10.995022] ? __pfx_kthread+0x10/0x10 [ 10.995038] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.995059] ? calculate_sigpending+0x7b/0xa0 [ 10.995080] ? __pfx_kthread+0x10/0x10 [ 10.995097] ret_from_fork+0x41/0x80 [ 10.995117] ? __pfx_kthread+0x10/0x10 [ 10.995134] ret_from_fork_asm+0x1a/0x30 [ 10.995165] </TASK> [ 10.995174] [ 11.001906] Allocated by task 185: [ 11.002089] kasan_save_stack+0x45/0x70 [ 11.002290] kasan_save_track+0x18/0x40 [ 11.002483] kasan_save_alloc_info+0x3b/0x50 [ 11.002696] __kasan_kmalloc+0xb7/0xc0 [ 11.002899] __kmalloc_cache_noprof+0x189/0x420 [ 11.003050] kmalloc_oob_16+0xa8/0x4a0 [ 11.003220] kunit_try_run_case+0x1a5/0x480 [ 11.003424] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.003672] kthread+0x337/0x6f0 [ 11.003811] ret_from_fork+0x41/0x80 [ 11.004009] ret_from_fork_asm+0x1a/0x30 [ 11.004152] [ 11.004247] The buggy address belongs to the object at ffff88810212e9e0 [ 11.004247] which belongs to the cache kmalloc-16 of size 16 [ 11.004814] The buggy address is located 0 bytes inside of [ 11.004814] allocated 13-byte region [ffff88810212e9e0, ffff88810212e9ed) [ 11.005365] [ 11.005461] The buggy address belongs to the physical page: [ 11.005677] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10212e [ 11.006054] flags: 0x200000000000000(node=0|zone=2) [ 11.006272] page_type: f5(slab) [ 11.006422] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.006787] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.007098] page dumped because: kasan: bad access detected [ 11.007304] [ 11.007371] Memory state around the buggy address: [ 11.007523] ffff88810212e880: fa fb fc fc 00 02 fc fc 00 05 fc fc 00 02 fc fc [ 11.007733] ffff88810212e900: 00 02 fc fc 00 02 fc fc 00 02 fc fc fa fb fc fc [ 11.008034] >ffff88810212e980: fa fb fc fc fa fb fc fc 00 05 fc fc 00 05 fc fc [ 11.008374] ^ [ 11.008605] ffff88810212ea00: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.009014] ffff88810212ea80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.009359] ==================================================================