Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.870275] ================================================================== [ 31.870476] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 31.870648] Write of size 16 at addr fff00000c58d2920 by task kunit_try_catch/177 [ 31.870763] [ 31.870850] CPU: 1 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 31.871066] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.871167] Hardware name: linux,dummy-virt (DT) [ 31.871263] Call trace: [ 31.871324] show_stack+0x20/0x38 (C) [ 31.871477] dump_stack_lvl+0x8c/0xd0 [ 31.871587] print_report+0x118/0x608 [ 31.871733] kasan_report+0xdc/0x128 [ 31.871875] __asan_report_store16_noabort+0x20/0x30 [ 31.872029] kmalloc_oob_16+0x3a0/0x3f8 [ 31.872160] kunit_try_run_case+0x170/0x3f0 [ 31.872301] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.872459] kthread+0x328/0x630 [ 31.872556] ret_from_fork+0x10/0x20 [ 31.872681] [ 31.872723] Allocated by task 177: [ 31.872831] kasan_save_stack+0x3c/0x68 [ 31.872950] kasan_save_track+0x20/0x40 [ 31.873022] kasan_save_alloc_info+0x40/0x58 [ 31.873096] __kasan_kmalloc+0xd4/0xd8 [ 31.873174] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.873256] kmalloc_oob_16+0xb4/0x3f8 [ 31.873338] kunit_try_run_case+0x170/0x3f0 [ 31.873458] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.873591] kthread+0x328/0x630 [ 31.873707] ret_from_fork+0x10/0x20 [ 31.873808] [ 31.873855] The buggy address belongs to the object at fff00000c58d2920 [ 31.873855] which belongs to the cache kmalloc-16 of size 16 [ 31.874017] The buggy address is located 0 bytes inside of [ 31.874017] allocated 13-byte region [fff00000c58d2920, fff00000c58d292d) [ 31.874214] [ 31.874289] The buggy address belongs to the physical page: [ 31.874398] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058d2 [ 31.874591] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.874763] page_type: f5(slab) [ 31.874880] raw: 0bfffe0000000000 fff00000c0001640 dead000000000100 dead000000000122 [ 31.875064] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 31.875210] page dumped because: kasan: bad access detected [ 31.875297] [ 31.875360] Memory state around the buggy address: [ 31.875454] fff00000c58d2800: fa fb fc fc fa fb fc fc 00 00 fc fc fa fb fc fc [ 31.875582] fff00000c58d2880: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 31.875734] >fff00000c58d2900: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 31.875835] ^ [ 31.875921] fff00000c58d2980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.876081] fff00000c58d2a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.876190] ==================================================================
[ 25.542533] ================================================================== [ 25.543634] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 25.544640] Write of size 16 at addr ffff8881022cf6a0 by task kunit_try_catch/195 [ 25.545714] [ 25.546005] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 25.546121] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.546149] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.546193] Call Trace: [ 25.546220] <TASK> [ 25.546257] dump_stack_lvl+0x73/0xb0 [ 25.546305] print_report+0xd1/0x650 [ 25.546331] ? __virt_addr_valid+0x1db/0x2d0 [ 25.546360] ? kmalloc_oob_16+0x452/0x4a0 [ 25.546382] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.546410] ? kmalloc_oob_16+0x452/0x4a0 [ 25.546432] kasan_report+0x141/0x180 [ 25.546483] ? kmalloc_oob_16+0x452/0x4a0 [ 25.546526] __asan_report_store16_noabort+0x1b/0x30 [ 25.546568] kmalloc_oob_16+0x452/0x4a0 [ 25.546608] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 25.546653] ? __schedule+0x10cc/0x2b60 [ 25.546703] ? __pfx_read_tsc+0x10/0x10 [ 25.546754] ? ktime_get_ts64+0x86/0x230 [ 25.546801] kunit_try_run_case+0x1a5/0x480 [ 25.546845] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.546880] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.546915] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.546950] ? __kthread_parkme+0x82/0x180 [ 25.546985] ? preempt_count_sub+0x50/0x80 [ 25.547023] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.547057] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.547096] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.547134] kthread+0x337/0x6f0 [ 25.547166] ? trace_preempt_on+0x20/0xc0 [ 25.547202] ? __pfx_kthread+0x10/0x10 [ 25.547224] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.547246] ? calculate_sigpending+0x7b/0xa0 [ 25.547272] ? __pfx_kthread+0x10/0x10 [ 25.547295] ret_from_fork+0x116/0x1d0 [ 25.547316] ? __pfx_kthread+0x10/0x10 [ 25.547338] ret_from_fork_asm+0x1a/0x30 [ 25.547372] </TASK> [ 25.547387] [ 25.560128] Allocated by task 195: [ 25.560716] kasan_save_stack+0x45/0x70 [ 25.561232] kasan_save_track+0x18/0x40 [ 25.561726] kasan_save_alloc_info+0x3b/0x50 [ 25.562181] __kasan_kmalloc+0xb7/0xc0 [ 25.563007] __kmalloc_cache_noprof+0x189/0x420 [ 25.563245] kmalloc_oob_16+0xa8/0x4a0 [ 25.563409] kunit_try_run_case+0x1a5/0x480 [ 25.563627] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.564104] kthread+0x337/0x6f0 [ 25.564785] ret_from_fork+0x116/0x1d0 [ 25.565136] ret_from_fork_asm+0x1a/0x30 [ 25.565403] [ 25.565729] The buggy address belongs to the object at ffff8881022cf6a0 [ 25.565729] which belongs to the cache kmalloc-16 of size 16 [ 25.566459] The buggy address is located 0 bytes inside of [ 25.566459] allocated 13-byte region [ffff8881022cf6a0, ffff8881022cf6ad) [ 25.567736] [ 25.567917] The buggy address belongs to the physical page: [ 25.568465] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022cf [ 25.569209] flags: 0x200000000000000(node=0|zone=2) [ 25.569419] page_type: f5(slab) [ 25.569713] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 25.570369] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 25.571037] page dumped because: kasan: bad access detected [ 25.571566] [ 25.571749] Memory state around the buggy address: [ 25.572107] ffff8881022cf580: 00 06 fc fc 00 06 fc fc 00 00 fc fc 00 04 fc fc [ 25.572745] ffff8881022cf600: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 25.573131] >ffff8881022cf680: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 25.573858] ^ [ 25.574836] ffff8881022cf700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.576009] ffff8881022cf780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.576617] ==================================================================