Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.351937] ================================================================== [ 30.352008] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 30.352061] Write of size 16 at addr fff00000c8603e40 by task kunit_try_catch/199 [ 30.352110] [ 30.352208] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 30.352316] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.352352] Hardware name: linux,dummy-virt (DT) [ 30.352382] Call trace: [ 30.352411] show_stack+0x20/0x38 (C) [ 30.352467] dump_stack_lvl+0x8c/0xd0 [ 30.352514] print_report+0x118/0x5e8 [ 30.353360] kasan_report+0xdc/0x128 [ 30.353472] __asan_report_store16_noabort+0x20/0x30 [ 30.353551] kmalloc_oob_16+0x3a0/0x3f8 [ 30.353797] kunit_try_run_case+0x170/0x3f0 [ 30.354059] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.354195] kthread+0x328/0x630 [ 30.354294] ret_from_fork+0x10/0x20 [ 30.354423] [ 30.354472] Allocated by task 199: [ 30.354539] kasan_save_stack+0x3c/0x68 [ 30.354870] kasan_save_track+0x20/0x40 [ 30.355044] kasan_save_alloc_info+0x40/0x58 [ 30.355135] __kasan_kmalloc+0xd4/0xd8 [ 30.355242] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.355320] kmalloc_oob_16+0xb4/0x3f8 [ 30.355425] kunit_try_run_case+0x170/0x3f0 [ 30.355495] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.355537] kthread+0x328/0x630 [ 30.355728] ret_from_fork+0x10/0x20 [ 30.355922] [ 30.356084] The buggy address belongs to the object at fff00000c8603e40 [ 30.356084] which belongs to the cache kmalloc-16 of size 16 [ 30.356177] The buggy address is located 0 bytes inside of [ 30.356177] allocated 13-byte region [fff00000c8603e40, fff00000c8603e4d) [ 30.356303] [ 30.356351] The buggy address belongs to the physical page: [ 30.356389] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xfff00000c8603e00 pfn:0x108603 [ 30.356798] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.356857] page_type: f5(slab) [ 30.356907] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 30.357263] raw: fff00000c8603e00 000000008080007f 00000000f5000000 0000000000000000 [ 30.357518] page dumped because: kasan: bad access detected [ 30.357608] [ 30.357700] Memory state around the buggy address: [ 30.357804] fff00000c8603d00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.357875] fff00000c8603d80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.357974] >fff00000c8603e00: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 30.358140] ^ [ 30.358336] fff00000c8603e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.358518] fff00000c8603f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.358662] ==================================================================
[ 25.121199] ================================================================== [ 25.121676] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 25.121900] Write of size 16 at addr ffff888104963040 by task kunit_try_catch/215 [ 25.122113] [ 25.122210] CPU: 0 UID: 0 PID: 215 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 25.122260] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.122272] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.122292] Call Trace: [ 25.122306] <TASK> [ 25.122324] dump_stack_lvl+0x73/0xb0 [ 25.122351] print_report+0xd1/0x640 [ 25.122374] ? __virt_addr_valid+0x1db/0x2d0 [ 25.122397] ? kmalloc_oob_16+0x452/0x4a0 [ 25.122416] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.122440] ? kmalloc_oob_16+0x452/0x4a0 [ 25.122460] kasan_report+0x141/0x180 [ 25.122481] ? kmalloc_oob_16+0x452/0x4a0 [ 25.122505] __asan_report_store16_noabort+0x1b/0x30 [ 25.122528] kmalloc_oob_16+0x452/0x4a0 [ 25.122548] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 25.122569] ? __schedule+0x10da/0x2b60 [ 25.122593] ? __pfx_read_tsc+0x10/0x10 [ 25.122614] ? ktime_get_ts64+0x86/0x230 [ 25.122639] kunit_try_run_case+0x1a5/0x480 [ 25.122663] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.122685] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.122709] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.122733] ? __kthread_parkme+0x82/0x180 [ 25.122753] ? preempt_count_sub+0x50/0x80 [ 25.122779] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.122803] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.122827] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.122849] kthread+0x337/0x6f0 [ 25.122869] ? trace_preempt_on+0x20/0xc0 [ 25.122892] ? __pfx_kthread+0x10/0x10 [ 25.122912] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.122934] ? calculate_sigpending+0x7b/0xa0 [ 25.122957] ? __pfx_kthread+0x10/0x10 [ 25.122978] ret_from_fork+0x116/0x1d0 [ 25.122996] ? __pfx_kthread+0x10/0x10 [ 25.123016] ret_from_fork_asm+0x1a/0x30 [ 25.123046] </TASK> [ 25.123057] [ 25.141758] Allocated by task 215: [ 25.141916] kasan_save_stack+0x45/0x70 [ 25.142336] kasan_save_track+0x18/0x40 [ 25.142736] kasan_save_alloc_info+0x3b/0x50 [ 25.143218] __kasan_kmalloc+0xb7/0xc0 [ 25.143352] __kmalloc_cache_noprof+0x189/0x420 [ 25.143530] kmalloc_oob_16+0xa8/0x4a0 [ 25.143684] kunit_try_run_case+0x1a5/0x480 [ 25.143821] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.144111] kthread+0x337/0x6f0 [ 25.144433] ret_from_fork+0x116/0x1d0 [ 25.144866] ret_from_fork_asm+0x1a/0x30 [ 25.145362] [ 25.145721] The buggy address belongs to the object at ffff888104963040 [ 25.145721] which belongs to the cache kmalloc-16 of size 16 [ 25.147032] The buggy address is located 0 bytes inside of [ 25.147032] allocated 13-byte region [ffff888104963040, ffff88810496304d) [ 25.148234] [ 25.148419] The buggy address belongs to the physical page: [ 25.148967] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104963 [ 25.149293] flags: 0x200000000000000(node=0|zone=2) [ 25.149799] page_type: f5(slab) [ 25.150142] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 25.151024] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 25.151295] page dumped because: kasan: bad access detected [ 25.151454] [ 25.151516] Memory state around the buggy address: [ 25.151669] ffff888104962f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.151872] ffff888104962f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.152930] >ffff888104963000: 00 04 fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 25.153803] ^ [ 25.154467] ffff888104963080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.155124] ffff888104963100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.155986] ==================================================================