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

Environment
e850-96
qemu-arm64
qemu-x86_64

[   45.611029] ==================================================================
[   45.620863] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0
[   45.628410] Read of size 18446744073709551614 at addr ffff00080696ef84 by task kunit_try_catch/261
[   45.637351] 
[   45.638837] CPU: 2 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   45.638891] Tainted: [B]=BAD_PAGE, [N]=TEST
[   45.638909] Hardware name: WinLink E850-96 board (DT)
[   45.638930] Call trace:
[   45.638942]  show_stack+0x20/0x38 (C)
[   45.638977]  dump_stack_lvl+0x8c/0xd0
[   45.639016]  print_report+0x118/0x5d0
[   45.639048]  kasan_report+0xdc/0x128
[   45.639075]  kasan_check_range+0x100/0x1a8
[   45.639105]  __asan_memmove+0x3c/0x98
[   45.639135]  kmalloc_memmove_negative_size+0x154/0x2e0
[   45.639169]  kunit_try_run_case+0x170/0x3f0
[   45.639200]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.639234]  kthread+0x328/0x630
[   45.639261]  ret_from_fork+0x10/0x20
[   45.639296] 
[   45.706795] Allocated by task 261:
[   45.710183]  kasan_save_stack+0x3c/0x68
[   45.713998]  kasan_save_track+0x20/0x40
[   45.717818]  kasan_save_alloc_info+0x40/0x58
[   45.722071]  __kasan_kmalloc+0xd4/0xd8
[   45.725804]  __kmalloc_cache_noprof+0x16c/0x3c0
[   45.730317]  kmalloc_memmove_negative_size+0xb0/0x2e0
[   45.735352]  kunit_try_run_case+0x170/0x3f0
[   45.739521]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.744988]  kthread+0x328/0x630
[   45.748199]  ret_from_fork+0x10/0x20
[   45.751758] 
[   45.753237] The buggy address belongs to the object at ffff00080696ef80
[   45.753237]  which belongs to the cache kmalloc-64 of size 64
[   45.765563] The buggy address is located 4 bytes inside of
[   45.765563]  64-byte region [ffff00080696ef80, ffff00080696efc0)
[   45.777018] 
[   45.778497] The buggy address belongs to the physical page:
[   45.784054] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88696e
[   45.792038] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   45.798547] page_type: f5(slab)
[   45.801683] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000
[   45.809403] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   45.817123] page dumped because: kasan: bad access detected
[   45.822677] 
[   45.824153] Memory state around the buggy address:
[   45.828934]  ffff00080696ee80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   45.836137]  ffff00080696ef00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   45.843341] >ffff00080696ef80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   45.850541]                    ^
[   45.853759]  ffff00080696f000: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   45.860962]  ffff00080696f080: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   45.868164] ==================================================================

[   30.659137] ==================================================================
[   30.659218] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0
[   30.659313] Read of size 18446744073709551614 at addr fff00000c6503204 by task kunit_try_catch/212
[   30.659395] 
[   30.659472] CPU: 0 UID: 0 PID: 212 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   30.659578] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.659604] Hardware name: linux,dummy-virt (DT)
[   30.659636] Call trace:
[   30.659676]  show_stack+0x20/0x38 (C)
[   30.659820]  dump_stack_lvl+0x8c/0xd0
[   30.659873]  print_report+0x118/0x5d0
[   30.659917]  kasan_report+0xdc/0x128
[   30.660160]  kasan_check_range+0x100/0x1a8
[   30.660234]  __asan_memmove+0x3c/0x98
[   30.660478]  kmalloc_memmove_negative_size+0x154/0x2e0
[   30.660653]  kunit_try_run_case+0x170/0x3f0
[   30.660733]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.660878]  kthread+0x328/0x630
[   30.661061]  ret_from_fork+0x10/0x20
[   30.661129] 
[   30.661167] Allocated by task 212:
[   30.661215]  kasan_save_stack+0x3c/0x68
[   30.661258]  kasan_save_track+0x20/0x40
[   30.661317]  kasan_save_alloc_info+0x40/0x58
[   30.661361]  __kasan_kmalloc+0xd4/0xd8
[   30.661418]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.661477]  kmalloc_memmove_negative_size+0xb0/0x2e0
[   30.661544]  kunit_try_run_case+0x170/0x3f0
[   30.661600]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.661728]  kthread+0x328/0x630
[   30.661836]  ret_from_fork+0x10/0x20
[   30.661884] 
[   30.661906] The buggy address belongs to the object at fff00000c6503200
[   30.661906]  which belongs to the cache kmalloc-64 of size 64
[   30.661991] The buggy address is located 4 bytes inside of
[   30.661991]  64-byte region [fff00000c6503200, fff00000c6503240)
[   30.662390] 
[   30.662418] The buggy address belongs to the physical page:
[   30.662611] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106503
[   30.662839] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.662980] page_type: f5(slab)
[   30.663047] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000
[   30.663145] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   30.663264] page dumped because: kasan: bad access detected
[   30.663354] 
[   30.663425] Memory state around the buggy address:
[   30.663516]  fff00000c6503100: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc
[   30.663613]  fff00000c6503180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   30.663693] >fff00000c6503200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   30.663780]                    ^
[   30.663860]  fff00000c6503280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.663946]  fff00000c6503300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.664001] ==================================================================

