Hay
Date
June 26, 2025, 9:10 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   40.102576] ==================================================================
[   40.114843] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0
[   40.122872] Read of size 64 at addr ffff000093903904 by task kunit_try_catch/268
[   40.130369] 
[   40.131898] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   40.131928] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.131936] Hardware name: Thundercomm Dragonboard 845c (DT)
[   40.131949] Call trace:
[   40.131956]  show_stack+0x20/0x38 (C)
[   40.131975]  dump_stack_lvl+0x8c/0xd0
[   40.131994]  print_report+0x118/0x608
[   40.132013]  kasan_report+0xdc/0x128
[   40.132032]  kasan_check_range+0x100/0x1a8
[   40.132051]  __asan_memmove+0x3c/0x98
[   40.132067]  kmalloc_memmove_invalid_size+0x154/0x2e0
[   40.132087]  kunit_try_run_case+0x170/0x3f0
[   40.132104]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.132125]  kthread+0x328/0x630
[   40.132139]  ret_from_fork+0x10/0x20
[   40.132156] 
[   40.201747] Allocated by task 268:
[   40.205204]  kasan_save_stack+0x3c/0x68
[   40.209113]  kasan_save_track+0x20/0x40
[   40.213022]  kasan_save_alloc_info+0x40/0x58
[   40.217359]  __kasan_kmalloc+0xd4/0xd8
[   40.221179]  __kmalloc_cache_noprof+0x16c/0x3c0
[   40.225789]  kmalloc_memmove_invalid_size+0xb0/0x2e0
[   40.230829]  kunit_try_run_case+0x170/0x3f0
[   40.235082]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.240659]  kthread+0x328/0x630
[   40.243953]  ret_from_fork+0x10/0x20
[   40.247592] 
[   40.249126] The buggy address belongs to the object at ffff000093903900
[   40.249126]  which belongs to the cache kmalloc-64 of size 64
[   40.261612] The buggy address is located 4 bytes inside of
[   40.261612]  allocated 64-byte region [ffff000093903900, ffff000093903940)
[   40.274101] 
[   40.275630] The buggy address belongs to the physical page:
[   40.281282] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x113903
[   40.289391] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   40.296014] page_type: f5(slab)
[   40.299221] raw: 0bfffe0000000000 ffff0000800028c0 dead000000000122 0000000000000000
[   40.307063] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   40.314900] page dumped because: kasan: bad access detected
[   40.320551] 
[   40.322081] Memory state around the buggy address:
[   40.326944]  ffff000093903800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   40.334265]  ffff000093903880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   40.341588] >ffff000093903900: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   40.348908]                                            ^
[   40.354299]  ffff000093903980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   40.361622]  ffff000093903a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   40.368942] ==================================================================

[   26.918604] ==================================================================
[   26.918659] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0
[   26.918710] Read of size 64 at addr fff00000c5753404 by task kunit_try_catch/194
[   26.918759] 
[   26.918788] CPU: 0 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT 
[   26.918881] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.918908] Hardware name: linux,dummy-virt (DT)
[   26.918979] Call trace:
[   26.919006]  show_stack+0x20/0x38 (C)
[   26.919066]  dump_stack_lvl+0x8c/0xd0
[   26.919113]  print_report+0x118/0x608
[   26.919159]  kasan_report+0xdc/0x128
[   26.919202]  kasan_check_range+0x100/0x1a8
[   26.919260]  __asan_memmove+0x3c/0x98
[   26.919302]  kmalloc_memmove_invalid_size+0x154/0x2e0
[   26.919352]  kunit_try_run_case+0x170/0x3f0
[   26.919397]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.919448]  kthread+0x328/0x630
[   26.919489]  ret_from_fork+0x10/0x20
[   26.919585] 
[   26.919604] Allocated by task 194:
[   26.919632]  kasan_save_stack+0x3c/0x68
[   26.919674]  kasan_save_track+0x20/0x40
[   26.919712]  kasan_save_alloc_info+0x40/0x58
[   26.919748]  __kasan_kmalloc+0xd4/0xd8
[   26.920392]  __kmalloc_cache_noprof+0x16c/0x3c0
[   26.920438]  kmalloc_memmove_invalid_size+0xb0/0x2e0
[   26.920545]  kunit_try_run_case+0x170/0x3f0
[   26.920587]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.920631]  kthread+0x328/0x630
[   26.920684]  ret_from_fork+0x10/0x20
[   26.920721] 
[   26.920739] The buggy address belongs to the object at fff00000c5753400
[   26.920739]  which belongs to the cache kmalloc-64 of size 64
[   26.920795] The buggy address is located 4 bytes inside of
[   26.920795]  allocated 64-byte region [fff00000c5753400, fff00000c5753440)
[   26.920855] 
[   26.920873] The buggy address belongs to the physical page:
[   26.920903] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105753
[   26.920953] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   26.920997] page_type: f5(slab)
[   26.921085] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000
[   26.921138] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   26.921175] page dumped because: kasan: bad access detected
[   26.921206] 
[   26.921225] Memory state around the buggy address:
[   26.921253]  fff00000c5753300: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc
[   26.921295]  fff00000c5753380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   26.921338] >fff00000c5753400: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   26.921375]                                            ^
[   26.921406]  fff00000c5753480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.921448]  fff00000c5753500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.921486] ==================================================================

