Hay
Date
May 30, 2025, 4:14 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64
x15

[   28.965756] ==================================================================
[   28.976002] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0
[   28.983897] Read of size 64 at addr ffff000800cac284 by task kunit_try_catch/226
[   28.991274] 
[   28.992760] CPU: 6 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   28.992815] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.992833] Hardware name: WinLink E850-96 board (DT)
[   28.992852] Call trace:
[   28.992867]  show_stack+0x20/0x38 (C)
[   28.992903]  dump_stack_lvl+0x8c/0xd0
[   28.992939]  print_report+0x118/0x608
[   28.992975]  kasan_report+0xdc/0x128
[   28.993008]  kasan_check_range+0x100/0x1a8
[   28.993044]  __asan_memmove+0x3c/0x98
[   28.993069]  kmalloc_memmove_invalid_size+0x154/0x2e0
[   28.993102]  kunit_try_run_case+0x170/0x3f0
[   28.993137]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.993176]  kthread+0x328/0x630
[   28.993205]  ret_from_fork+0x10/0x20
[   28.993240] 
[   29.060285] Allocated by task 226:
[   29.063671]  kasan_save_stack+0x3c/0x68
[   29.067488]  kasan_save_track+0x20/0x40
[   29.071308]  kasan_save_alloc_info+0x40/0x58
[   29.075561]  __kasan_kmalloc+0xd4/0xd8
[   29.079294]  __kmalloc_cache_noprof+0x15c/0x3c0
[   29.083807]  kmalloc_memmove_invalid_size+0xb0/0x2e0
[   29.088756]  kunit_try_run_case+0x170/0x3f0
[   29.092922]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.098391]  kthread+0x328/0x630
[   29.101602]  ret_from_fork+0x10/0x20
[   29.105161] 
[   29.106640] The buggy address belongs to the object at ffff000800cac280
[   29.106640]  which belongs to the cache kmalloc-64 of size 64
[   29.118966] The buggy address is located 4 bytes inside of
[   29.118966]  allocated 64-byte region [ffff000800cac280, ffff000800cac2c0)
[   29.131289] 
[   29.132766] The buggy address belongs to the physical page:
[   29.138324] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880cac
[   29.146309] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.152817] page_type: f5(slab)
[   29.155955] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000
[   29.163674] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   29.171395] page dumped because: kasan: bad access detected
[   29.176950] 
[   29.178424] Memory state around the buggy address:
[   29.183204]  ffff000800cac180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   29.190407]  ffff000800cac200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   29.197613] >ffff000800cac280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   29.204812]                                            ^
[   29.210111]  ffff000800cac300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.217316]  ffff000800cac380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.224517] ==================================================================

[   24.984598] ==================================================================
[   24.984736] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0
[   24.984873] Read of size 64 at addr fff00000c77e7504 by task kunit_try_catch/183
[   24.984989] 
[   24.985078] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   24.985721] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.985815] Hardware name: linux,dummy-virt (DT)
[   24.985893] Call trace:
[   24.986454]  show_stack+0x20/0x38 (C)
[   24.986589]  dump_stack_lvl+0x8c/0xd0
[   24.986946]  print_report+0x118/0x608
[   24.987121]  kasan_report+0xdc/0x128
[   24.987521]  kasan_check_range+0x100/0x1a8
[   24.987767]  __asan_memmove+0x3c/0x98
[   24.987933]  kmalloc_memmove_invalid_size+0x154/0x2e0
[   24.988068]  kunit_try_run_case+0x170/0x3f0
[   24.988204]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.988559]  kthread+0x328/0x630
[   24.988723]  ret_from_fork+0x10/0x20
[   24.988852] 
[   24.988972] Allocated by task 183:
[   24.989043]  kasan_save_stack+0x3c/0x68
[   24.989144]  kasan_save_track+0x20/0x40
[   24.989237]  kasan_save_alloc_info+0x40/0x58
[   24.989383]  __kasan_kmalloc+0xd4/0xd8
[   24.989631]  __kmalloc_cache_noprof+0x15c/0x3c0
[   24.989764]  kmalloc_memmove_invalid_size+0xb0/0x2e0
[   24.989886]  kunit_try_run_case+0x170/0x3f0
[   24.990002]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.990383]  kthread+0x328/0x630
[   24.990489]  ret_from_fork+0x10/0x20
[   24.990595] 
[   24.990785] The buggy address belongs to the object at fff00000c77e7500
[   24.990785]  which belongs to the cache kmalloc-64 of size 64
[   24.990978] The buggy address is located 4 bytes inside of
[   24.990978]  allocated 64-byte region [fff00000c77e7500, fff00000c77e7540)
[   24.991274] 
[   24.991374] The buggy address belongs to the physical page:
[   24.991587] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077e7
[   24.991743] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   24.991866] page_type: f5(slab)
[   24.992398] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000
[   24.992531] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   24.992859] page dumped because: kasan: bad access detected
[   24.993296] 
[   24.993594] Memory state around the buggy address:
[   24.993760]  fff00000c77e7400: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc
[   24.994315]  fff00000c77e7480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   24.994663] >fff00000c77e7500: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   24.994779]                                            ^
[   24.994881]  fff00000c77e7580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.995034]  fff00000c77e7600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.995344] ==================================================================

