Date
June 2, 2025, 2:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 25.252973] ================================================================== [ 25.262512] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 25.269713] Write of size 2 at addr ffff000801dd0077 by task kunit_try_catch/219 [ 25.277089] [ 25.278576] CPU: 6 UID: 0 PID: 219 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT [ 25.278621] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.278635] Hardware name: WinLink E850-96 board (DT) [ 25.278652] Call trace: [ 25.278666] show_stack+0x20/0x38 (C) [ 25.278698] dump_stack_lvl+0x8c/0xd0 [ 25.278731] print_report+0x118/0x608 [ 25.278761] kasan_report+0xdc/0x128 [ 25.278786] kasan_check_range+0x100/0x1a8 [ 25.278815] __asan_memset+0x34/0x78 [ 25.278843] kmalloc_oob_memset_2+0x150/0x2f8 [ 25.278877] kunit_try_run_case+0x170/0x3f0 [ 25.278914] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.278952] kthread+0x328/0x630 [ 25.278988] ret_from_fork+0x10/0x20 [ 25.279023] [ 25.344451] Allocated by task 219: [ 25.347837] kasan_save_stack+0x3c/0x68 [ 25.351654] kasan_save_track+0x20/0x40 [ 25.355474] kasan_save_alloc_info+0x40/0x58 [ 25.359727] __kasan_kmalloc+0xd4/0xd8 [ 25.363459] __kmalloc_cache_noprof+0x16c/0x3c0 [ 25.367974] kmalloc_oob_memset_2+0xb0/0x2f8 [ 25.372228] kunit_try_run_case+0x170/0x3f0 [ 25.376395] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.381862] kthread+0x328/0x630 [ 25.385074] ret_from_fork+0x10/0x20 [ 25.388632] [ 25.390110] The buggy address belongs to the object at ffff000801dd0000 [ 25.390110] which belongs to the cache kmalloc-128 of size 128 [ 25.402610] The buggy address is located 119 bytes inside of [ 25.402610] allocated 120-byte region [ffff000801dd0000, ffff000801dd0078) [ 25.415195] [ 25.416673] The buggy address belongs to the physical page: [ 25.422231] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881dd0 [ 25.430215] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 25.437854] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 25.444797] page_type: f5(slab) [ 25.447933] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 25.455652] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.463378] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 25.471190] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.479003] head: 0bfffe0000000001 fffffdffe0077401 00000000ffffffff 00000000ffffffff [ 25.486815] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 25.494620] page dumped because: kasan: bad access detected [ 25.500176] [ 25.501652] Memory state around the buggy address: [ 25.506433] ffff000801dcff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.513634] ffff000801dcff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.520841] >ffff000801dd0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.528040] ^ [ 25.535162] ffff000801dd0080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.542366] ffff000801dd0100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.549569] ==================================================================
[ 18.010531] ================================================================== [ 18.010620] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 18.010696] Write of size 2 at addr fff00000c3f75477 by task kunit_try_catch/175 [ 18.010745] [ 18.010785] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT [ 18.010870] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.010896] Hardware name: linux,dummy-virt (DT) [ 18.010928] Call trace: [ 18.010953] show_stack+0x20/0x38 (C) [ 18.011004] dump_stack_lvl+0x8c/0xd0 [ 18.011060] print_report+0x118/0x608 [ 18.011104] kasan_report+0xdc/0x128 [ 18.011151] kasan_check_range+0x100/0x1a8 [ 18.011199] __asan_memset+0x34/0x78 [ 18.011243] kmalloc_oob_memset_2+0x150/0x2f8 [ 18.011292] kunit_try_run_case+0x170/0x3f0 [ 18.011342] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.011692] kthread+0x328/0x630 [ 18.011741] ret_from_fork+0x10/0x20 [ 18.011793] [ 18.011812] Allocated by task 175: [ 18.013893] kasan_save_stack+0x3c/0x68 [ 18.013959] kasan_save_track+0x20/0x40 [ 18.013996] kasan_save_alloc_info+0x40/0x58 [ 18.014037] __kasan_kmalloc+0xd4/0xd8 [ 18.014122] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.014217] kmalloc_oob_memset_2+0xb0/0x2f8 [ 18.014286] kunit_try_run_case+0x170/0x3f0 [ 18.015100] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.015190] kthread+0x328/0x630 [ 18.015264] ret_from_fork+0x10/0x20 [ 18.015389] [ 18.015446] The buggy address belongs to the object at fff00000c3f75400 [ 18.015446] which belongs to the cache kmalloc-128 of size 128 [ 18.015538] The buggy address is located 119 bytes inside of [ 18.015538] allocated 120-byte region [fff00000c3f75400, fff00000c3f75478) [ 18.017401] [ 18.018257] The buggy address belongs to the physical page: [ 18.018987] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f75 [ 18.022685] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.022811] page_type: f5(slab) [ 18.023327] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.023404] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.024379] page dumped because: kasan: bad access detected [ 18.024434] [ 18.024453] Memory state around the buggy address: [ 18.025866] fff00000c3f75300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.026065] fff00000c3f75380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.026114] >fff00000c3f75400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.026151] ^ [ 18.027461] fff00000c3f75480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.027530] fff00000c3f75500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.027568] ==================================================================
[ 16.603427] ================================================================== [ 16.604067] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 16.604865] Write of size 2 at addr ffff888102b25e77 by task kunit_try_catch/193 [ 16.605396] [ 16.605565] CPU: 0 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT(voluntary) [ 16.605859] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.605904] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.605957] Call Trace: [ 16.605992] <TASK> [ 16.606032] dump_stack_lvl+0x73/0xb0 [ 16.606123] print_report+0xd1/0x650 [ 16.606176] ? __virt_addr_valid+0x1db/0x2d0 [ 16.606233] ? kmalloc_oob_memset_2+0x166/0x330 [ 16.606280] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.606324] ? kmalloc_oob_memset_2+0x166/0x330 [ 16.606366] kasan_report+0x141/0x180 [ 16.606407] ? kmalloc_oob_memset_2+0x166/0x330 [ 16.606463] kasan_check_range+0x10c/0x1c0 [ 16.606509] __asan_memset+0x27/0x50 [ 16.606557] kmalloc_oob_memset_2+0x166/0x330 [ 16.606609] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 16.606676] ? __schedule+0x10cc/0x2b30 [ 16.606714] ? __pfx_read_tsc+0x10/0x10 [ 16.606740] ? ktime_get_ts64+0x86/0x230 [ 16.606805] kunit_try_run_case+0x1a5/0x480 [ 16.606837] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.606861] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.606889] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.606915] ? __kthread_parkme+0x82/0x180 [ 16.606941] ? preempt_count_sub+0x50/0x80 [ 16.606970] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.606996] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.607022] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.607046] kthread+0x337/0x6f0 [ 16.607066] ? trace_preempt_on+0x20/0xc0 [ 16.607094] ? __pfx_kthread+0x10/0x10 [ 16.607141] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.607169] ? calculate_sigpending+0x7b/0xa0 [ 16.607195] ? __pfx_kthread+0x10/0x10 [ 16.607216] ret_from_fork+0x41/0x80 [ 16.607240] ? __pfx_kthread+0x10/0x10 [ 16.607260] ret_from_fork_asm+0x1a/0x30 [ 16.607297] </TASK> [ 16.607312] [ 16.616680] Allocated by task 193: [ 16.616974] kasan_save_stack+0x45/0x70 [ 16.617347] kasan_save_track+0x18/0x40 [ 16.617709] kasan_save_alloc_info+0x3b/0x50 [ 16.618079] __kasan_kmalloc+0xb7/0xc0 [ 16.618439] __kmalloc_cache_noprof+0x189/0x420 [ 16.618849] kmalloc_oob_memset_2+0xac/0x330 [ 16.619230] kunit_try_run_case+0x1a5/0x480 [ 16.619551] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.619932] kthread+0x337/0x6f0 [ 16.620136] ret_from_fork+0x41/0x80 [ 16.620472] ret_from_fork_asm+0x1a/0x30 [ 16.620832] [ 16.621011] The buggy address belongs to the object at ffff888102b25e00 [ 16.621011] which belongs to the cache kmalloc-128 of size 128 [ 16.621535] The buggy address is located 119 bytes inside of [ 16.621535] allocated 120-byte region [ffff888102b25e00, ffff888102b25e78) [ 16.621994] [ 16.622128] The buggy address belongs to the physical page: [ 16.622368] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b25 [ 16.622927] flags: 0x200000000000000(node=0|zone=2) [ 16.623376] page_type: f5(slab) [ 16.623825] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.624531] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.625150] page dumped because: kasan: bad access detected [ 16.625587] [ 16.625778] Memory state around the buggy address: [ 16.626195] ffff888102b25d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.626593] ffff888102b25d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.627003] >ffff888102b25e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.627688] ^ [ 16.628135] ffff888102b25e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.628447] ffff888102b25f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.628717] ==================================================================