Date
May 30, 2025, 4:14 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 | |
x15 |
[ 28.086982] ================================================================== [ 28.096503] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 28.103701] Write of size 8 at addr ffff000801e2a171 by task kunit_try_catch/220 [ 28.111079] [ 28.112562] CPU: 5 UID: 0 PID: 220 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 28.112614] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.112630] Hardware name: WinLink E850-96 board (DT) [ 28.112648] Call trace: [ 28.112662] show_stack+0x20/0x38 (C) [ 28.112696] dump_stack_lvl+0x8c/0xd0 [ 28.112736] print_report+0x118/0x608 [ 28.112770] kasan_report+0xdc/0x128 [ 28.112800] kasan_check_range+0x100/0x1a8 [ 28.112832] __asan_memset+0x34/0x78 [ 28.112859] kmalloc_oob_memset_8+0x150/0x2f8 [ 28.112890] kunit_try_run_case+0x170/0x3f0 [ 28.112925] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.112964] kthread+0x328/0x630 [ 28.112990] ret_from_fork+0x10/0x20 [ 28.113024] [ 28.179307] Allocated by task 220: [ 28.182696] kasan_save_stack+0x3c/0x68 [ 28.186511] kasan_save_track+0x20/0x40 [ 28.190331] kasan_save_alloc_info+0x40/0x58 [ 28.194585] __kasan_kmalloc+0xd4/0xd8 [ 28.198317] __kmalloc_cache_noprof+0x15c/0x3c0 [ 28.202831] kmalloc_oob_memset_8+0xb0/0x2f8 [ 28.207084] kunit_try_run_case+0x170/0x3f0 [ 28.211251] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.216720] kthread+0x328/0x630 [ 28.219931] ret_from_fork+0x10/0x20 [ 28.223490] [ 28.224968] The buggy address belongs to the object at ffff000801e2a100 [ 28.224968] which belongs to the cache kmalloc-128 of size 128 [ 28.237469] The buggy address is located 113 bytes inside of [ 28.237469] allocated 120-byte region [ffff000801e2a100, ffff000801e2a178) [ 28.250052] [ 28.251531] The buggy address belongs to the physical page: [ 28.257088] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881e2a [ 28.265073] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 28.272711] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 28.279654] page_type: f5(slab) [ 28.282791] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 28.290510] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 28.298238] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 28.306048] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 28.313861] head: 0bfffe0000000001 fffffdffe0078a81 00000000ffffffff 00000000ffffffff [ 28.321673] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 28.329479] page dumped because: kasan: bad access detected [ 28.335035] [ 28.336509] Memory state around the buggy address: [ 28.341292] ffff000801e2a000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.348492] ffff000801e2a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.355698] >ffff000801e2a100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 28.362898] ^ [ 28.370019] ffff000801e2a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.377226] ffff000801e2a200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.384426] ==================================================================
[ 24.852074] ================================================================== [ 24.852200] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 24.852327] Write of size 8 at addr fff00000c77e8071 by task kunit_try_catch/177 [ 24.852438] [ 24.852515] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 24.855998] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.856778] Hardware name: linux,dummy-virt (DT) [ 24.856870] Call trace: [ 24.856932] show_stack+0x20/0x38 (C) [ 24.857074] dump_stack_lvl+0x8c/0xd0 [ 24.857209] print_report+0x118/0x608 [ 24.857345] kasan_report+0xdc/0x128 [ 24.857468] kasan_check_range+0x100/0x1a8 [ 24.857585] __asan_memset+0x34/0x78 [ 24.857716] kmalloc_oob_memset_8+0x150/0x2f8 [ 24.857847] kunit_try_run_case+0x170/0x3f0 [ 24.857969] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.858090] kthread+0x328/0x630 [ 24.858200] ret_from_fork+0x10/0x20 [ 24.858324] [ 24.858375] Allocated by task 177: [ 24.858446] kasan_save_stack+0x3c/0x68 [ 24.858553] kasan_save_track+0x20/0x40 [ 24.861166] kasan_save_alloc_info+0x40/0x58 [ 24.861548] __kasan_kmalloc+0xd4/0xd8 [ 24.862389] __kmalloc_cache_noprof+0x15c/0x3c0 [ 24.862714] kmalloc_oob_memset_8+0xb0/0x2f8 [ 24.862846] kunit_try_run_case+0x170/0x3f0 [ 24.863061] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.863177] kthread+0x328/0x630 [ 24.863493] ret_from_fork+0x10/0x20 [ 24.863597] [ 24.863886] The buggy address belongs to the object at fff00000c77e8000 [ 24.863886] which belongs to the cache kmalloc-128 of size 128 [ 24.864147] The buggy address is located 113 bytes inside of [ 24.864147] allocated 120-byte region [fff00000c77e8000, fff00000c77e8078) [ 24.864287] [ 24.864334] The buggy address belongs to the physical page: [ 24.864403] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077e8 [ 24.864526] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.864645] page_type: f5(slab) [ 24.864765] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 24.864880] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.864971] page dumped because: kasan: bad access detected [ 24.866174] [ 24.866230] Memory state around the buggy address: [ 24.866332] fff00000c77e7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.866448] fff00000c77e7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.867427] >fff00000c77e8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.867525] ^ [ 24.867624] fff00000c77e8080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.868871] fff00000c77e8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.868973] ==================================================================
[ 18.318549] ================================================================== [ 18.319770] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 18.320855] Write of size 8 at addr ffff8881022c3971 by task kunit_try_catch/193 [ 18.321482] [ 18.321797] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT(voluntary) [ 18.321926] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.321964] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.322008] Call Trace: [ 18.322049] <TASK> [ 18.322072] dump_stack_lvl+0x73/0xb0 [ 18.322110] print_report+0xd1/0x650 [ 18.322171] ? __virt_addr_valid+0x1db/0x2d0 [ 18.322255] ? kmalloc_oob_memset_8+0x166/0x330 [ 18.322327] ? kasan_complete_mode_report_info+0x2a/0x200 [ 18.322359] ? kmalloc_oob_memset_8+0x166/0x330 [ 18.322390] kasan_report+0x141/0x180 [ 18.322421] ? kmalloc_oob_memset_8+0x166/0x330 [ 18.322457] kasan_check_range+0x10c/0x1c0 [ 18.322490] __asan_memset+0x27/0x50 [ 18.322516] kmalloc_oob_memset_8+0x166/0x330 [ 18.322547] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 18.322579] ? __schedule+0x10cc/0x2b60 [ 18.322613] ? __pfx_read_tsc+0x10/0x10 [ 18.322642] ? ktime_get_ts64+0x86/0x230 [ 18.322675] kunit_try_run_case+0x1a5/0x480 [ 18.322705] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.322731] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.322792] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.322829] ? __kthread_parkme+0x82/0x180 [ 18.322858] ? preempt_count_sub+0x50/0x80 [ 18.322889] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.322917] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.322951] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.322985] kthread+0x337/0x6f0 [ 18.323011] ? trace_preempt_on+0x20/0xc0 [ 18.323606] ? __pfx_kthread+0x10/0x10 [ 18.323645] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.323679] ? calculate_sigpending+0x7b/0xa0 [ 18.323714] ? __pfx_kthread+0x10/0x10 [ 18.323759] ret_from_fork+0x116/0x1d0 [ 18.323803] ? __pfx_kthread+0x10/0x10 [ 18.323832] ret_from_fork_asm+0x1a/0x30 [ 18.323874] </TASK> [ 18.323888] [ 18.345645] Allocated by task 193: [ 18.345964] kasan_save_stack+0x45/0x70 [ 18.346625] kasan_save_track+0x18/0x40 [ 18.347466] kasan_save_alloc_info+0x3b/0x50 [ 18.347975] __kasan_kmalloc+0xb7/0xc0 [ 18.348296] __kmalloc_cache_noprof+0x189/0x420 [ 18.348835] kmalloc_oob_memset_8+0xac/0x330 [ 18.349254] kunit_try_run_case+0x1a5/0x480 [ 18.349910] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.350869] kthread+0x337/0x6f0 [ 18.351811] ret_from_fork+0x116/0x1d0 [ 18.352514] ret_from_fork_asm+0x1a/0x30 [ 18.353045] [ 18.353286] The buggy address belongs to the object at ffff8881022c3900 [ 18.353286] which belongs to the cache kmalloc-128 of size 128 [ 18.354311] The buggy address is located 113 bytes inside of [ 18.354311] allocated 120-byte region [ffff8881022c3900, ffff8881022c3978) [ 18.356676] [ 18.356840] The buggy address belongs to the physical page: [ 18.357722] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022c3 [ 18.358329] flags: 0x200000000000000(node=0|zone=2) [ 18.359005] page_type: f5(slab) [ 18.359500] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 18.360381] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.361209] page dumped because: kasan: bad access detected [ 18.361646] [ 18.362256] Memory state around the buggy address: [ 18.362583] ffff8881022c3800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.363358] ffff8881022c3880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.364532] >ffff8881022c3900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.365103] ^ [ 18.366207] ffff8881022c3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.366695] ffff8881022c3a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.367520] ==================================================================
[ 54.667785] ================================================================== [ 54.679168] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x1b0/0x35c [ 54.686462] Write of size 8 at addr cc78ec71 by task kunit_try_catch/228 [ 54.693206] [ 54.694702] CPU: 0 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B W N 6.15.0-next-20250530 #1 NONE [ 54.694732] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 54.694732] Hardware name: Generic DRA74X (Flattened Device Tree) [ 54.694763] Call trace: [ 54.694763] unwind_backtrace from show_stack+0x18/0x1c [ 54.694793] show_stack from dump_stack_lvl+0x70/0x90 [ 54.694793] dump_stack_lvl from print_report+0x158/0x528 [ 54.694824] print_report from kasan_report+0xdc/0x118 [ 54.694854] kasan_report from kasan_check_range+0x14c/0x198 [ 54.694885] kasan_check_range from __asan_memset+0x20/0x3c [ 54.694885] __asan_memset from kmalloc_oob_memset_8+0x1b0/0x35c [ 54.694915] kmalloc_oob_memset_8 from kunit_try_run_case+0x22c/0x5a8 [ 54.694946] kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 54.694976] kunit_generic_run_threadfn_adapter from kthread+0x464/0x810 [ 54.695007] kthread from ret_from_fork+0x14/0x20 [ 54.695007] Exception stack(0xf22a3fb0 to 0xf22a3ff8) [ 54.695037] 3fa0: 00000000 00000000 00000000 00000000 [ 54.695037] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 54.695068] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 54.695068] [ 54.812683] Allocated by task 228: [ 54.816131] kasan_save_track+0x30/0x5c [ 54.819976] __kasan_kmalloc+0x8c/0x94 [ 54.823760] kmalloc_oob_memset_8+0xcc/0x35c [ 54.828063] kunit_try_run_case+0x22c/0x5a8 [ 54.832275] kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 54.837829] kthread+0x464/0x810 [ 54.841064] ret_from_fork+0x14/0x20 [ 54.844696] [ 54.846191] The buggy address belongs to the object at cc78ec00 [ 54.846191] which belongs to the cache kmalloc-128 of size 128 [ 54.858093] The buggy address is located 113 bytes inside of [ 54.858093] allocated 120-byte region [cc78ec00, cc78ec78) [ 54.869354] [ 54.870880] The buggy address belongs to the physical page: [ 54.876464] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c78e [ 54.883758] flags: 0x0(zone=0) [ 54.886810] page_type: f5(slab) [ 54.889984] raw: 00000000 c7001400 00000122 00000000 00000000 80100010 f5000000 00000000 [ 54.898132] raw: 00000000 [ 54.900787] page dumped because: kasan: bad access detected [ 54.906372] [ 54.907897] Memory state around the buggy address: [ 54.912719] cc78eb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.919281] cc78eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.925842] >cc78ec00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 54.932403] ^ [ 54.938903] cc78ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.945465] cc78ed00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.952026] ==================================================================