[   18.483113] ==================================================================
[   18.485127] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330
[   18.486143] Read of size 64 at addr ffff8881022c8c04 by task kunit_try_catch/199
[   18.487515] 
[   18.487712] CPU: 1 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT(voluntary) 
[   18.487823] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.487863] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.487922] Call Trace:
[   18.488122]  <TASK>
[   18.488155]  dump_stack_lvl+0x73/0xb0
[   18.488239]  print_report+0xd1/0x650
[   18.488305]  ? __virt_addr_valid+0x1db/0x2d0
[   18.488341]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   18.488377]  ? kasan_complete_mode_report_info+0x2a/0x200
[   18.488409]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   18.488444]  kasan_report+0x141/0x180
[   18.488475]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   18.488515]  kasan_check_range+0x10c/0x1c0
[   18.488548]  __asan_memmove+0x27/0x70
[   18.488575]  kmalloc_memmove_invalid_size+0x16f/0x330
[   18.488610]  ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10
[   18.488646]  ? __schedule+0x10cc/0x2b60
[   18.488679]  ? __pfx_read_tsc+0x10/0x10
[   18.488709]  ? ktime_get_ts64+0x86/0x230
[   18.488761]  kunit_try_run_case+0x1a5/0x480
[   18.488803]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.488831]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   18.488866]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   18.488900]  ? __kthread_parkme+0x82/0x180
[   18.488928]  ? preempt_count_sub+0x50/0x80
[   18.488961]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.488989]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.489046]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.489084]  kthread+0x337/0x6f0
[   18.489112]  ? trace_preempt_on+0x20/0xc0
[   18.489145]  ? __pfx_kthread+0x10/0x10
[   18.489191]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.489265]  ? calculate_sigpending+0x7b/0xa0
[   18.489344]  ? __pfx_kthread+0x10/0x10
[   18.489420]  ret_from_fork+0x116/0x1d0
[   18.489486]  ? __pfx_kthread+0x10/0x10
[   18.489551]  ret_from_fork_asm+0x1a/0x30
[   18.489594]  </TASK>
[   18.489609] 
[   18.511443] Allocated by task 199:
[   18.512175]  kasan_save_stack+0x45/0x70
[   18.512995]  kasan_save_track+0x18/0x40
[   18.513681]  kasan_save_alloc_info+0x3b/0x50
[   18.514230]  __kasan_kmalloc+0xb7/0xc0
[   18.515031]  __kmalloc_cache_noprof+0x189/0x420
[   18.515389]  kmalloc_memmove_invalid_size+0xac/0x330
[   18.516331]  kunit_try_run_case+0x1a5/0x480
[   18.516670]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.517903]  kthread+0x337/0x6f0
[   18.518299]  ret_from_fork+0x116/0x1d0
[   18.518830]  ret_from_fork_asm+0x1a/0x30
[   18.519600] 
[   18.519808] The buggy address belongs to the object at ffff8881022c8c00
[   18.519808]  which belongs to the cache kmalloc-64 of size 64
[   18.521392] The buggy address is located 4 bytes inside of
[   18.521392]  allocated 64-byte region [ffff8881022c8c00, ffff8881022c8c40)
[   18.522562] 
[   18.522995] The buggy address belongs to the physical page:
[   18.523681] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022c8
[   18.524599] flags: 0x200000000000000(node=0|zone=2)
[   18.525213] page_type: f5(slab)
[   18.526123] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000
[   18.526737] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   18.527745] page dumped because: kasan: bad access detected
[   18.528444] 
[   18.528606] Memory state around the buggy address:
[   18.529906]  ffff8881022c8b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   18.530441]  ffff8881022c8b80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   18.531356] >ffff8881022c8c00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   18.532155]                                            ^
[   18.532977]  ffff8881022c8c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.533787]  ffff8881022c8d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.534654] ==================================================================

