Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.484684] ================================================================== [ 30.484856] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 30.488283] Write of size 2 at addr fff00000c6466977 by task kunit_try_catch/183 [ 30.488658] [ 30.488758] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 30.490047] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.490317] Hardware name: linux,dummy-virt (DT) [ 30.490711] Call trace: [ 30.491038] show_stack+0x20/0x38 (C) [ 30.491356] dump_stack_lvl+0x8c/0xd0 [ 30.491598] print_report+0x118/0x608 [ 30.491903] kasan_report+0xdc/0x128 [ 30.492362] kasan_check_range+0x100/0x1a8 [ 30.492569] __asan_memset+0x34/0x78 [ 30.492795] kmalloc_oob_memset_2+0x150/0x2f8 [ 30.493027] kunit_try_run_case+0x170/0x3f0 [ 30.493298] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.493974] kthread+0x328/0x630 [ 30.494491] ret_from_fork+0x10/0x20 [ 30.494960] [ 30.495018] Allocated by task 183: [ 30.495248] kasan_save_stack+0x3c/0x68 [ 30.495576] kasan_save_track+0x20/0x40 [ 30.495678] kasan_save_alloc_info+0x40/0x58 [ 30.495779] __kasan_kmalloc+0xd4/0xd8 [ 30.495870] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.495987] kmalloc_oob_memset_2+0xb0/0x2f8 [ 30.496077] kunit_try_run_case+0x170/0x3f0 [ 30.496173] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.497566] kthread+0x328/0x630 [ 30.497998] ret_from_fork+0x10/0x20 [ 30.498286] [ 30.498456] The buggy address belongs to the object at fff00000c6466900 [ 30.498456] which belongs to the cache kmalloc-128 of size 128 [ 30.498955] The buggy address is located 119 bytes inside of [ 30.498955] allocated 120-byte region [fff00000c6466900, fff00000c6466978) [ 30.499376] [ 30.499546] The buggy address belongs to the physical page: [ 30.499756] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106466 [ 30.499919] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.500044] page_type: f5(slab) [ 30.500144] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 30.500263] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.500367] page dumped because: kasan: bad access detected [ 30.500445] [ 30.500489] Memory state around the buggy address: [ 30.500938] fff00000c6466800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.501675] fff00000c6466880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.502509] >fff00000c6466900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.503140] ^ [ 30.503569] fff00000c6466980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.503902] fff00000c6466a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.504172] ==================================================================
[ 26.956756] ================================================================== [ 26.957258] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 26.957451] Write of size 2 at addr ffff88810324df77 by task kunit_try_catch/201 [ 26.957593] [ 26.957671] CPU: 0 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 26.957732] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.957746] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.957772] Call Trace: [ 26.957789] <TASK> [ 26.957813] dump_stack_lvl+0x73/0xb0 [ 26.957849] print_report+0xd1/0x650 [ 26.957873] ? __virt_addr_valid+0x1db/0x2d0 [ 26.957900] ? kmalloc_oob_memset_2+0x166/0x330 [ 26.957950] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.958723] ? kmalloc_oob_memset_2+0x166/0x330 [ 26.959150] kasan_report+0x141/0x180 [ 26.959224] ? kmalloc_oob_memset_2+0x166/0x330 [ 26.959304] kasan_check_range+0x10c/0x1c0 [ 26.959350] __asan_memset+0x27/0x50 [ 26.959390] kmalloc_oob_memset_2+0x166/0x330 [ 26.959438] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 26.959488] ? __schedule+0x10cc/0x2b60 [ 26.959542] ? __pfx_read_tsc+0x10/0x10 [ 26.959587] ? ktime_get_ts64+0x86/0x230 [ 26.959631] kunit_try_run_case+0x1a5/0x480 [ 26.959675] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.959705] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.959731] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.959756] ? __kthread_parkme+0x82/0x180 [ 26.959779] ? preempt_count_sub+0x50/0x80 [ 26.959806] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.959831] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.959857] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.959881] kthread+0x337/0x6f0 [ 26.959906] ? trace_preempt_on+0x20/0xc0 [ 26.959954] ? __pfx_kthread+0x10/0x10 [ 26.959986] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.960022] ? calculate_sigpending+0x7b/0xa0 [ 26.960064] ? __pfx_kthread+0x10/0x10 [ 26.960116] ret_from_fork+0x116/0x1d0 [ 26.960145] ? __pfx_kthread+0x10/0x10 [ 26.960168] ret_from_fork_asm+0x1a/0x30 [ 26.960203] </TASK> [ 26.960217] [ 26.973403] Allocated by task 201: [ 26.973766] kasan_save_stack+0x45/0x70 [ 26.974421] kasan_save_track+0x18/0x40 [ 26.974704] kasan_save_alloc_info+0x3b/0x50 [ 26.975779] __kasan_kmalloc+0xb7/0xc0 [ 26.976000] __kmalloc_cache_noprof+0x189/0x420 [ 26.976222] kmalloc_oob_memset_2+0xac/0x330 [ 26.976558] kunit_try_run_case+0x1a5/0x480 [ 26.976896] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.978050] kthread+0x337/0x6f0 [ 26.978240] ret_from_fork+0x116/0x1d0 [ 26.978626] ret_from_fork_asm+0x1a/0x30 [ 26.979152] [ 26.979274] The buggy address belongs to the object at ffff88810324df00 [ 26.979274] which belongs to the cache kmalloc-128 of size 128 [ 26.980509] The buggy address is located 119 bytes inside of [ 26.980509] allocated 120-byte region [ffff88810324df00, ffff88810324df78) [ 26.981640] [ 26.981838] The buggy address belongs to the physical page: [ 26.982208] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10324d [ 26.982640] flags: 0x200000000000000(node=0|zone=2) [ 26.983503] page_type: f5(slab) [ 26.983698] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 26.985091] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.985433] page dumped because: kasan: bad access detected [ 26.985847] [ 26.986513] Memory state around the buggy address: [ 26.986765] ffff88810324de00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.988125] ffff88810324de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.992507] >ffff88810324df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.992791] ^ [ 26.993221] ffff88810324df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.993801] ffff88810324e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.994454] ==================================================================