[   22.333372] ==================================================================
[   22.333851] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330
[   22.334295] Read of size 64 at addr ffff8881024d1a84 by task kunit_try_catch/211
[   22.334724] 
[   22.334846] CPU: 0 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) 
[   22.334900] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.335208] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.335245] Call Trace:
[   22.335262]  <TASK>
[   22.335349]  dump_stack_lvl+0x73/0xb0
[   22.335402]  print_report+0xd1/0x650
[   22.335425]  ? __virt_addr_valid+0x1db/0x2d0
[   22.335450]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   22.335476]  ? kasan_complete_mode_report_info+0x2a/0x200
[   22.335501]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   22.335524]  kasan_report+0x141/0x180
[   22.335546]  ? kmalloc_memmove_invalid_size+0x16f/0x330
[   22.335573]  kasan_check_range+0x10c/0x1c0
[   22.335605]  __asan_memmove+0x27/0x70
[   22.335629]  kmalloc_memmove_invalid_size+0x16f/0x330
[   22.335662]  ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10
[   22.335687]  ? __schedule+0x10cc/0x2b60
[   22.335711]  ? __pfx_read_tsc+0x10/0x10
[   22.335733]  ? ktime_get_ts64+0x86/0x230
[   22.335758]  kunit_try_run_case+0x1a5/0x480
[   22.335784]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.335879]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.335922]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.335947]  ? __kthread_parkme+0x82/0x180
[   22.335968]  ? preempt_count_sub+0x50/0x80
[   22.335992]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.336015]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.336049]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.336073]  kthread+0x337/0x6f0
[   22.336092]  ? trace_preempt_on+0x20/0xc0
[   22.336116]  ? __pfx_kthread+0x10/0x10
[   22.336136]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.336158]  ? calculate_sigpending+0x7b/0xa0
[   22.336182]  ? __pfx_kthread+0x10/0x10
[   22.336203]  ret_from_fork+0x116/0x1d0
[   22.336231]  ? __pfx_kthread+0x10/0x10
[   22.336251]  ret_from_fork_asm+0x1a/0x30
[   22.336282]  </TASK>
[   22.336295] 
[   22.344661] Allocated by task 211:
[   22.345122]  kasan_save_stack+0x45/0x70
[   22.345463]  kasan_save_track+0x18/0x40
[   22.345592]  kasan_save_alloc_info+0x3b/0x50
[   22.345732]  __kasan_kmalloc+0xb7/0xc0
[   22.345855]  __kmalloc_cache_noprof+0x189/0x420
[   22.346272]  kmalloc_memmove_invalid_size+0xac/0x330
[   22.346506]  kunit_try_run_case+0x1a5/0x480
[   22.347004]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.347381]  kthread+0x337/0x6f0
[   22.347551]  ret_from_fork+0x116/0x1d0
[   22.347735]  ret_from_fork_asm+0x1a/0x30
[   22.348011] 
[   22.348115] The buggy address belongs to the object at ffff8881024d1a80
[   22.348115]  which belongs to the cache kmalloc-64 of size 64
[   22.348502] The buggy address is located 4 bytes inside of
[   22.348502]  allocated 64-byte region [ffff8881024d1a80, ffff8881024d1ac0)
[   22.349284] 
[   22.349362] The buggy address belongs to the physical page:
[   22.349546] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024d1
[   22.350460] flags: 0x200000000000000(node=0|zone=2)
[   22.350649] page_type: f5(slab)
[   22.350767] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000
[   22.351329] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   22.351661] page dumped because: kasan: bad access detected
[   22.351826] 
[   22.351889] Memory state around the buggy address:
[   22.352040]  ffff8881024d1980: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc
[   22.352528]  ffff8881024d1a00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   22.352887] >ffff8881024d1a80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   22.353136]                                            ^
[   22.353481]  ffff8881024d1b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.353825]  ffff8881024d1b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.354251] ==================================================================