[   55.544464] ==================================================================
[   55.556640] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x1b4/0x360
[   55.564605] Read of size 64 at addr cc797104 by task kunit_try_catch/234
[   55.571380] 
[   55.572875] CPU: 0 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G    B   W        N  6.15.0-next-20250530 #1 NONE 
[   55.572906] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   55.572906] Hardware name: Generic DRA74X (Flattened Device Tree)
[   55.572937] Call trace: 
[   55.572937]  unwind_backtrace from show_stack+0x18/0x1c
[   55.572967]  show_stack from dump_stack_lvl+0x70/0x90
[   55.572967]  dump_stack_lvl from print_report+0x158/0x528
[   55.572998]  print_report from kasan_report+0xdc/0x118
[   55.573028]  kasan_report from kasan_check_range+0x14c/0x198
[   55.573059]  kasan_check_range from __asan_memmove+0x28/0x68
[   55.573059]  __asan_memmove from kmalloc_memmove_invalid_size+0x1b4/0x360
[   55.573089]  kmalloc_memmove_invalid_size from kunit_try_run_case+0x22c/0x5a8
[   55.573120]  kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128
[   55.573150]  kunit_generic_run_threadfn_adapter from kthread+0x464/0x810
[   55.573181]  kthread from ret_from_fork+0x14/0x20
[   55.573211] Exception stack(0xf22d3fb0 to 0xf22d3ff8)
[   55.573211] 3fa0:                                     00000000 00000000 00000000 00000000
[   55.573242] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   55.573242] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   55.573272] 
[   55.692443] Allocated by task 234:
[   55.695892]  kasan_save_track+0x30/0x5c
[   55.699737]  __kasan_kmalloc+0x8c/0x94
[   55.703521]  kmalloc_memmove_invalid_size+0xd0/0x360
[   55.708526]  kunit_try_run_case+0x22c/0x5a8
[   55.712738]  kunit_generic_run_threadfn_adapter+0xc4/0x128
[   55.718292]  kthread+0x464/0x810
[   55.721527]  ret_from_fork+0x14/0x20
[   55.725128] 
[   55.726654] The buggy address belongs to the object at cc797100
[   55.726654]  which belongs to the cache kmalloc-64 of size 64
[   55.738372] The buggy address is located 4 bytes inside of
[   55.738372]  allocated 64-byte region [cc797100, cc797140)
[   55.749389] 
[   55.750885] The buggy address belongs to the physical page:
[   55.756500] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c797
[   55.763763] flags: 0x0(zone=0)
[   55.766845] page_type: f5(slab)
[   55.770019] raw: 00000000 c7001300 00000122 00000000 00000000 80200020 f5000000 00000000
[   55.778167] raw: 00000000
[   55.780792] page dumped because: kasan: bad access detected
[   55.786407] 
[   55.787902] Memory state around the buggy address:
[   55.792724]  cc797000: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   55.799316]  cc797080: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   55.805877] >cc797100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   55.812438]                                    ^
[   55.817108]  cc797180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   55.823669]  cc797200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   55.830230] ==================================================================