Date
July 18, 2025, 1:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.570801] ================================================================== [ 31.570860] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 31.570911] Write of size 8 at addr fff00000c3efdb71 by task kunit_try_catch/207 [ 31.571463] [ 31.571525] CPU: 0 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT [ 31.571670] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.571738] Hardware name: linux,dummy-virt (DT) [ 31.571770] Call trace: [ 31.572065] show_stack+0x20/0x38 (C) [ 31.572175] dump_stack_lvl+0x8c/0xd0 [ 31.572332] print_report+0x118/0x5e8 [ 31.572403] kasan_report+0xdc/0x128 [ 31.572445] kasan_check_range+0x100/0x1a8 [ 31.572746] __asan_memset+0x34/0x78 [ 31.572866] kmalloc_oob_memset_8+0x150/0x2f8 [ 31.572926] kunit_try_run_case+0x170/0x3f0 [ 31.573250] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.573374] kthread+0x328/0x630 [ 31.573429] ret_from_fork+0x10/0x20 [ 31.573769] [ 31.573897] Allocated by task 207: [ 31.573965] kasan_save_stack+0x3c/0x68 [ 31.574089] kasan_save_track+0x20/0x40 [ 31.574146] kasan_save_alloc_info+0x40/0x58 [ 31.574229] __kasan_kmalloc+0xd4/0xd8 [ 31.574579] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.574664] kmalloc_oob_memset_8+0xb0/0x2f8 [ 31.574704] kunit_try_run_case+0x170/0x3f0 [ 31.574780] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.575154] kthread+0x328/0x630 [ 31.575264] ret_from_fork+0x10/0x20 [ 31.575302] [ 31.575352] The buggy address belongs to the object at fff00000c3efdb00 [ 31.575352] which belongs to the cache kmalloc-128 of size 128 [ 31.575692] The buggy address is located 113 bytes inside of [ 31.575692] allocated 120-byte region [fff00000c3efdb00, fff00000c3efdb78) [ 31.575844] [ 31.575904] The buggy address belongs to the physical page: [ 31.576003] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103efd [ 31.576171] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.576236] page_type: f5(slab) [ 31.576339] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 31.576494] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.576583] page dumped because: kasan: bad access detected [ 31.576898] [ 31.576966] Memory state around the buggy address: [ 31.577092] fff00000c3efda00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.577149] fff00000c3efda80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.577196] >fff00000c3efdb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.577455] ^ [ 31.577552] fff00000c3efdb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.577608] fff00000c3efdc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.577895] ==================================================================
[ 24.969373] ================================================================== [ 24.969813] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 24.970060] Write of size 8 at addr ffff8881053b7171 by task kunit_try_catch/224 [ 24.970340] [ 24.970449] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) [ 24.970499] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.970511] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.970534] Call Trace: [ 24.970546] <TASK> [ 24.970564] dump_stack_lvl+0x73/0xb0 [ 24.970597] print_report+0xd1/0x640 [ 24.970625] ? __virt_addr_valid+0x1db/0x2d0 [ 24.970651] ? kmalloc_oob_memset_8+0x166/0x330 [ 24.970671] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.970696] ? kmalloc_oob_memset_8+0x166/0x330 [ 24.970716] kasan_report+0x141/0x180 [ 24.970737] ? kmalloc_oob_memset_8+0x166/0x330 [ 24.970763] kasan_check_range+0x10c/0x1c0 [ 24.970785] __asan_memset+0x27/0x50 [ 24.970825] kmalloc_oob_memset_8+0x166/0x330 [ 24.970848] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 24.970870] ? __schedule+0x10da/0x2b60 [ 24.970893] ? __pfx_read_tsc+0x10/0x10 [ 24.970916] ? ktime_get_ts64+0x86/0x230 [ 24.970941] kunit_try_run_case+0x1a5/0x480 [ 24.970967] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.970988] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.971021] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.971053] ? __kthread_parkme+0x82/0x180 [ 24.971074] ? preempt_count_sub+0x50/0x80 [ 24.971097] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.971119] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.971141] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.971163] kthread+0x337/0x6f0 [ 24.971182] ? trace_preempt_on+0x20/0xc0 [ 24.971216] ? __pfx_kthread+0x10/0x10 [ 24.971236] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.971265] ? calculate_sigpending+0x7b/0xa0 [ 24.971288] ? __pfx_kthread+0x10/0x10 [ 24.971309] ret_from_fork+0x116/0x1d0 [ 24.971327] ? __pfx_kthread+0x10/0x10 [ 24.971347] ret_from_fork_asm+0x1a/0x30 [ 24.971378] </TASK> [ 24.971389] [ 24.983091] Allocated by task 224: [ 24.983286] kasan_save_stack+0x45/0x70 [ 24.983491] kasan_save_track+0x18/0x40 [ 24.983679] kasan_save_alloc_info+0x3b/0x50 [ 24.983881] __kasan_kmalloc+0xb7/0xc0 [ 24.984052] __kmalloc_cache_noprof+0x189/0x420 [ 24.984290] kmalloc_oob_memset_8+0xac/0x330 [ 24.984497] kunit_try_run_case+0x1a5/0x480 [ 24.984678] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.985073] kthread+0x337/0x6f0 [ 24.985245] ret_from_fork+0x116/0x1d0 [ 24.985433] ret_from_fork_asm+0x1a/0x30 [ 24.985579] [ 24.985669] The buggy address belongs to the object at ffff8881053b7100 [ 24.985669] which belongs to the cache kmalloc-128 of size 128 [ 24.986260] The buggy address is located 113 bytes inside of [ 24.986260] allocated 120-byte region [ffff8881053b7100, ffff8881053b7178) [ 24.986667] [ 24.986734] The buggy address belongs to the physical page: [ 24.986900] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1053b7 [ 24.987240] flags: 0x200000000000000(node=0|zone=2) [ 24.987723] page_type: f5(slab) [ 24.987850] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.988075] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.988548] page dumped because: kasan: bad access detected [ 24.988793] [ 24.988880] Memory state around the buggy address: [ 24.989100] ffff8881053b7000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.989457] ffff8881053b7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.989735] >ffff8881053b7100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.990100] ^ [ 24.990382] ffff8881053b7180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.990676] ffff8881053b7200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.991006] ==================================================================