Date
July 5, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.102791] ================================================================== [ 18.102859] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 18.102909] Write of size 16 at addr fff00000c3ec0569 by task kunit_try_catch/178 [ 18.102963] [ 18.103001] CPU: 0 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.103078] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.103104] Hardware name: linux,dummy-virt (DT) [ 18.103182] Call trace: [ 18.103348] show_stack+0x20/0x38 (C) [ 18.103449] dump_stack_lvl+0x8c/0xd0 [ 18.103496] print_report+0x118/0x608 [ 18.103541] kasan_report+0xdc/0x128 [ 18.103626] kasan_check_range+0x100/0x1a8 [ 18.103734] __asan_memset+0x34/0x78 [ 18.103777] kmalloc_oob_memset_16+0x150/0x2f8 [ 18.103899] kunit_try_run_case+0x170/0x3f0 [ 18.104007] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.104068] kthread+0x328/0x630 [ 18.104109] ret_from_fork+0x10/0x20 [ 18.104487] [ 18.104509] Allocated by task 178: [ 18.104537] kasan_save_stack+0x3c/0x68 [ 18.104579] kasan_save_track+0x20/0x40 [ 18.104616] kasan_save_alloc_info+0x40/0x58 [ 18.104655] __kasan_kmalloc+0xd4/0xd8 [ 18.104690] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.104727] kmalloc_oob_memset_16+0xb0/0x2f8 [ 18.104763] kunit_try_run_case+0x170/0x3f0 [ 18.104799] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.104839] kthread+0x328/0x630 [ 18.104871] ret_from_fork+0x10/0x20 [ 18.104905] [ 18.104924] The buggy address belongs to the object at fff00000c3ec0500 [ 18.104924] which belongs to the cache kmalloc-128 of size 128 [ 18.104977] The buggy address is located 105 bytes inside of [ 18.104977] allocated 120-byte region [fff00000c3ec0500, fff00000c3ec0578) [ 18.105035] [ 18.105054] The buggy address belongs to the physical page: [ 18.105082] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ec0 [ 18.105132] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.105220] page_type: f5(slab) [ 18.105355] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.105471] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.105510] page dumped because: kasan: bad access detected [ 18.105572] [ 18.105822] Memory state around the buggy address: [ 18.105994] fff00000c3ec0400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.106119] fff00000c3ec0480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.106172] >fff00000c3ec0500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.106208] ^ [ 18.106350] fff00000c3ec0580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.106529] fff00000c3ec0600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.106570] ==================================================================
[ 13.743620] ================================================================== [ 13.744382] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 13.744665] Write of size 16 at addr ffff8881021dba69 by task kunit_try_catch/196 [ 13.744945] [ 13.745053] CPU: 0 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.745117] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.745131] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.745156] Call Trace: [ 13.745171] <TASK> [ 13.745192] dump_stack_lvl+0x73/0xb0 [ 13.745228] print_report+0xd1/0x650 [ 13.745255] ? __virt_addr_valid+0x1db/0x2d0 [ 13.745281] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.745305] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.745330] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.745362] kasan_report+0x141/0x180 [ 13.745386] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.745416] kasan_check_range+0x10c/0x1c0 [ 13.745441] __asan_memset+0x27/0x50 [ 13.745463] kmalloc_oob_memset_16+0x166/0x330 [ 13.745487] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 13.745513] ? __schedule+0x10cc/0x2b60 [ 13.745538] ? __pfx_read_tsc+0x10/0x10 [ 13.745561] ? ktime_get_ts64+0x86/0x230 [ 13.745588] kunit_try_run_case+0x1a5/0x480 [ 13.745616] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.745640] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.745666] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.745691] ? __kthread_parkme+0x82/0x180 [ 13.745714] ? preempt_count_sub+0x50/0x80 [ 13.745743] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.745769] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.745806] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.745831] kthread+0x337/0x6f0 [ 13.745852] ? trace_preempt_on+0x20/0xc0 [ 13.745878] ? __pfx_kthread+0x10/0x10 [ 13.745901] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.745925] ? calculate_sigpending+0x7b/0xa0 [ 13.745953] ? __pfx_kthread+0x10/0x10 [ 13.745976] ret_from_fork+0x116/0x1d0 [ 13.745997] ? __pfx_kthread+0x10/0x10 [ 13.746019] ret_from_fork_asm+0x1a/0x30 [ 13.746054] </TASK> [ 13.746067] [ 13.758747] Allocated by task 196: [ 13.758932] kasan_save_stack+0x45/0x70 [ 13.759165] kasan_save_track+0x18/0x40 [ 13.759551] kasan_save_alloc_info+0x3b/0x50 [ 13.759747] __kasan_kmalloc+0xb7/0xc0 [ 13.759974] __kmalloc_cache_noprof+0x189/0x420 [ 13.760279] kmalloc_oob_memset_16+0xac/0x330 [ 13.760571] kunit_try_run_case+0x1a5/0x480 [ 13.760828] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.761076] kthread+0x337/0x6f0 [ 13.761344] ret_from_fork+0x116/0x1d0 [ 13.761508] ret_from_fork_asm+0x1a/0x30 [ 13.761743] [ 13.761875] The buggy address belongs to the object at ffff8881021dba00 [ 13.761875] which belongs to the cache kmalloc-128 of size 128 [ 13.762426] The buggy address is located 105 bytes inside of [ 13.762426] allocated 120-byte region [ffff8881021dba00, ffff8881021dba78) [ 13.763055] [ 13.763179] The buggy address belongs to the physical page: [ 13.763447] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1021db [ 13.763731] flags: 0x200000000000000(node=0|zone=2) [ 13.763947] page_type: f5(slab) [ 13.764229] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.764640] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.765038] page dumped because: kasan: bad access detected [ 13.765730] [ 13.765839] Memory state around the buggy address: [ 13.766094] ffff8881021db900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.766458] ffff8881021db980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.766854] >ffff8881021dba00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.767555] ^ [ 13.768424] ffff8881021dba80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.768929] ffff8881021dbb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.770133] ==================================================================