Date
July 16, 2025, 12:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.641874] ================================================================== [ 30.641939] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 30.642202] Write of size 4 at addr fff00000c6361b75 by task kunit_try_catch/205 [ 30.642441] [ 30.642523] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT [ 30.642967] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.643364] Hardware name: linux,dummy-virt (DT) [ 30.643411] Call trace: [ 30.643637] show_stack+0x20/0x38 (C) [ 30.644016] dump_stack_lvl+0x8c/0xd0 [ 30.644567] print_report+0x118/0x5d0 [ 30.644893] kasan_report+0xdc/0x128 [ 30.644969] kasan_check_range+0x100/0x1a8 [ 30.645146] __asan_memset+0x34/0x78 [ 30.645485] kmalloc_oob_memset_4+0x150/0x300 [ 30.645611] kunit_try_run_case+0x170/0x3f0 [ 30.645830] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.646064] kthread+0x328/0x630 [ 30.646111] ret_from_fork+0x10/0x20 [ 30.646159] [ 30.646220] Allocated by task 205: [ 30.646270] kasan_save_stack+0x3c/0x68 [ 30.646310] kasan_save_track+0x20/0x40 [ 30.646345] kasan_save_alloc_info+0x40/0x58 [ 30.646397] __kasan_kmalloc+0xd4/0xd8 [ 30.646446] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.646485] kmalloc_oob_memset_4+0xb0/0x300 [ 30.646982] kunit_try_run_case+0x170/0x3f0 [ 30.647330] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.647560] kthread+0x328/0x630 [ 30.647834] ret_from_fork+0x10/0x20 [ 30.648033] [ 30.648100] The buggy address belongs to the object at fff00000c6361b00 [ 30.648100] which belongs to the cache kmalloc-128 of size 128 [ 30.648228] The buggy address is located 117 bytes inside of [ 30.648228] allocated 120-byte region [fff00000c6361b00, fff00000c6361b78) [ 30.648319] [ 30.648707] The buggy address belongs to the physical page: [ 30.648761] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106361 [ 30.648864] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.649085] page_type: f5(slab) [ 30.649359] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 30.649763] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.650029] page dumped because: kasan: bad access detected [ 30.650202] [ 30.650351] Memory state around the buggy address: [ 30.650546] fff00000c6361a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.650925] fff00000c6361a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.651045] >fff00000c6361b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.651083] ^ [ 30.651400] fff00000c6361b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.651585] fff00000c6361c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.651739] ==================================================================
[ 23.372838] ================================================================== [ 23.373220] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 23.373961] Write of size 4 at addr ffff888104a24875 by task kunit_try_catch/223 [ 23.374188] [ 23.374284] CPU: 1 UID: 0 PID: 223 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) [ 23.374335] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.374347] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.374368] Call Trace: [ 23.374381] <TASK> [ 23.374398] dump_stack_lvl+0x73/0xb0 [ 23.374510] print_report+0xd1/0x610 [ 23.374560] ? __virt_addr_valid+0x1db/0x2d0 [ 23.374607] ? kmalloc_oob_memset_4+0x166/0x330 [ 23.374628] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.374653] ? kmalloc_oob_memset_4+0x166/0x330 [ 23.374686] kasan_report+0x141/0x180 [ 23.374707] ? kmalloc_oob_memset_4+0x166/0x330 [ 23.374732] kasan_check_range+0x10c/0x1c0 [ 23.374754] __asan_memset+0x27/0x50 [ 23.374777] kmalloc_oob_memset_4+0x166/0x330 [ 23.374798] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 23.374820] ? __schedule+0x10c6/0x2b60 [ 23.374843] ? __pfx_read_tsc+0x10/0x10 [ 23.374865] ? ktime_get_ts64+0x86/0x230 [ 23.374907] kunit_try_run_case+0x1a5/0x480 [ 23.374932] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.375008] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.375033] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.375056] ? __kthread_parkme+0x82/0x180 [ 23.375077] ? preempt_count_sub+0x50/0x80 [ 23.375100] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.375123] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.375149] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.375174] kthread+0x337/0x6f0 [ 23.375193] ? trace_preempt_on+0x20/0xc0 [ 23.375219] ? __pfx_kthread+0x10/0x10 [ 23.375239] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.375260] ? calculate_sigpending+0x7b/0xa0 [ 23.375299] ? __pfx_kthread+0x10/0x10 [ 23.375320] ret_from_fork+0x116/0x1d0 [ 23.375340] ? __pfx_kthread+0x10/0x10 [ 23.375359] ret_from_fork_asm+0x1a/0x30 [ 23.375390] </TASK> [ 23.375402] [ 23.386111] Allocated by task 223: [ 23.386312] kasan_save_stack+0x45/0x70 [ 23.386566] kasan_save_track+0x18/0x40 [ 23.386722] kasan_save_alloc_info+0x3b/0x50 [ 23.387019] __kasan_kmalloc+0xb7/0xc0 [ 23.387204] __kmalloc_cache_noprof+0x189/0x420 [ 23.387430] kmalloc_oob_memset_4+0xac/0x330 [ 23.387626] kunit_try_run_case+0x1a5/0x480 [ 23.387767] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.388097] kthread+0x337/0x6f0 [ 23.388279] ret_from_fork+0x116/0x1d0 [ 23.388467] ret_from_fork_asm+0x1a/0x30 [ 23.388651] [ 23.388718] The buggy address belongs to the object at ffff888104a24800 [ 23.388718] which belongs to the cache kmalloc-128 of size 128 [ 23.389349] The buggy address is located 117 bytes inside of [ 23.389349] allocated 120-byte region [ffff888104a24800, ffff888104a24878) [ 23.390022] [ 23.390130] The buggy address belongs to the physical page: [ 23.390377] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104a24 [ 23.390691] flags: 0x200000000000000(node=0|zone=2) [ 23.390872] page_type: f5(slab) [ 23.391066] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.391479] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.391911] page dumped because: kasan: bad access detected [ 23.392132] [ 23.392209] Memory state around the buggy address: [ 23.392461] ffff888104a24700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.392738] ffff888104a24780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.393057] >ffff888104a24800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.393376] ^ [ 23.393726] ffff888104a24880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.394130] ffff888104a24900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.394405] ==================================================================