Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.448381] ================================================================== [ 30.448606] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 30.448958] Write of size 8 at addr fff00000c99bcc71 by task kunit_try_catch/209 [ 30.449019] [ 30.449056] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 30.449143] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.449168] Hardware name: linux,dummy-virt (DT) [ 30.449599] Call trace: [ 30.449681] show_stack+0x20/0x38 (C) [ 30.449944] dump_stack_lvl+0x8c/0xd0 [ 30.450110] print_report+0x118/0x5e8 [ 30.450217] kasan_report+0xdc/0x128 [ 30.450273] kasan_check_range+0x100/0x1a8 [ 30.450492] __asan_memset+0x34/0x78 [ 30.450546] kmalloc_oob_memset_8+0x150/0x2f8 [ 30.450592] kunit_try_run_case+0x170/0x3f0 [ 30.450762] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.450851] kthread+0x328/0x630 [ 30.450893] ret_from_fork+0x10/0x20 [ 30.450961] [ 30.450979] Allocated by task 209: [ 30.451022] kasan_save_stack+0x3c/0x68 [ 30.451064] kasan_save_track+0x20/0x40 [ 30.451098] kasan_save_alloc_info+0x40/0x58 [ 30.451142] __kasan_kmalloc+0xd4/0xd8 [ 30.451192] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.451243] kmalloc_oob_memset_8+0xb0/0x2f8 [ 30.451281] kunit_try_run_case+0x170/0x3f0 [ 30.451324] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.451375] kthread+0x328/0x630 [ 30.451409] ret_from_fork+0x10/0x20 [ 30.451454] [ 30.451494] The buggy address belongs to the object at fff00000c99bcc00 [ 30.451494] which belongs to the cache kmalloc-128 of size 128 [ 30.451550] The buggy address is located 113 bytes inside of [ 30.451550] allocated 120-byte region [fff00000c99bcc00, fff00000c99bcc78) [ 30.451612] [ 30.451641] The buggy address belongs to the physical page: [ 30.451676] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099bc [ 30.451728] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.451776] page_type: f5(slab) [ 30.451813] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 30.451860] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.451908] page dumped because: kasan: bad access detected [ 30.451978] [ 30.452026] Memory state around the buggy address: [ 30.452080] fff00000c99bcb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.452617] fff00000c99bcb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.452777] >fff00000c99bcc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.452819] ^ [ 30.453134] fff00000c99bcc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.453181] fff00000c99bcd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.453454] ==================================================================
[ 25.288783] ================================================================== [ 25.289345] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 25.290678] Write of size 8 at addr ffff888104657e71 by task kunit_try_catch/225 [ 25.291286] [ 25.291422] CPU: 1 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 25.291602] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.291625] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.291649] Call Trace: [ 25.291664] <TASK> [ 25.291685] dump_stack_lvl+0x73/0xb0 [ 25.291719] print_report+0xd1/0x640 [ 25.291742] ? __virt_addr_valid+0x1db/0x2d0 [ 25.291766] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.291788] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.291813] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.291834] kasan_report+0x141/0x180 [ 25.291856] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.291881] kasan_check_range+0x10c/0x1c0 [ 25.291904] __asan_memset+0x27/0x50 [ 25.291934] kmalloc_oob_memset_8+0x166/0x330 [ 25.291956] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 25.291978] ? __schedule+0x10da/0x2b60 [ 25.292003] ? __pfx_read_tsc+0x10/0x10 [ 25.292025] ? ktime_get_ts64+0x86/0x230 [ 25.292049] kunit_try_run_case+0x1a5/0x480 [ 25.292075] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.292096] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.292121] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.292157] ? __kthread_parkme+0x82/0x180 [ 25.292177] ? preempt_count_sub+0x50/0x80 [ 25.292200] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.292224] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.292247] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.292269] kthread+0x337/0x6f0 [ 25.292289] ? trace_preempt_on+0x20/0xc0 [ 25.292314] ? __pfx_kthread+0x10/0x10 [ 25.292334] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.292357] ? calculate_sigpending+0x7b/0xa0 [ 25.292380] ? __pfx_kthread+0x10/0x10 [ 25.292401] ret_from_fork+0x116/0x1d0 [ 25.292421] ? __pfx_kthread+0x10/0x10 [ 25.292441] ret_from_fork_asm+0x1a/0x30 [ 25.292472] </TASK> [ 25.292484] [ 25.308539] Allocated by task 225: [ 25.308688] kasan_save_stack+0x45/0x70 [ 25.308962] kasan_save_track+0x18/0x40 [ 25.309710] kasan_save_alloc_info+0x3b/0x50 [ 25.310386] __kasan_kmalloc+0xb7/0xc0 [ 25.310870] __kmalloc_cache_noprof+0x189/0x420 [ 25.311485] kmalloc_oob_memset_8+0xac/0x330 [ 25.311992] kunit_try_run_case+0x1a5/0x480 [ 25.312161] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.312338] kthread+0x337/0x6f0 [ 25.312802] ret_from_fork+0x116/0x1d0 [ 25.313162] ret_from_fork_asm+0x1a/0x30 [ 25.313659] [ 25.313836] The buggy address belongs to the object at ffff888104657e00 [ 25.313836] which belongs to the cache kmalloc-128 of size 128 [ 25.314746] The buggy address is located 113 bytes inside of [ 25.314746] allocated 120-byte region [ffff888104657e00, ffff888104657e78) [ 25.315872] [ 25.316053] The buggy address belongs to the physical page: [ 25.316278] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104657 [ 25.316863] flags: 0x200000000000000(node=0|zone=2) [ 25.317430] page_type: f5(slab) [ 25.317795] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.318587] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.319217] page dumped because: kasan: bad access detected [ 25.319629] [ 25.319707] Memory state around the buggy address: [ 25.320272] ffff888104657d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.320676] ffff888104657d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.321057] >ffff888104657e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.321381] ^ [ 25.321596] ffff888104657e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.321808] ffff888104657f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.322341] ==================================================================