Date
July 11, 2025, 10:11 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 44.789705] ================================================================== [ 44.799206] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 44.806408] Write of size 4 at addr ffff00080193ad75 by task kunit_try_catch/258 [ 44.813783] [ 44.815271] CPU: 2 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 44.815328] Tainted: [B]=BAD_PAGE, [N]=TEST [ 44.815344] Hardware name: WinLink E850-96 board (DT) [ 44.815365] Call trace: [ 44.815378] show_stack+0x20/0x38 (C) [ 44.815414] dump_stack_lvl+0x8c/0xd0 [ 44.815444] print_report+0x118/0x5d0 [ 44.815472] kasan_report+0xdc/0x128 [ 44.815499] kasan_check_range+0x100/0x1a8 [ 44.815528] __asan_memset+0x34/0x78 [ 44.815558] kmalloc_oob_memset_4+0x150/0x300 [ 44.815589] kunit_try_run_case+0x170/0x3f0 [ 44.815626] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.815659] kthread+0x328/0x630 [ 44.815689] ret_from_fork+0x10/0x20 [ 44.815722] [ 44.882358] Allocated by task 258: [ 44.885747] kasan_save_stack+0x3c/0x68 [ 44.889563] kasan_save_track+0x20/0x40 [ 44.893382] kasan_save_alloc_info+0x40/0x58 [ 44.897636] __kasan_kmalloc+0xd4/0xd8 [ 44.901368] __kmalloc_cache_noprof+0x16c/0x3c0 [ 44.905882] kmalloc_oob_memset_4+0xb0/0x300 [ 44.910137] kunit_try_run_case+0x170/0x3f0 [ 44.914302] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.919771] kthread+0x328/0x630 [ 44.922983] ret_from_fork+0x10/0x20 [ 44.926542] [ 44.928019] The buggy address belongs to the object at ffff00080193ad00 [ 44.928019] which belongs to the cache kmalloc-128 of size 128 [ 44.940519] The buggy address is located 117 bytes inside of [ 44.940519] allocated 120-byte region [ffff00080193ad00, ffff00080193ad78) [ 44.953104] [ 44.954582] The buggy address belongs to the physical page: [ 44.960139] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88193a [ 44.968124] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 44.975762] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 44.982706] page_type: f5(slab) [ 44.985843] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 44.993561] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 45.001288] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 45.009099] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 45.016911] head: 0bfffe0000000001 fffffdffe0064e81 00000000ffffffff 00000000ffffffff [ 45.024724] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 45.032529] page dumped because: kasan: bad access detected [ 45.038085] [ 45.039560] Memory state around the buggy address: [ 45.044340] ffff00080193ac00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.051543] ffff00080193ac80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.058750] >ffff00080193ad00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 45.065949] ^ [ 45.073071] ffff00080193ad80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.080277] ffff00080193ae00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.087478] ==================================================================
[ 30.405175] ================================================================== [ 30.405511] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 30.405591] Write of size 4 at addr fff00000c91b3975 by task kunit_try_catch/205 [ 30.405648] [ 30.405686] CPU: 1 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 30.405771] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.405822] Hardware name: linux,dummy-virt (DT) [ 30.405855] Call trace: [ 30.405878] show_stack+0x20/0x38 (C) [ 30.405984] dump_stack_lvl+0x8c/0xd0 [ 30.406371] print_report+0x118/0x5d0 [ 30.406458] kasan_report+0xdc/0x128 [ 30.406499] kasan_check_range+0x100/0x1a8 [ 30.406622] __asan_memset+0x34/0x78 [ 30.406666] kmalloc_oob_memset_4+0x150/0x300 [ 30.406711] kunit_try_run_case+0x170/0x3f0 [ 30.406759] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.406829] kthread+0x328/0x630 [ 30.407032] ret_from_fork+0x10/0x20 [ 30.407107] [ 30.407195] Allocated by task 205: [ 30.407224] kasan_save_stack+0x3c/0x68 [ 30.407265] kasan_save_track+0x20/0x40 [ 30.407302] kasan_save_alloc_info+0x40/0x58 [ 30.407349] __kasan_kmalloc+0xd4/0xd8 [ 30.407393] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.407582] kmalloc_oob_memset_4+0xb0/0x300 [ 30.407669] kunit_try_run_case+0x170/0x3f0 [ 30.407776] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.407971] kthread+0x328/0x630 [ 30.408004] ret_from_fork+0x10/0x20 [ 30.408079] [ 30.408174] The buggy address belongs to the object at fff00000c91b3900 [ 30.408174] which belongs to the cache kmalloc-128 of size 128 [ 30.408275] The buggy address is located 117 bytes inside of [ 30.408275] allocated 120-byte region [fff00000c91b3900, fff00000c91b3978) [ 30.408344] [ 30.408365] The buggy address belongs to the physical page: [ 30.408395] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1091b3 [ 30.408447] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.408495] page_type: f5(slab) [ 30.408536] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 30.408613] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.408652] page dumped because: kasan: bad access detected [ 30.408965] [ 30.409245] Memory state around the buggy address: [ 30.409355] fff00000c91b3800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.409676] fff00000c91b3880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.409808] >fff00000c91b3900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.409990] ^ [ 30.410057] fff00000c91b3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.410201] fff00000c91b3a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.410243] ==================================================================
[ 23.865165] ================================================================== [ 23.865927] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 23.866227] Write of size 4 at addr ffff888104cac275 by task kunit_try_catch/224 [ 23.866556] [ 23.866760] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT(voluntary) [ 23.866818] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.866830] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.866852] Call Trace: [ 23.866866] <TASK> [ 23.866885] dump_stack_lvl+0x73/0xb0 [ 23.866921] print_report+0xd1/0x610 [ 23.866945] ? __virt_addr_valid+0x1db/0x2d0 [ 23.866969] ? kmalloc_oob_memset_4+0x166/0x330 [ 23.866991] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.867016] ? kmalloc_oob_memset_4+0x166/0x330 [ 23.867038] kasan_report+0x141/0x180 [ 23.867059] ? kmalloc_oob_memset_4+0x166/0x330 [ 23.867084] kasan_check_range+0x10c/0x1c0 [ 23.867107] __asan_memset+0x27/0x50 [ 23.867130] kmalloc_oob_memset_4+0x166/0x330 [ 23.867153] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 23.867175] ? __schedule+0x10cc/0x2b60 [ 23.867199] ? __pfx_read_tsc+0x10/0x10 [ 23.867221] ? ktime_get_ts64+0x86/0x230 [ 23.867247] kunit_try_run_case+0x1a5/0x480 [ 23.867270] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.867290] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.867358] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.867381] ? __kthread_parkme+0x82/0x180 [ 23.867403] ? preempt_count_sub+0x50/0x80 [ 23.867426] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.867448] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.867473] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.867497] kthread+0x337/0x6f0 [ 23.867517] ? trace_preempt_on+0x20/0xc0 [ 23.867550] ? __pfx_kthread+0x10/0x10 [ 23.867570] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.867592] ? calculate_sigpending+0x7b/0xa0 [ 23.867617] ? __pfx_kthread+0x10/0x10 [ 23.867638] ret_from_fork+0x116/0x1d0 [ 23.867657] ? __pfx_kthread+0x10/0x10 [ 23.867678] ret_from_fork_asm+0x1a/0x30 [ 23.867708] </TASK> [ 23.867720] [ 23.875235] Allocated by task 224: [ 23.875528] kasan_save_stack+0x45/0x70 [ 23.875676] kasan_save_track+0x18/0x40 [ 23.875815] kasan_save_alloc_info+0x3b/0x50 [ 23.875994] __kasan_kmalloc+0xb7/0xc0 [ 23.876173] __kmalloc_cache_noprof+0x189/0x420 [ 23.876394] kmalloc_oob_memset_4+0xac/0x330 [ 23.876633] kunit_try_run_case+0x1a5/0x480 [ 23.876909] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.877086] kthread+0x337/0x6f0 [ 23.877226] ret_from_fork+0x116/0x1d0 [ 23.877635] ret_from_fork_asm+0x1a/0x30 [ 23.877849] [ 23.877948] The buggy address belongs to the object at ffff888104cac200 [ 23.877948] which belongs to the cache kmalloc-128 of size 128 [ 23.878483] The buggy address is located 117 bytes inside of [ 23.878483] allocated 120-byte region [ffff888104cac200, ffff888104cac278) [ 23.878848] [ 23.878915] The buggy address belongs to the physical page: [ 23.879160] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104cac [ 23.879600] flags: 0x200000000000000(node=0|zone=2) [ 23.879837] page_type: f5(slab) [ 23.880002] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.880630] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.880931] page dumped because: kasan: bad access detected [ 23.881181] [ 23.881268] Memory state around the buggy address: [ 23.881588] ffff888104cac100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.881873] ffff888104cac180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.882150] >ffff888104cac200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.882443] ^ [ 23.882654] ffff888104cac280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.882901] ffff888104cac300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.883223] ==================================================================