Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.682873] ================================================================== [ 19.683122] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 19.683196] Write of size 2 at addr fff00000c638de77 by task kunit_try_catch/173 [ 19.683255] [ 19.683293] CPU: 1 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.683384] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.683426] Hardware name: linux,dummy-virt (DT) [ 19.683472] Call trace: [ 19.683502] show_stack+0x20/0x38 (C) [ 19.683570] dump_stack_lvl+0x8c/0xd0 [ 19.683618] print_report+0x118/0x608 [ 19.683664] kasan_report+0xdc/0x128 [ 19.683708] kasan_check_range+0x100/0x1a8 [ 19.683756] __asan_memset+0x34/0x78 [ 19.683798] kmalloc_oob_memset_2+0x150/0x2f8 [ 19.683843] kunit_try_run_case+0x170/0x3f0 [ 19.684069] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.684202] kthread+0x328/0x630 [ 19.684261] ret_from_fork+0x10/0x20 [ 19.684349] [ 19.684440] Allocated by task 173: [ 19.684497] kasan_save_stack+0x3c/0x68 [ 19.684573] kasan_save_track+0x20/0x40 [ 19.684655] kasan_save_alloc_info+0x40/0x58 [ 19.684716] __kasan_kmalloc+0xd4/0xd8 [ 19.684753] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.684794] kmalloc_oob_memset_2+0xb0/0x2f8 [ 19.684971] kunit_try_run_case+0x170/0x3f0 [ 19.685014] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.685057] kthread+0x328/0x630 [ 19.685096] ret_from_fork+0x10/0x20 [ 19.685132] [ 19.685152] The buggy address belongs to the object at fff00000c638de00 [ 19.685152] which belongs to the cache kmalloc-128 of size 128 [ 19.685211] The buggy address is located 119 bytes inside of [ 19.685211] allocated 120-byte region [fff00000c638de00, fff00000c638de78) [ 19.685310] [ 19.685347] The buggy address belongs to the physical page: [ 19.685385] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638d [ 19.685471] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.685549] page_type: f5(slab) [ 19.685605] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.685701] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.685780] page dumped because: kasan: bad access detected [ 19.685833] [ 19.685870] Memory state around the buggy address: [ 19.685900] fff00000c638dd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.686076] fff00000c638dd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.686946] >fff00000c638de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.686992] ^ [ 19.687034] fff00000c638de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.687300] fff00000c638df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.687357] ==================================================================
[ 12.679662] ================================================================== [ 12.680150] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 12.680718] Write of size 2 at addr ffff88810269ae77 by task kunit_try_catch/189 [ 12.681266] [ 12.681423] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.681470] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.681481] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.681502] Call Trace: [ 12.681513] <TASK> [ 12.681531] dump_stack_lvl+0x73/0xb0 [ 12.681564] print_report+0xd1/0x650 [ 12.681586] ? __virt_addr_valid+0x1db/0x2d0 [ 12.681610] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.681632] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.681655] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.681677] kasan_report+0x141/0x180 [ 12.681698] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.681724] kasan_check_range+0x10c/0x1c0 [ 12.681748] __asan_memset+0x27/0x50 [ 12.681766] kmalloc_oob_memset_2+0x166/0x330 [ 12.681789] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.681812] ? __schedule+0x10cc/0x2b60 [ 12.681834] ? __pfx_read_tsc+0x10/0x10 [ 12.681855] ? ktime_get_ts64+0x86/0x230 [ 12.681879] kunit_try_run_case+0x1a5/0x480 [ 12.681904] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.681940] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.681964] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.681987] ? __kthread_parkme+0x82/0x180 [ 12.682008] ? preempt_count_sub+0x50/0x80 [ 12.682032] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.682055] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.682080] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.682116] kthread+0x337/0x6f0 [ 12.682134] ? trace_preempt_on+0x20/0xc0 [ 12.682158] ? __pfx_kthread+0x10/0x10 [ 12.682179] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.682202] ? calculate_sigpending+0x7b/0xa0 [ 12.682228] ? __pfx_kthread+0x10/0x10 [ 12.682251] ret_from_fork+0x116/0x1d0 [ 12.682333] ? __pfx_kthread+0x10/0x10 [ 12.682355] ret_from_fork_asm+0x1a/0x30 [ 12.682387] </TASK> [ 12.682397] [ 12.692568] Allocated by task 189: [ 12.692758] kasan_save_stack+0x45/0x70 [ 12.692940] kasan_save_track+0x18/0x40 [ 12.693394] kasan_save_alloc_info+0x3b/0x50 [ 12.693710] __kasan_kmalloc+0xb7/0xc0 [ 12.693889] __kmalloc_cache_noprof+0x189/0x420 [ 12.694413] kmalloc_oob_memset_2+0xac/0x330 [ 12.694592] kunit_try_run_case+0x1a5/0x480 [ 12.694816] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.695295] kthread+0x337/0x6f0 [ 12.695471] ret_from_fork+0x116/0x1d0 [ 12.695633] ret_from_fork_asm+0x1a/0x30 [ 12.695822] [ 12.695935] The buggy address belongs to the object at ffff88810269ae00 [ 12.695935] which belongs to the cache kmalloc-128 of size 128 [ 12.696908] The buggy address is located 119 bytes inside of [ 12.696908] allocated 120-byte region [ffff88810269ae00, ffff88810269ae78) [ 12.697638] [ 12.697748] The buggy address belongs to the physical page: [ 12.698222] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10269a [ 12.698643] flags: 0x200000000000000(node=0|zone=2) [ 12.698863] page_type: f5(slab) [ 12.699054] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.699357] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.699664] page dumped because: kasan: bad access detected [ 12.699896] [ 12.700622] Memory state around the buggy address: [ 12.700849] ffff88810269ad00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.701440] ffff88810269ad80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.701834] >ffff88810269ae00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.702333] ^ [ 12.702606] ffff88810269ae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.703188] ffff88810269af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.703660] ==================================================================