Date
May 29, 2025, 7:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.703672] ================================================================== [ 21.704137] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 21.704344] Write of size 16 at addr fff00000c5d6ee69 by task kunit_try_catch/178 [ 21.704472] [ 21.704559] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 21.704775] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.704839] Hardware name: linux,dummy-virt (DT) [ 21.704915] Call trace: [ 21.704969] show_stack+0x20/0x38 (C) [ 21.705091] dump_stack_lvl+0x8c/0xd0 [ 21.705211] print_report+0x118/0x608 [ 21.705323] kasan_report+0xdc/0x128 [ 21.705440] kasan_check_range+0x100/0x1a8 [ 21.705550] __asan_memset+0x34/0x78 [ 21.705656] kmalloc_oob_memset_16+0x150/0x2f8 [ 21.705769] kunit_try_run_case+0x170/0x3f0 [ 21.705886] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.706011] kthread+0x328/0x630 [ 21.706112] ret_from_fork+0x10/0x20 [ 21.706226] [ 21.706272] Allocated by task 178: [ 21.706341] kasan_save_stack+0x3c/0x68 [ 21.706457] kasan_save_track+0x20/0x40 [ 21.706542] kasan_save_alloc_info+0x40/0x58 [ 21.707135] __kasan_kmalloc+0xd4/0xd8 [ 21.707435] __kmalloc_cache_noprof+0x15c/0x3c0 [ 21.707725] kmalloc_oob_memset_16+0xb0/0x2f8 [ 21.707842] kunit_try_run_case+0x170/0x3f0 [ 21.707932] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.708067] kthread+0x328/0x630 [ 21.708170] ret_from_fork+0x10/0x20 [ 21.708273] [ 21.708360] The buggy address belongs to the object at fff00000c5d6ee00 [ 21.708360] which belongs to the cache kmalloc-128 of size 128 [ 21.708546] The buggy address is located 105 bytes inside of [ 21.708546] allocated 120-byte region [fff00000c5d6ee00, fff00000c5d6ee78) [ 21.708740] [ 21.708813] The buggy address belongs to the physical page: [ 21.708888] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105d6e [ 21.709016] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.709138] page_type: f5(slab) [ 21.709230] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.709348] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.709461] page dumped because: kasan: bad access detected [ 21.709541] [ 21.709585] Memory state around the buggy address: [ 21.709798] fff00000c5d6ed00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.710032] fff00000c5d6ed80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.710349] >fff00000c5d6ee00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.710454] ^ [ 21.710593] fff00000c5d6ee80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.710699] fff00000c5d6ef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.710844] ==================================================================
[ 11.033015] ================================================================== [ 11.034645] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 11.035034] Write of size 16 at addr ffff888102896d69 by task kunit_try_catch/195 [ 11.035319] [ 11.035438] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 11.035484] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.035497] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.035517] Call Trace: [ 11.035530] <TASK> [ 11.035545] dump_stack_lvl+0x73/0xb0 [ 11.035571] print_report+0xd1/0x650 [ 11.035593] ? __virt_addr_valid+0x1db/0x2d0 [ 11.035628] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.035649] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.035671] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.035694] kasan_report+0x141/0x180 [ 11.035716] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.035743] kasan_check_range+0x10c/0x1c0 [ 11.035766] __asan_memset+0x27/0x50 [ 11.035787] kmalloc_oob_memset_16+0x166/0x330 [ 11.035810] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 11.035833] ? __schedule+0x10cc/0x2b60 [ 11.035855] ? irqentry_exit+0x2a/0x60 [ 11.035873] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 11.035898] ? __pfx_read_tsc+0x10/0x10 [ 11.035981] ? ktime_get_ts64+0x86/0x230 [ 11.036002] ? trace_hardirqs_on+0x37/0xe0 [ 11.036027] kunit_try_run_case+0x1a5/0x480 [ 11.036049] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.036068] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.036093] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.036117] ? __kthread_parkme+0x82/0x180 [ 11.036137] ? preempt_count_sub+0x50/0x80 [ 11.036160] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.036181] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.036205] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.036229] kthread+0x337/0x6f0 [ 11.036248] ? trace_preempt_on+0x20/0xc0 [ 11.036269] ? __pfx_kthread+0x10/0x10 [ 11.036290] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.036312] ? calculate_sigpending+0x7b/0xa0 [ 11.036335] ? __pfx_kthread+0x10/0x10 [ 11.036356] ret_from_fork+0x116/0x1d0 [ 11.036374] ? __pfx_kthread+0x10/0x10 [ 11.036395] ret_from_fork_asm+0x1a/0x30 [ 11.036425] </TASK> [ 11.036435] [ 11.044970] Allocated by task 195: [ 11.045111] kasan_save_stack+0x45/0x70 [ 11.045324] kasan_save_track+0x18/0x40 [ 11.045521] kasan_save_alloc_info+0x3b/0x50 [ 11.045742] __kasan_kmalloc+0xb7/0xc0 [ 11.045976] __kmalloc_cache_noprof+0x189/0x420 [ 11.046144] kmalloc_oob_memset_16+0xac/0x330 [ 11.046363] kunit_try_run_case+0x1a5/0x480 [ 11.046579] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.046881] kthread+0x337/0x6f0 [ 11.047043] ret_from_fork+0x116/0x1d0 [ 11.047184] ret_from_fork_asm+0x1a/0x30 [ 11.047333] [ 11.047407] The buggy address belongs to the object at ffff888102896d00 [ 11.047407] which belongs to the cache kmalloc-128 of size 128 [ 11.047920] The buggy address is located 105 bytes inside of [ 11.047920] allocated 120-byte region [ffff888102896d00, ffff888102896d78) [ 11.048531] [ 11.048725] The buggy address belongs to the physical page: [ 11.048913] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102896 [ 11.049163] flags: 0x200000000000000(node=0|zone=2) [ 11.049801] page_type: f5(slab) [ 11.050058] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.050554] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.050873] page dumped because: kasan: bad access detected [ 11.051147] [ 11.051247] Memory state around the buggy address: [ 11.051470] ffff888102896c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.051712] ffff888102896c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.052122] >ffff888102896d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.052560] ^ [ 11.052890] ffff888102896d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.053121] ffff888102896e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.053653] ==================================================================