[   24.230845] ==================================================================
[   24.232340] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330
[   24.233128] Read of size 18446744073709551614 at addr ffff888105911184 by task kunit_try_catch/228
[   24.233468] 
[   24.233710] CPU: 0 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) 
[   24.233769] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.233784] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.233808] Call Trace:
[   24.233824]  <TASK>
[   24.233842]  dump_stack_lvl+0x73/0xb0
[   24.233879]  print_report+0xd1/0x610
[   24.233906]  ? __virt_addr_valid+0x1db/0x2d0
[   24.233938]  ? kmalloc_memmove_negative_size+0x171/0x330
[   24.233966]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.233997]  ? kmalloc_memmove_negative_size+0x171/0x330
[   24.234050]  kasan_report+0x141/0x180
[   24.234081]  ? kmalloc_memmove_negative_size+0x171/0x330
[   24.234120]  kasan_check_range+0x10c/0x1c0
[   24.234150]  __asan_memmove+0x27/0x70
[   24.234180]  kmalloc_memmove_negative_size+0x171/0x330
[   24.234209]  ? __pfx_kmalloc_memmove_negative_size+0x10/0x10
[   24.234239]  ? __schedule+0x10cc/0x2b60
[   24.234268]  ? __pfx_read_tsc+0x10/0x10
[   24.234296]  ? ktime_get_ts64+0x86/0x230
[   24.234330]  kunit_try_run_case+0x1a5/0x480
[   24.234363]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.234390]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.234418]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.234446]  ? __kthread_parkme+0x82/0x180
[   24.234482]  ? preempt_count_sub+0x50/0x80
[   24.234513]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.234554]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.234715]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.234746]  kthread+0x337/0x6f0
[   24.234771]  ? trace_preempt_on+0x20/0xc0
[   24.234801]  ? __pfx_kthread+0x10/0x10
[   24.234826]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.234856]  ? calculate_sigpending+0x7b/0xa0
[   24.234885]  ? __pfx_kthread+0x10/0x10
[   24.234911]  ret_from_fork+0x116/0x1d0
[   24.234935]  ? __pfx_kthread+0x10/0x10
[   24.234960]  ret_from_fork_asm+0x1a/0x30
[   24.235002]  </TASK>
[   24.235014] 
[   24.246879] Allocated by task 228:
[   24.247199]  kasan_save_stack+0x45/0x70
[   24.247619]  kasan_save_track+0x18/0x40
[   24.247913]  kasan_save_alloc_info+0x3b/0x50
[   24.248068]  __kasan_kmalloc+0xb7/0xc0
[   24.248202]  __kmalloc_cache_noprof+0x189/0x420
[   24.248359]  kmalloc_memmove_negative_size+0xac/0x330
[   24.248540]  kunit_try_run_case+0x1a5/0x480
[   24.248848]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.249350]  kthread+0x337/0x6f0
[   24.249738]  ret_from_fork+0x116/0x1d0
[   24.250157]  ret_from_fork_asm+0x1a/0x30
[   24.250600] 
[   24.250780] The buggy address belongs to the object at ffff888105911180
[   24.250780]  which belongs to the cache kmalloc-64 of size 64
[   24.251957] The buggy address is located 4 bytes inside of
[   24.251957]  64-byte region [ffff888105911180, ffff8881059111c0)
[   24.253014] 
[   24.253202] The buggy address belongs to the physical page:
[   24.253475] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105911
[   24.254101] flags: 0x200000000000000(node=0|zone=2)
[   24.254436] page_type: f5(slab)
[   24.254627] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000
[   24.255361] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   24.255940] page dumped because: kasan: bad access detected
[   24.256431] 
[   24.256503] Memory state around the buggy address:
[   24.256938]  ffff888105911080: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc
[   24.257558]  ffff888105911100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
[   24.258194] >ffff888105911180: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[   24.258413]                    ^
[   24.258548]  ffff888105911200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.259310]  ffff888105911280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.259995] ==================================================================