Date
June 24, 2025, 12:47 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.981128] ================================================================== [ 23.981252] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 23.981414] Write of size 16 at addr fff00000c59ef369 by task kunit_try_catch/180 [ 23.981543] [ 23.981627] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc2 #1 PREEMPT [ 23.981863] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.982014] Hardware name: linux,dummy-virt (DT) [ 23.982133] Call trace: [ 23.982196] show_stack+0x20/0x38 (C) [ 23.982425] dump_stack_lvl+0x8c/0xd0 [ 23.982558] print_report+0x118/0x608 [ 23.982668] kasan_report+0xdc/0x128 [ 23.982775] kasan_check_range+0x100/0x1a8 [ 23.982886] __asan_memset+0x34/0x78 [ 23.982992] kmalloc_oob_memset_16+0x150/0x2f8 [ 23.983111] kunit_try_run_case+0x170/0x3f0 [ 23.983230] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.983354] kthread+0x328/0x630 [ 23.983486] ret_from_fork+0x10/0x20 [ 23.983599] [ 23.983642] Allocated by task 180: [ 23.983707] kasan_save_stack+0x3c/0x68 [ 23.983796] kasan_save_track+0x20/0x40 [ 23.983881] kasan_save_alloc_info+0x40/0x58 [ 23.983973] __kasan_kmalloc+0xd4/0xd8 [ 23.984061] __kmalloc_cache_noprof+0x16c/0x3c0 [ 23.984734] kmalloc_oob_memset_16+0xb0/0x2f8 [ 23.984982] kunit_try_run_case+0x170/0x3f0 [ 23.985318] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.985716] kthread+0x328/0x630 [ 23.986127] ret_from_fork+0x10/0x20 [ 23.986243] [ 23.986459] The buggy address belongs to the object at fff00000c59ef300 [ 23.986459] which belongs to the cache kmalloc-128 of size 128 [ 23.986775] The buggy address is located 105 bytes inside of [ 23.986775] allocated 120-byte region [fff00000c59ef300, fff00000c59ef378) [ 23.987284] [ 23.987407] The buggy address belongs to the physical page: [ 23.987877] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059ef [ 23.988724] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.988846] page_type: f5(slab) [ 23.989489] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.989766] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.990210] page dumped because: kasan: bad access detected [ 23.990514] [ 23.990584] Memory state around the buggy address: [ 23.990691] fff00000c59ef200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.990872] fff00000c59ef280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.991148] >fff00000c59ef300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.991314] ^ [ 23.991487] fff00000c59ef380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.992192] fff00000c59ef400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.992654] ==================================================================
[ 11.907525] ================================================================== [ 11.908160] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 11.909401] Write of size 16 at addr ffff8881029da369 by task kunit_try_catch/198 [ 11.910008] [ 11.910219] CPU: 1 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc2 #1 PREEMPT(voluntary) [ 11.910485] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.910515] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.910604] Call Trace: [ 11.910648] <TASK> [ 11.910688] dump_stack_lvl+0x73/0xb0 [ 11.910758] print_report+0xd1/0x650 [ 11.910799] ? __virt_addr_valid+0x1db/0x2d0 [ 11.910826] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.910848] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.910869] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.910890] kasan_report+0x141/0x180 [ 11.910912] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.910937] kasan_check_range+0x10c/0x1c0 [ 11.910956] __asan_memset+0x27/0x50 [ 11.910976] kmalloc_oob_memset_16+0x166/0x330 [ 11.910997] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 11.911019] ? __schedule+0x10cc/0x2b60 [ 11.911041] ? __pfx_read_tsc+0x10/0x10 [ 11.911061] ? ktime_get_ts64+0x86/0x230 [ 11.911088] kunit_try_run_case+0x1a5/0x480 [ 11.911114] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.911134] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.911157] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.911178] ? __kthread_parkme+0x82/0x180 [ 11.911200] ? preempt_count_sub+0x50/0x80 [ 11.911224] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.911247] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.911268] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.911331] kthread+0x337/0x6f0 [ 11.911371] ? trace_preempt_on+0x20/0xc0 [ 11.911409] ? __pfx_kthread+0x10/0x10 [ 11.911435] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.911465] ? calculate_sigpending+0x7b/0xa0 [ 11.911496] ? __pfx_kthread+0x10/0x10 [ 11.911524] ret_from_fork+0x41/0x80 [ 11.911564] ? __pfx_kthread+0x10/0x10 [ 11.911592] ret_from_fork_asm+0x1a/0x30 [ 11.911652] </TASK> [ 11.911674] [ 11.922506] Allocated by task 198: [ 11.922898] kasan_save_stack+0x45/0x70 [ 11.923268] kasan_save_track+0x18/0x40 [ 11.923464] kasan_save_alloc_info+0x3b/0x50 [ 11.923994] __kasan_kmalloc+0xb7/0xc0 [ 11.924749] __kmalloc_cache_noprof+0x189/0x420 [ 11.925111] kmalloc_oob_memset_16+0xac/0x330 [ 11.925487] kunit_try_run_case+0x1a5/0x480 [ 11.925849] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.926101] kthread+0x337/0x6f0 [ 11.926254] ret_from_fork+0x41/0x80 [ 11.926834] ret_from_fork_asm+0x1a/0x30 [ 11.927159] [ 11.927338] The buggy address belongs to the object at ffff8881029da300 [ 11.927338] which belongs to the cache kmalloc-128 of size 128 [ 11.928338] The buggy address is located 105 bytes inside of [ 11.928338] allocated 120-byte region [ffff8881029da300, ffff8881029da378) [ 11.929244] [ 11.929610] The buggy address belongs to the physical page: [ 11.929991] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029da [ 11.930732] flags: 0x200000000000000(node=0|zone=2) [ 11.931076] page_type: f5(slab) [ 11.931792] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.932132] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.932760] page dumped because: kasan: bad access detected [ 11.933091] [ 11.933247] Memory state around the buggy address: [ 11.933633] ffff8881029da200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.934055] ffff8881029da280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.934766] >ffff8881029da300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.935167] ^ [ 11.935950] ffff8881029da380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.936262] ffff8881029da400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.936544] ==================================================================