Hay
Date
July 15, 2025, 11:35 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   45.877147] ==================================================================
[   45.887439] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0
[   45.895336] Read of size 64 at addr ffff000805d6fd84 by task kunit_try_catch/263
[   45.902714] 
[   45.904198] CPU: 0 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   45.904252] Tainted: [B]=BAD_PAGE, [N]=TEST
[   45.904269] Hardware name: WinLink E850-96 board (DT)
[   45.904291] Call trace:
[   45.904304]  show_stack+0x20/0x38 (C)
[   45.904336]  dump_stack_lvl+0x8c/0xd0
[   45.904373]  print_report+0x118/0x5d0
[   45.904400]  kasan_report+0xdc/0x128
[   45.904426]  kasan_check_range+0x100/0x1a8
[   45.904456]  __asan_memmove+0x3c/0x98
[   45.904485]  kmalloc_memmove_invalid_size+0x154/0x2e0
[   45.904523]  kunit_try_run_case+0x170/0x3f0
[   45.904555]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.904591]  kthread+0x328/0x630
[   45.904620]  ret_from_fork+0x10/0x20
[   45.904656] 
[   45.972068] Allocated by task 263:
[   45.975456]  kasan_save_stack+0x3c/0x68
[   45.979272]  kasan_save_track+0x20/0x40
[   45.983091]  kasan_save_alloc_info+0x40/0x58
[   45.987345]  __kasan_kmalloc+0xd4/0xd8
[   45.991078]  __kmalloc_cache_noprof+0x16c/0x3c0
[   45.995591]  kmalloc_memmove_invalid_size+0xb0/0x2e0
[   46.000539]  kunit_try_run_case+0x170/0x3f0
[   46.004706]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   46.010175]  kthread+0x328/0x630
[   46.013386]  ret_from_fork+0x10/0x20
[   46.016945] 
[   46.018423] The buggy address belongs to the object at ffff000805d6fd80
[   46.018423]  which belongs to the cache kmalloc-64 of size 64
[   46.030750] The buggy address is located 4 bytes inside of
[   46.030750]  allocated 64-byte region [ffff000805d6fd80, ffff000805d6fdc0)
[   46.043073] 
[   46.044553] The buggy address belongs to the physical page:
[   46.050109] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x885d6f
[   46.058094] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   46.064602] page_type: f5(slab)
[   46.067738] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000
[   46.075458] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   46.083178] page dumped because: kasan: bad access detected
[   46.088732] 
[   46.090208] Memory state around the buggy address:
[   46.094991]  ffff000805d6fc80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   46.102192]  ffff000805d6fd00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   46.109396] >ffff000805d6fd80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   46.116596]                                            ^
[   46.121897]  ffff000805d6fe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   46.129100]  ffff000805d6fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   46.136302] ==================================================================

[   30.670706] ==================================================================
[   30.670954] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0
[   30.671016] Read of size 64 at addr fff00000c6503404 by task kunit_try_catch/214
[   30.671073] 
[   30.671102] CPU: 0 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   30.671206] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.671235] Hardware name: linux,dummy-virt (DT)
[   30.671267] Call trace:
[   30.671288]  show_stack+0x20/0x38 (C)
[   30.671335]  dump_stack_lvl+0x8c/0xd0
[   30.671384]  print_report+0x118/0x5d0
[   30.671430]  kasan_report+0xdc/0x128
[   30.671730]  kasan_check_range+0x100/0x1a8
[   30.671815]  __asan_memmove+0x3c/0x98
[   30.671938]  kmalloc_memmove_invalid_size+0x154/0x2e0
[   30.671994]  kunit_try_run_case+0x170/0x3f0
[   30.672042]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.672098]  kthread+0x328/0x630
[   30.672141]  ret_from_fork+0x10/0x20
[   30.672296] 
[   30.672374] Allocated by task 214:
[   30.672406]  kasan_save_stack+0x3c/0x68
[   30.672462]  kasan_save_track+0x20/0x40
[   30.672740]  kasan_save_alloc_info+0x40/0x58
[   30.672827]  __kasan_kmalloc+0xd4/0xd8
[   30.672870]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.672936]  kmalloc_memmove_invalid_size+0xb0/0x2e0
[   30.672983]  kunit_try_run_case+0x170/0x3f0
[   30.673021]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.673096]  kthread+0x328/0x630
[   30.673150]  ret_from_fork+0x10/0x20
[   30.673212] 
[   30.673251] The buggy address belongs to the object at fff00000c6503400
[   30.673251]  which belongs to the cache kmalloc-64 of size 64
[   30.673322] The buggy address is located 4 bytes inside of
[   30.673322]  allocated 64-byte region [fff00000c6503400, fff00000c6503440)
[   30.673457] 
[   30.673478] The buggy address belongs to the physical page:
[   30.673513] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106503
[   30.673682] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.673797] page_type: f5(slab)
[   30.673890] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000
[   30.673990] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   30.674085] page dumped because: kasan: bad access detected
[   30.674180] 
[   30.674259] Memory state around the buggy address:
[   30.674354]  fff00000c6503300: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc
[   30.674460]  fff00000c6503380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   30.674503] >fff00000c6503400: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   30.674541]                                            ^
[   30.674594]  fff00000c6503480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.674637]  fff00000c6503500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.674675] ==================================================================

