Date
July 4, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.555667] ================================================================== [ 29.555799] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 29.555852] Write of size 16 at addr fff00000c5a489a0 by task kunit_try_catch/199 [ 29.555915] [ 29.556139] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT [ 29.556356] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.556424] Hardware name: linux,dummy-virt (DT) [ 29.556642] Call trace: [ 29.556699] show_stack+0x20/0x38 (C) [ 29.556942] dump_stack_lvl+0x8c/0xd0 [ 29.556996] print_report+0x118/0x608 [ 29.557049] kasan_report+0xdc/0x128 [ 29.557278] __asan_report_store16_noabort+0x20/0x30 [ 29.557671] kmalloc_oob_16+0x3a0/0x3f8 [ 29.557739] kunit_try_run_case+0x170/0x3f0 [ 29.557869] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.557935] kthread+0x328/0x630 [ 29.557977] ret_from_fork+0x10/0x20 [ 29.558024] [ 29.558042] Allocated by task 199: [ 29.558069] kasan_save_stack+0x3c/0x68 [ 29.558109] kasan_save_track+0x20/0x40 [ 29.558146] kasan_save_alloc_info+0x40/0x58 [ 29.558181] __kasan_kmalloc+0xd4/0xd8 [ 29.558218] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.558546] kmalloc_oob_16+0xb4/0x3f8 [ 29.558613] kunit_try_run_case+0x170/0x3f0 [ 29.558741] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.558906] kthread+0x328/0x630 [ 29.558984] ret_from_fork+0x10/0x20 [ 29.559150] [ 29.559233] The buggy address belongs to the object at fff00000c5a489a0 [ 29.559233] which belongs to the cache kmalloc-16 of size 16 [ 29.559312] The buggy address is located 0 bytes inside of [ 29.559312] allocated 13-byte region [fff00000c5a489a0, fff00000c5a489ad) [ 29.559653] [ 29.559747] The buggy address belongs to the physical page: [ 29.559885] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a48 [ 29.560281] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.560376] page_type: f5(slab) [ 29.560446] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 29.560610] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 29.560802] page dumped because: kasan: bad access detected [ 29.560875] [ 29.560981] Memory state around the buggy address: [ 29.561062] fff00000c5a48880: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 29.561193] fff00000c5a48900: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 29.561292] >fff00000c5a48980: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 29.561413] ^ [ 29.561541] fff00000c5a48a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.561615] fff00000c5a48a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.561654] ==================================================================
[ 24.885831] ================================================================== [ 24.886458] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 24.886815] Write of size 16 at addr ffff88810527f240 by task kunit_try_catch/215 [ 24.887141] [ 24.887292] CPU: 1 UID: 0 PID: 215 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) [ 24.887352] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.887366] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.887406] Call Trace: [ 24.887422] <TASK> [ 24.887444] dump_stack_lvl+0x73/0xb0 [ 24.887477] print_report+0xd1/0x650 [ 24.887503] ? __virt_addr_valid+0x1db/0x2d0 [ 24.887532] ? kmalloc_oob_16+0x452/0x4a0 [ 24.887555] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.887584] ? kmalloc_oob_16+0x452/0x4a0 [ 24.887608] kasan_report+0x141/0x180 [ 24.887632] ? kmalloc_oob_16+0x452/0x4a0 [ 24.887661] __asan_report_store16_noabort+0x1b/0x30 [ 24.887688] kmalloc_oob_16+0x452/0x4a0 [ 24.887712] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 24.887736] ? __schedule+0x10cc/0x2b60 [ 24.887765] ? __pfx_read_tsc+0x10/0x10 [ 24.887790] ? ktime_get_ts64+0x86/0x230 [ 24.887820] kunit_try_run_case+0x1a5/0x480 [ 24.887851] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.887877] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.887965] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.887994] ? __kthread_parkme+0x82/0x180 [ 24.888019] ? preempt_count_sub+0x50/0x80 [ 24.888048] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.888076] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.888104] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.888133] kthread+0x337/0x6f0 [ 24.888189] ? trace_preempt_on+0x20/0xc0 [ 24.888220] ? __pfx_kthread+0x10/0x10 [ 24.888251] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.888278] ? calculate_sigpending+0x7b/0xa0 [ 24.888307] ? __pfx_kthread+0x10/0x10 [ 24.888331] ret_from_fork+0x116/0x1d0 [ 24.888354] ? __pfx_kthread+0x10/0x10 [ 24.888378] ret_from_fork_asm+0x1a/0x30 [ 24.888426] </TASK> [ 24.888440] [ 24.896688] Allocated by task 215: [ 24.896843] kasan_save_stack+0x45/0x70 [ 24.897000] kasan_save_track+0x18/0x40 [ 24.897145] kasan_save_alloc_info+0x3b/0x50 [ 24.897304] __kasan_kmalloc+0xb7/0xc0 [ 24.897515] __kmalloc_cache_noprof+0x189/0x420 [ 24.897822] kmalloc_oob_16+0xa8/0x4a0 [ 24.898235] kunit_try_run_case+0x1a5/0x480 [ 24.898461] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.898678] kthread+0x337/0x6f0 [ 24.898807] ret_from_fork+0x116/0x1d0 [ 24.899075] ret_from_fork_asm+0x1a/0x30 [ 24.899386] [ 24.899642] The buggy address belongs to the object at ffff88810527f240 [ 24.899642] which belongs to the cache kmalloc-16 of size 16 [ 24.900174] The buggy address is located 0 bytes inside of [ 24.900174] allocated 13-byte region [ffff88810527f240, ffff88810527f24d) [ 24.900671] [ 24.900773] The buggy address belongs to the physical page: [ 24.901053] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10527f [ 24.901483] flags: 0x200000000000000(node=0|zone=2) [ 24.901750] page_type: f5(slab) [ 24.902014] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122 [ 24.902452] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 24.902707] page dumped because: kasan: bad access detected [ 24.902961] [ 24.903064] Memory state around the buggy address: [ 24.903498] ffff88810527f100: 00 06 fc fc 00 06 fc fc fa fb fc fc 00 00 fc fc [ 24.903840] ffff88810527f180: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 24.904134] >ffff88810527f200: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 24.904509] ^ [ 24.904762] ffff88810527f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.905093] ffff88810527f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.905323] ==================================================================