Date
July 4, 2025, 3:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 25.908714] ================================================================== [ 25.918168] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 25.925364] Write of size 8 at addr ffff000801a3d671 by task kunit_try_catch/225 [ 25.932743] [ 25.934229] CPU: 3 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT [ 25.934282] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.934297] Hardware name: WinLink E850-96 board (DT) [ 25.934320] Call trace: [ 25.934332] show_stack+0x20/0x38 (C) [ 25.934366] dump_stack_lvl+0x8c/0xd0 [ 25.934404] print_report+0x118/0x608 [ 25.934435] kasan_report+0xdc/0x128 [ 25.934463] kasan_check_range+0x100/0x1a8 [ 25.934494] __asan_memset+0x34/0x78 [ 25.934524] kmalloc_oob_memset_8+0x150/0x2f8 [ 25.934559] kunit_try_run_case+0x170/0x3f0 [ 25.934596] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.934634] kthread+0x328/0x630 [ 25.934669] ret_from_fork+0x10/0x20 [ 25.934704] [ 26.000103] Allocated by task 225: [ 26.003492] kasan_save_stack+0x3c/0x68 [ 26.007309] kasan_save_track+0x20/0x40 [ 26.011127] kasan_save_alloc_info+0x40/0x58 [ 26.015380] __kasan_kmalloc+0xd4/0xd8 [ 26.019113] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.023627] kmalloc_oob_memset_8+0xb0/0x2f8 [ 26.027881] kunit_try_run_case+0x170/0x3f0 [ 26.032047] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.037515] kthread+0x328/0x630 [ 26.040727] ret_from_fork+0x10/0x20 [ 26.044286] [ 26.045763] The buggy address belongs to the object at ffff000801a3d600 [ 26.045763] which belongs to the cache kmalloc-128 of size 128 [ 26.058265] The buggy address is located 113 bytes inside of [ 26.058265] allocated 120-byte region [ffff000801a3d600, ffff000801a3d678) [ 26.070848] [ 26.072326] The buggy address belongs to the physical page: [ 26.077884] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881a3c [ 26.085868] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.093506] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 26.100450] page_type: f5(slab) [ 26.103587] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 26.111306] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 26.119033] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 26.126843] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 26.134656] head: 0bfffe0000000001 fffffdffe0068f01 00000000ffffffff 00000000ffffffff [ 26.142468] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 26.150274] page dumped because: kasan: bad access detected [ 26.155829] [ 26.157304] Memory state around the buggy address: [ 26.162086] ffff000801a3d500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.169288] ffff000801a3d580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.176496] >ffff000801a3d600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.183694] ^ [ 26.190815] ffff000801a3d680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.198020] ffff000801a3d700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.205223] ==================================================================
[ 15.604988] ================================================================== [ 15.605173] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 15.605256] Write of size 8 at addr fff00000c637a871 by task kunit_try_catch/181 [ 15.605333] [ 15.605476] CPU: 0 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT [ 15.605622] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.605709] Hardware name: linux,dummy-virt (DT) [ 15.605740] Call trace: [ 15.605762] show_stack+0x20/0x38 (C) [ 15.606005] dump_stack_lvl+0x8c/0xd0 [ 15.606062] print_report+0x118/0x608 [ 15.606105] kasan_report+0xdc/0x128 [ 15.606190] kasan_check_range+0x100/0x1a8 [ 15.606276] __asan_memset+0x34/0x78 [ 15.606321] kmalloc_oob_memset_8+0x150/0x2f8 [ 15.606374] kunit_try_run_case+0x170/0x3f0 [ 15.606509] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.606602] kthread+0x328/0x630 [ 15.606733] ret_from_fork+0x10/0x20 [ 15.606781] [ 15.606799] Allocated by task 181: [ 15.606841] kasan_save_stack+0x3c/0x68 [ 15.607103] kasan_save_track+0x20/0x40 [ 15.607159] kasan_save_alloc_info+0x40/0x58 [ 15.607220] __kasan_kmalloc+0xd4/0xd8 [ 15.607255] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.607291] kmalloc_oob_memset_8+0xb0/0x2f8 [ 15.607398] kunit_try_run_case+0x170/0x3f0 [ 15.607475] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.607519] kthread+0x328/0x630 [ 15.607682] ret_from_fork+0x10/0x20 [ 15.607794] [ 15.607934] The buggy address belongs to the object at fff00000c637a800 [ 15.607934] which belongs to the cache kmalloc-128 of size 128 [ 15.608030] The buggy address is located 113 bytes inside of [ 15.608030] allocated 120-byte region [fff00000c637a800, fff00000c637a878) [ 15.608122] [ 15.608170] The buggy address belongs to the physical page: [ 15.608309] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10637a [ 15.608403] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.608454] page_type: f5(slab) [ 15.608743] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.608886] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.609003] page dumped because: kasan: bad access detected [ 15.609125] [ 15.609208] Memory state around the buggy address: [ 15.609357] fff00000c637a700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.609451] fff00000c637a780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.609575] >fff00000c637a800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.609612] ^ [ 15.609661] fff00000c637a880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.609998] fff00000c637a900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.610233] ==================================================================
[ 14.408422] ================================================================== [ 14.409087] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 14.409787] Write of size 8 at addr ffff8881029e5871 by task kunit_try_catch/197 [ 14.410300] [ 14.410747] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT(voluntary) [ 14.410813] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.410828] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.410852] Call Trace: [ 14.410869] <TASK> [ 14.410896] dump_stack_lvl+0x73/0xb0 [ 14.410932] print_report+0xd1/0x650 [ 14.410958] ? __virt_addr_valid+0x1db/0x2d0 [ 14.410984] ? kmalloc_oob_memset_8+0x166/0x330 [ 14.411006] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.411029] ? kmalloc_oob_memset_8+0x166/0x330 [ 14.411052] kasan_report+0x141/0x180 [ 14.411114] ? kmalloc_oob_memset_8+0x166/0x330 [ 14.411177] kasan_check_range+0x10c/0x1c0 [ 14.411219] __asan_memset+0x27/0x50 [ 14.411254] kmalloc_oob_memset_8+0x166/0x330 [ 14.411360] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 14.411413] ? __schedule+0x10cc/0x2b60 [ 14.411460] ? __pfx_read_tsc+0x10/0x10 [ 14.411501] ? ktime_get_ts64+0x86/0x230 [ 14.411556] kunit_try_run_case+0x1a5/0x480 [ 14.411607] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.411643] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.411687] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.411733] ? __kthread_parkme+0x82/0x180 [ 14.411777] ? preempt_count_sub+0x50/0x80 [ 14.411822] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.411861] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.411901] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.411945] kthread+0x337/0x6f0 [ 14.411980] ? trace_preempt_on+0x20/0xc0 [ 14.412030] ? __pfx_kthread+0x10/0x10 [ 14.412082] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.412146] ? calculate_sigpending+0x7b/0xa0 [ 14.412171] ? __pfx_kthread+0x10/0x10 [ 14.412192] ret_from_fork+0x41/0x80 [ 14.412213] ? __pfx_kthread+0x10/0x10 [ 14.412232] ret_from_fork_asm+0x1a/0x30 [ 14.412267] </TASK> [ 14.412280] [ 14.423565] Allocated by task 197: [ 14.423920] kasan_save_stack+0x45/0x70 [ 14.424424] kasan_save_track+0x18/0x40 [ 14.424675] kasan_save_alloc_info+0x3b/0x50 [ 14.425117] __kasan_kmalloc+0xb7/0xc0 [ 14.425383] __kmalloc_cache_noprof+0x189/0x420 [ 14.425747] kmalloc_oob_memset_8+0xac/0x330 [ 14.425952] kunit_try_run_case+0x1a5/0x480 [ 14.426167] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.426681] kthread+0x337/0x6f0 [ 14.427015] ret_from_fork+0x41/0x80 [ 14.427445] ret_from_fork_asm+0x1a/0x30 [ 14.427812] [ 14.428034] The buggy address belongs to the object at ffff8881029e5800 [ 14.428034] which belongs to the cache kmalloc-128 of size 128 [ 14.428956] The buggy address is located 113 bytes inside of [ 14.428956] allocated 120-byte region [ffff8881029e5800, ffff8881029e5878) [ 14.429559] [ 14.429749] The buggy address belongs to the physical page: [ 14.430318] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029e5 [ 14.430981] flags: 0x200000000000000(node=0|zone=2) [ 14.431520] page_type: f5(slab) [ 14.431754] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 14.432048] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 14.432398] page dumped because: kasan: bad access detected [ 14.432846] [ 14.433033] Memory state around the buggy address: [ 14.433558] ffff8881029e5700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.434154] ffff8881029e5780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.434785] >ffff8881029e5800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 14.435262] ^ [ 14.435686] ffff8881029e5880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.435958] ffff8881029e5900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.436370] ==================================================================