[   24.263374] ==================================================================
[   24.264279] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330
[   24.264558] Read of size 64 at addr ffff888105911204 by task kunit_try_catch/230
[   24.265471] 
[   24.265795] CPU: 0 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) 
[   24.265853] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.265867] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.265890] Call Trace:
[   24.265904]  <TASK>
[   24.265922]  dump_stack_lvl+0x73/0xb0
[   24.265957]  print_report+0xd1/0x610
[   24.265985]  ? __virt_addr_valid+0x1db/0x2d0
[   24.266013]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   24.266041]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.266071]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   24.266100]  kasan_report+0x141/0x180
[   24.266127]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   24.266162]  kasan_check_range+0x10c/0x1c0
[   24.266190]  __asan_memmove+0x27/0x70
[   24.266219]  kmalloc_memmove_invalid_size+0x16f/0x330
[   24.266248]  ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10
[   24.266278]  ? __schedule+0x10cc/0x2b60
[   24.266304]  ? __pfx_read_tsc+0x10/0x10
[   24.266330]  ? ktime_get_ts64+0x86/0x230
[   24.266361]  kunit_try_run_case+0x1a5/0x480
[   24.266389]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.266414]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.266440]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.266475]  ? __kthread_parkme+0x82/0x180
[   24.266500]  ? preempt_count_sub+0x50/0x80
[   24.266734]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.266770]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.266803]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.266834]  kthread+0x337/0x6f0
[   24.266858]  ? trace_preempt_on+0x20/0xc0
[   24.266887]  ? __pfx_kthread+0x10/0x10
[   24.266912]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.266941]  ? calculate_sigpending+0x7b/0xa0
[   24.266970]  ? __pfx_kthread+0x10/0x10
[   24.266997]  ret_from_fork+0x116/0x1d0
[   24.267020]  ? __pfx_kthread+0x10/0x10
[   24.267046]  ret_from_fork_asm+0x1a/0x30
[   24.267085]  </TASK>
[   24.267097] 
[   24.276870] Allocated by task 230:
[   24.277462]  kasan_save_stack+0x45/0x70
[   24.277935]  kasan_save_track+0x18/0x40
[   24.278119]  kasan_save_alloc_info+0x3b/0x50
[   24.278318]  __kasan_kmalloc+0xb7/0xc0
[   24.278493]  __kmalloc_cache_noprof+0x189/0x420
[   24.279259]  kmalloc_memmove_invalid_size+0xac/0x330
[   24.279570]  kunit_try_run_case+0x1a5/0x480
[   24.279920]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.280163]  kthread+0x337/0x6f0
[   24.280321]  ret_from_fork+0x116/0x1d0
[   24.280486]  ret_from_fork_asm+0x1a/0x30
[   24.280761] 
[   24.280849] The buggy address belongs to the object at ffff888105911200
[   24.280849]  which belongs to the cache kmalloc-64 of size 64
[   24.281324] The buggy address is located 4 bytes inside of
[   24.281324]  allocated 64-byte region [ffff888105911200, ffff888105911240)
[   24.282417] 
[   24.282675] The buggy address belongs to the physical page:
[   24.283240] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105911
[   24.284254] flags: 0x200000000000000(node=0|zone=2)
[   24.284483] page_type: f5(slab)
[   24.284680] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000
[   24.284977] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   24.285282] page dumped because: kasan: bad access detected
[   24.285499] 
[   24.285676] Memory state around the buggy address:
[   24.285841]  ffff888105911100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   24.286168]  ffff888105911180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   24.286416] >ffff888105911200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   24.286898]                                            ^
[   24.287560]  ffff888105911280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.288110]  ffff888105911300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.288372] ==================================================================