Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.489394] ================================================================== [ 29.489467] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 29.489519] Write of size 4 at addr fff00000c9af0175 by task kunit_try_catch/205 [ 29.489577] [ 29.489608] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 29.489693] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.489719] Hardware name: linux,dummy-virt (DT) [ 29.489748] Call trace: [ 29.489770] show_stack+0x20/0x38 (C) [ 29.489817] dump_stack_lvl+0x8c/0xd0 [ 29.489931] print_report+0x118/0x5d0 [ 29.489975] kasan_report+0xdc/0x128 [ 29.490016] kasan_check_range+0x100/0x1a8 [ 29.490060] __asan_memset+0x34/0x78 [ 29.490101] kmalloc_oob_memset_4+0x150/0x300 [ 29.490158] kunit_try_run_case+0x170/0x3f0 [ 29.490205] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.490257] kthread+0x328/0x630 [ 29.490297] ret_from_fork+0x10/0x20 [ 29.490342] [ 29.490360] Allocated by task 205: [ 29.490395] kasan_save_stack+0x3c/0x68 [ 29.490435] kasan_save_track+0x20/0x40 [ 29.490472] kasan_save_alloc_info+0x40/0x58 [ 29.490509] __kasan_kmalloc+0xd4/0xd8 [ 29.490556] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.490608] kmalloc_oob_memset_4+0xb0/0x300 [ 29.490662] kunit_try_run_case+0x170/0x3f0 [ 29.490843] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.490890] kthread+0x328/0x630 [ 29.490922] ret_from_fork+0x10/0x20 [ 29.490957] [ 29.491020] The buggy address belongs to the object at fff00000c9af0100 [ 29.491020] which belongs to the cache kmalloc-128 of size 128 [ 29.491079] The buggy address is located 117 bytes inside of [ 29.491079] allocated 120-byte region [fff00000c9af0100, fff00000c9af0178) [ 29.491160] [ 29.491180] The buggy address belongs to the physical page: [ 29.491210] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109af0 [ 29.491272] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.491319] page_type: f5(slab) [ 29.491355] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.491419] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.491460] page dumped because: kasan: bad access detected [ 29.491521] [ 29.491539] Memory state around the buggy address: [ 29.491569] fff00000c9af0000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.491612] fff00000c9af0080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.491711] >fff00000c9af0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.491889] ^ [ 29.491985] fff00000c9af0180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.492072] fff00000c9af0200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.492147] ==================================================================
[ 25.147362] ================================================================== [ 25.148473] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 25.149271] Write of size 4 at addr ffff888105182b75 by task kunit_try_catch/222 [ 25.149690] [ 25.149907] CPU: 1 UID: 0 PID: 222 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 25.149960] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.149973] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.149994] Call Trace: [ 25.150007] <TASK> [ 25.150065] dump_stack_lvl+0x73/0xb0 [ 25.150121] print_report+0xd1/0x610 [ 25.150145] ? __virt_addr_valid+0x1db/0x2d0 [ 25.150169] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.150190] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.150215] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.150236] kasan_report+0x141/0x180 [ 25.150258] ? kmalloc_oob_memset_4+0x166/0x330 [ 25.150283] kasan_check_range+0x10c/0x1c0 [ 25.150306] __asan_memset+0x27/0x50 [ 25.150329] kmalloc_oob_memset_4+0x166/0x330 [ 25.150351] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 25.150373] ? __schedule+0x10cc/0x2b60 [ 25.150395] ? __pfx_read_tsc+0x10/0x10 [ 25.150416] ? ktime_get_ts64+0x86/0x230 [ 25.150441] kunit_try_run_case+0x1a5/0x480 [ 25.150464] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.150484] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.150517] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.150540] ? __kthread_parkme+0x82/0x180 [ 25.150560] ? preempt_count_sub+0x50/0x80 [ 25.150584] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.150605] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.150629] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.150654] kthread+0x337/0x6f0 [ 25.150673] ? trace_preempt_on+0x20/0xc0 [ 25.150696] ? __pfx_kthread+0x10/0x10 [ 25.150731] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.150752] ? calculate_sigpending+0x7b/0xa0 [ 25.150827] ? __pfx_kthread+0x10/0x10 [ 25.150852] ret_from_fork+0x116/0x1d0 [ 25.150871] ? __pfx_kthread+0x10/0x10 [ 25.150892] ret_from_fork_asm+0x1a/0x30 [ 25.150922] </TASK> [ 25.150935] [ 25.159668] Allocated by task 222: [ 25.159811] kasan_save_stack+0x45/0x70 [ 25.160994] kasan_save_track+0x18/0x40 [ 25.161569] kasan_save_alloc_info+0x3b/0x50 [ 25.162211] __kasan_kmalloc+0xb7/0xc0 [ 25.162391] __kmalloc_cache_noprof+0x189/0x420 [ 25.162557] kmalloc_oob_memset_4+0xac/0x330 [ 25.162711] kunit_try_run_case+0x1a5/0x480 [ 25.162851] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.163107] kthread+0x337/0x6f0 [ 25.163234] ret_from_fork+0x116/0x1d0 [ 25.163361] ret_from_fork_asm+0x1a/0x30 [ 25.163495] [ 25.163562] The buggy address belongs to the object at ffff888105182b00 [ 25.163562] which belongs to the cache kmalloc-128 of size 128 [ 25.164112] The buggy address is located 117 bytes inside of [ 25.164112] allocated 120-byte region [ffff888105182b00, ffff888105182b78) [ 25.165049] [ 25.165128] The buggy address belongs to the physical page: [ 25.165301] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105182 [ 25.165547] flags: 0x200000000000000(node=0|zone=2) [ 25.165741] page_type: f5(slab) [ 25.165910] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.166298] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.166656] page dumped because: kasan: bad access detected [ 25.166975] [ 25.167044] Memory state around the buggy address: [ 25.167266] ffff888105182a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.167839] ffff888105182a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.168086] >ffff888105182b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.168374] ^ [ 25.169338] ffff888105182b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.170254] ffff888105182c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.170765] ==================================================================