Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.611786] ================================================================== [ 29.611850] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 29.612137] Write of size 16 at addr fff00000c9b1e269 by task kunit_try_catch/209 [ 29.612403] [ 29.612478] CPU: 1 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 29.612681] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.612882] Hardware name: linux,dummy-virt (DT) [ 29.613293] Call trace: [ 29.613357] show_stack+0x20/0x38 (C) [ 29.613516] dump_stack_lvl+0x8c/0xd0 [ 29.613608] print_report+0x118/0x5d0 [ 29.613764] kasan_report+0xdc/0x128 [ 29.613835] kasan_check_range+0x100/0x1a8 [ 29.614089] __asan_memset+0x34/0x78 [ 29.614155] kmalloc_oob_memset_16+0x150/0x2f8 [ 29.614399] kunit_try_run_case+0x170/0x3f0 [ 29.614501] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.614663] kthread+0x328/0x630 [ 29.614746] ret_from_fork+0x10/0x20 [ 29.615775] [ 29.615827] Allocated by task 209: [ 29.615892] kasan_save_stack+0x3c/0x68 [ 29.615974] kasan_save_track+0x20/0x40 [ 29.616103] kasan_save_alloc_info+0x40/0x58 [ 29.616204] __kasan_kmalloc+0xd4/0xd8 [ 29.616287] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.616502] kmalloc_oob_memset_16+0xb0/0x2f8 [ 29.616667] kunit_try_run_case+0x170/0x3f0 [ 29.616823] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.616907] kthread+0x328/0x630 [ 29.617216] ret_from_fork+0x10/0x20 [ 29.617264] [ 29.617970] The buggy address belongs to the object at fff00000c9b1e200 [ 29.617970] which belongs to the cache kmalloc-128 of size 128 [ 29.618353] The buggy address is located 105 bytes inside of [ 29.618353] allocated 120-byte region [fff00000c9b1e200, fff00000c9b1e278) [ 29.618581] [ 29.618602] The buggy address belongs to the physical page: [ 29.618896] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b1e [ 29.619002] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.619174] page_type: f5(slab) [ 29.619276] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.619379] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.619476] page dumped because: kasan: bad access detected [ 29.619544] [ 29.619652] Memory state around the buggy address: [ 29.619722] fff00000c9b1e100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.619851] fff00000c9b1e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.619925] >fff00000c9b1e200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.619972] ^ [ 29.620383] fff00000c9b1e280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.620494] fff00000c9b1e300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.620580] ==================================================================
[ 25.825789] ================================================================== [ 25.826246] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 25.826481] Write of size 16 at addr ffff888105f2fc69 by task kunit_try_catch/227 [ 25.826698] [ 25.826777] CPU: 1 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 25.826824] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.826836] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.826856] Call Trace: [ 25.826867] <TASK> [ 25.826883] dump_stack_lvl+0x73/0xb0 [ 25.826911] print_report+0xd1/0x610 [ 25.826931] ? __virt_addr_valid+0x1db/0x2d0 [ 25.826954] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.826974] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.826998] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.827018] kasan_report+0x141/0x180 [ 25.827039] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.827064] kasan_check_range+0x10c/0x1c0 [ 25.827096] __asan_memset+0x27/0x50 [ 25.827118] kmalloc_oob_memset_16+0x166/0x330 [ 25.827139] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 25.827160] ? __schedule+0x10c6/0x2b60 [ 25.827182] ? __pfx_read_tsc+0x10/0x10 [ 25.827202] ? ktime_get_ts64+0x86/0x230 [ 25.827226] kunit_try_run_case+0x1a5/0x480 [ 25.827249] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.827269] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.827290] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.827312] ? __kthread_parkme+0x82/0x180 [ 25.827335] ? preempt_count_sub+0x50/0x80 [ 25.827357] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.827379] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.827400] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.827421] kthread+0x337/0x6f0 [ 25.827439] ? trace_preempt_on+0x20/0xc0 [ 25.827460] ? __pfx_kthread+0x10/0x10 [ 25.827479] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.827500] ? calculate_sigpending+0x7b/0xa0 [ 25.827522] ? __pfx_kthread+0x10/0x10 [ 25.827541] ret_from_fork+0x116/0x1d0 [ 25.827559] ? __pfx_kthread+0x10/0x10 [ 25.827577] ret_from_fork_asm+0x1a/0x30 [ 25.827607] </TASK> [ 25.827617] [ 25.838693] Allocated by task 227: [ 25.838866] kasan_save_stack+0x45/0x70 [ 25.839056] kasan_save_track+0x18/0x40 [ 25.839195] kasan_save_alloc_info+0x3b/0x50 [ 25.839335] __kasan_kmalloc+0xb7/0xc0 [ 25.839457] __kmalloc_cache_noprof+0x189/0x420 [ 25.839715] kmalloc_oob_memset_16+0xac/0x330 [ 25.839917] kunit_try_run_case+0x1a5/0x480 [ 25.840122] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.840642] kthread+0x337/0x6f0 [ 25.840797] ret_from_fork+0x116/0x1d0 [ 25.840956] ret_from_fork_asm+0x1a/0x30 [ 25.841139] [ 25.841205] The buggy address belongs to the object at ffff888105f2fc00 [ 25.841205] which belongs to the cache kmalloc-128 of size 128 [ 25.841812] The buggy address is located 105 bytes inside of [ 25.841812] allocated 120-byte region [ffff888105f2fc00, ffff888105f2fc78) [ 25.842279] [ 25.842346] The buggy address belongs to the physical page: [ 25.842511] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105f2f [ 25.843193] flags: 0x200000000000000(node=0|zone=2) [ 25.843470] page_type: f5(slab) [ 25.843591] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.843813] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.844133] page dumped because: kasan: bad access detected [ 25.844586] [ 25.844677] Memory state around the buggy address: [ 25.844892] ffff888105f2fb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.845182] ffff888105f2fb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.845655] >ffff888105f2fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.845938] ^ [ 25.846180] ffff888105f2fc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.846421] ffff888105f2fd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.846724] ==================================================================