Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.572276] ================================================================== [ 30.572860] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 30.573265] Write of size 8 at addr fff00000c6466b71 by task kunit_try_catch/187 [ 30.573444] [ 30.573548] CPU: 1 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 30.573813] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.573904] Hardware name: linux,dummy-virt (DT) [ 30.573985] Call trace: [ 30.574066] show_stack+0x20/0x38 (C) [ 30.574194] dump_stack_lvl+0x8c/0xd0 [ 30.574352] print_report+0x118/0x608 [ 30.574479] kasan_report+0xdc/0x128 [ 30.574590] kasan_check_range+0x100/0x1a8 [ 30.574695] __asan_memset+0x34/0x78 [ 30.574796] kmalloc_oob_memset_8+0x150/0x2f8 [ 30.574940] kunit_try_run_case+0x170/0x3f0 [ 30.575254] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.575373] kthread+0x328/0x630 [ 30.575471] ret_from_fork+0x10/0x20 [ 30.575630] [ 30.575692] Allocated by task 187: [ 30.575777] kasan_save_stack+0x3c/0x68 [ 30.575869] kasan_save_track+0x20/0x40 [ 30.575967] kasan_save_alloc_info+0x40/0x58 [ 30.576112] __kasan_kmalloc+0xd4/0xd8 [ 30.576208] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.576341] kmalloc_oob_memset_8+0xb0/0x2f8 [ 30.576433] kunit_try_run_case+0x170/0x3f0 [ 30.576524] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.576628] kthread+0x328/0x630 [ 30.576735] ret_from_fork+0x10/0x20 [ 30.576824] [ 30.576908] The buggy address belongs to the object at fff00000c6466b00 [ 30.576908] which belongs to the cache kmalloc-128 of size 128 [ 30.577047] The buggy address is located 113 bytes inside of [ 30.577047] allocated 120-byte region [fff00000c6466b00, fff00000c6466b78) [ 30.577261] [ 30.577334] The buggy address belongs to the physical page: [ 30.577468] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106466 [ 30.577588] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.578064] page_type: f5(slab) [ 30.578373] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 30.578516] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.578619] page dumped because: kasan: bad access detected [ 30.578696] [ 30.578740] Memory state around the buggy address: [ 30.578814] fff00000c6466a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.578913] fff00000c6466a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.579556] >fff00000c6466b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.579630] ^ [ 30.579716] fff00000c6466b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.579842] fff00000c6466c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.579962] ==================================================================
[ 27.036703] ================================================================== [ 27.037747] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 27.038316] Write of size 8 at addr ffff888102b36f71 by task kunit_try_catch/205 [ 27.038917] [ 27.039097] CPU: 1 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 27.039242] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.039271] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.039317] Call Trace: [ 27.039350] <TASK> [ 27.039520] dump_stack_lvl+0x73/0xb0 [ 27.039601] print_report+0xd1/0x650 [ 27.039653] ? __virt_addr_valid+0x1db/0x2d0 [ 27.039708] ? kmalloc_oob_memset_8+0x166/0x330 [ 27.039753] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.039804] ? kmalloc_oob_memset_8+0x166/0x330 [ 27.039871] kasan_report+0x141/0x180 [ 27.039917] ? kmalloc_oob_memset_8+0x166/0x330 [ 27.040069] kasan_check_range+0x10c/0x1c0 [ 27.040126] __asan_memset+0x27/0x50 [ 27.040155] kmalloc_oob_memset_8+0x166/0x330 [ 27.040178] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 27.040202] ? __schedule+0x10cc/0x2b60 [ 27.040228] ? __pfx_read_tsc+0x10/0x10 [ 27.040251] ? ktime_get_ts64+0x86/0x230 [ 27.040279] kunit_try_run_case+0x1a5/0x480 [ 27.040306] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.040329] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.040352] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.040376] ? __kthread_parkme+0x82/0x180 [ 27.040399] ? preempt_count_sub+0x50/0x80 [ 27.040425] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.040449] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.040473] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.040497] kthread+0x337/0x6f0 [ 27.040517] ? trace_preempt_on+0x20/0xc0 [ 27.040543] ? __pfx_kthread+0x10/0x10 [ 27.040564] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.040586] ? calculate_sigpending+0x7b/0xa0 [ 27.040611] ? __pfx_kthread+0x10/0x10 [ 27.040633] ret_from_fork+0x116/0x1d0 [ 27.040654] ? __pfx_kthread+0x10/0x10 [ 27.040675] ret_from_fork_asm+0x1a/0x30 [ 27.040707] </TASK> [ 27.040720] [ 27.052865] Allocated by task 205: [ 27.054157] kasan_save_stack+0x45/0x70 [ 27.054562] kasan_save_track+0x18/0x40 [ 27.055402] kasan_save_alloc_info+0x3b/0x50 [ 27.055714] __kasan_kmalloc+0xb7/0xc0 [ 27.056214] __kmalloc_cache_noprof+0x189/0x420 [ 27.056721] kmalloc_oob_memset_8+0xac/0x330 [ 27.057357] kunit_try_run_case+0x1a5/0x480 [ 27.057683] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.058703] kthread+0x337/0x6f0 [ 27.058970] ret_from_fork+0x116/0x1d0 [ 27.059481] ret_from_fork_asm+0x1a/0x30 [ 27.060197] [ 27.060328] The buggy address belongs to the object at ffff888102b36f00 [ 27.060328] which belongs to the cache kmalloc-128 of size 128 [ 27.061481] The buggy address is located 113 bytes inside of [ 27.061481] allocated 120-byte region [ffff888102b36f00, ffff888102b36f78) [ 27.062211] [ 27.062409] The buggy address belongs to the physical page: [ 27.062892] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b36 [ 27.063576] flags: 0x200000000000000(node=0|zone=2) [ 27.064143] page_type: f5(slab) [ 27.064838] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 27.065259] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 27.066085] page dumped because: kasan: bad access detected [ 27.066330] [ 27.066852] Memory state around the buggy address: [ 27.067067] ffff888102b36e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.067788] ffff888102b36e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.068724] >ffff888102b36f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 27.069620] ^ [ 27.070727] ffff888102b36f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.071269] ffff888102b37000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.071741] ==================================================================