Date
July 23, 2025, 2:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.420578] ================================================================== [ 15.420869] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 15.421006] Write of size 2 at addr fff00000c3f39577 by task kunit_try_catch/172 [ 15.421066] [ 15.421124] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 15.421216] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.421364] Hardware name: linux,dummy-virt (DT) [ 15.421407] Call trace: [ 15.421554] show_stack+0x20/0x38 (C) [ 15.421675] dump_stack_lvl+0x8c/0xd0 [ 15.422021] print_report+0x118/0x5d0 [ 15.422109] kasan_report+0xdc/0x128 [ 15.422166] kasan_check_range+0x100/0x1a8 [ 15.422215] __asan_memset+0x34/0x78 [ 15.422492] kmalloc_oob_memset_2+0x150/0x2f8 [ 15.422692] kunit_try_run_case+0x170/0x3f0 [ 15.422806] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.423007] kthread+0x328/0x630 [ 15.423268] ret_from_fork+0x10/0x20 [ 15.423400] [ 15.423448] Allocated by task 172: [ 15.423478] kasan_save_stack+0x3c/0x68 [ 15.423735] kasan_save_track+0x20/0x40 [ 15.423916] kasan_save_alloc_info+0x40/0x58 [ 15.424002] __kasan_kmalloc+0xd4/0xd8 [ 15.424296] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.424412] kmalloc_oob_memset_2+0xb0/0x2f8 [ 15.424655] kunit_try_run_case+0x170/0x3f0 [ 15.424841] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.424901] kthread+0x328/0x630 [ 15.425082] ret_from_fork+0x10/0x20 [ 15.425306] [ 15.425357] The buggy address belongs to the object at fff00000c3f39500 [ 15.425357] which belongs to the cache kmalloc-128 of size 128 [ 15.425481] The buggy address is located 119 bytes inside of [ 15.425481] allocated 120-byte region [fff00000c3f39500, fff00000c3f39578) [ 15.425559] [ 15.425589] The buggy address belongs to the physical page: [ 15.425620] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f39 [ 15.425674] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.425736] page_type: f5(slab) [ 15.425792] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.425872] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.425914] page dumped because: kasan: bad access detected [ 15.425945] [ 15.425963] Memory state around the buggy address: [ 15.426003] fff00000c3f39400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.426052] fff00000c3f39480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.426105] >fff00000c3f39500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.426142] ^ [ 15.426182] fff00000c3f39580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.426224] fff00000c3f39600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.426263] ==================================================================
[ 12.692579] ================================================================== [ 12.693080] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 12.693539] Write of size 2 at addr ffff8881025cc077 by task kunit_try_catch/189 [ 12.693849] [ 12.693958] CPU: 1 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 12.694003] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.694014] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.694034] Call Trace: [ 12.694046] <TASK> [ 12.694060] dump_stack_lvl+0x73/0xb0 [ 12.694110] print_report+0xd1/0x610 [ 12.694131] ? __virt_addr_valid+0x1db/0x2d0 [ 12.694152] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.694172] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.694193] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.694215] kasan_report+0x141/0x180 [ 12.694236] ? kmalloc_oob_memset_2+0x166/0x330 [ 12.694261] kasan_check_range+0x10c/0x1c0 [ 12.694284] __asan_memset+0x27/0x50 [ 12.694303] kmalloc_oob_memset_2+0x166/0x330 [ 12.694324] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.694346] ? __schedule+0x10c6/0x2b60 [ 12.694368] ? __pfx_read_tsc+0x10/0x10 [ 12.694388] ? ktime_get_ts64+0x86/0x230 [ 12.694411] kunit_try_run_case+0x1a5/0x480 [ 12.694435] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.694457] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.694480] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.694502] ? __kthread_parkme+0x82/0x180 [ 12.694522] ? preempt_count_sub+0x50/0x80 [ 12.694544] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.694567] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.694589] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.694611] kthread+0x337/0x6f0 [ 12.694630] ? trace_preempt_on+0x20/0xc0 [ 12.694652] ? __pfx_kthread+0x10/0x10 [ 12.694672] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.694692] ? calculate_sigpending+0x7b/0xa0 [ 12.694715] ? __pfx_kthread+0x10/0x10 [ 12.694735] ret_from_fork+0x116/0x1d0 [ 12.694753] ? __pfx_kthread+0x10/0x10 [ 12.694773] ret_from_fork_asm+0x1a/0x30 [ 12.694802] </TASK> [ 12.694821] [ 12.701915] Allocated by task 189: [ 12.702046] kasan_save_stack+0x45/0x70 [ 12.702188] kasan_save_track+0x18/0x40 [ 12.702326] kasan_save_alloc_info+0x3b/0x50 [ 12.702507] __kasan_kmalloc+0xb7/0xc0 [ 12.702694] __kmalloc_cache_noprof+0x189/0x420 [ 12.703128] kmalloc_oob_memset_2+0xac/0x330 [ 12.703529] kunit_try_run_case+0x1a5/0x480 [ 12.703736] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.703965] kthread+0x337/0x6f0 [ 12.704086] ret_from_fork+0x116/0x1d0 [ 12.704361] ret_from_fork_asm+0x1a/0x30 [ 12.704560] [ 12.704657] The buggy address belongs to the object at ffff8881025cc000 [ 12.704657] which belongs to the cache kmalloc-128 of size 128 [ 12.705109] The buggy address is located 119 bytes inside of [ 12.705109] allocated 120-byte region [ffff8881025cc000, ffff8881025cc078) [ 12.705634] [ 12.705736] The buggy address belongs to the physical page: [ 12.705974] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025cc [ 12.706367] flags: 0x200000000000000(node=0|zone=2) [ 12.706584] page_type: f5(slab) [ 12.706703] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.707059] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.707585] page dumped because: kasan: bad access detected [ 12.707828] [ 12.707898] Memory state around the buggy address: [ 12.708143] ffff8881025cbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.708542] ffff8881025cbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.708787] >ffff8881025cc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.709123] ^ [ 12.709374] ffff8881025cc080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.709583] ffff8881025cc100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.709789] ==================================================================