Hay
Date
June 2, 2025, 2:11 p.m.

Environment
e850-96
qemu-x86_64

[   37.755338] ==================================================================
[   37.765537] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8
[   37.771522] Read of size 1 at addr ffff0008064dea98 by task kunit_try_catch/304
[   37.778813] 
[   37.780301] CPU: 4 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   37.780357] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.780376] Hardware name: WinLink E850-96 board (DT)
[   37.780399] Call trace:
[   37.780414]  show_stack+0x20/0x38 (C)
[   37.780450]  dump_stack_lvl+0x8c/0xd0
[   37.780488]  print_report+0x118/0x608
[   37.780524]  kasan_report+0xdc/0x128
[   37.780553]  __asan_report_load1_noabort+0x20/0x30
[   37.780591]  memcmp+0x198/0x1d8
[   37.780618]  kasan_memcmp+0x16c/0x300
[   37.780651]  kunit_try_run_case+0x170/0x3f0
[   37.780690]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.780731]  kthread+0x328/0x630
[   37.780764]  ret_from_fork+0x10/0x20
[   37.780802] 
[   37.845741] Allocated by task 304:
[   37.849129]  kasan_save_stack+0x3c/0x68
[   37.852944]  kasan_save_track+0x20/0x40
[   37.856764]  kasan_save_alloc_info+0x40/0x58
[   37.861017]  __kasan_kmalloc+0xd4/0xd8
[   37.864750]  __kmalloc_cache_noprof+0x16c/0x3c0
[   37.869263]  kasan_memcmp+0xbc/0x300
[   37.872823]  kunit_try_run_case+0x170/0x3f0
[   37.876989]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.882459]  kthread+0x328/0x630
[   37.885670]  ret_from_fork+0x10/0x20
[   37.889228] 
[   37.890706] The buggy address belongs to the object at ffff0008064dea80
[   37.890706]  which belongs to the cache kmalloc-32 of size 32
[   37.903033] The buggy address is located 0 bytes to the right of
[   37.903033]  allocated 24-byte region [ffff0008064dea80, ffff0008064dea98)
[   37.915877] 
[   37.917357] The buggy address belongs to the physical page:
[   37.922913] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8864de
[   37.930898] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   37.937407] page_type: f5(slab)
[   37.940545] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000
[   37.948262] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   37.955981] page dumped because: kasan: bad access detected
[   37.961536] 
[   37.963013] Memory state around the buggy address:
[   37.967795]  ffff0008064de980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   37.974996]  ffff0008064dea00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   37.982199] >ffff0008064dea80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
[   37.989401]                             ^
[   37.993397]  ffff0008064deb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   38.000602]  ffff0008064deb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   38.007804] ==================================================================

[   18.929026] ==================================================================
[   18.929642] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0
[   18.930204] Read of size 1 at addr ffff888101e06418 by task kunit_try_catch/278
[   18.930761] 
[   18.931878] CPU: 1 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   18.932037] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.932071] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.932118] Call Trace:
[   18.932146]  <TASK>
[   18.932175]  dump_stack_lvl+0x73/0xb0
[   18.932268]  print_report+0xd1/0x650
[   18.932319]  ? __virt_addr_valid+0x1db/0x2d0
[   18.932361]  ? memcmp+0x1b4/0x1d0
[   18.932383]  ? kasan_complete_mode_report_info+0x2a/0x200
[   18.932409]  ? memcmp+0x1b4/0x1d0
[   18.932429]  kasan_report+0x141/0x180
[   18.932454]  ? memcmp+0x1b4/0x1d0
[   18.932479]  __asan_report_load1_noabort+0x18/0x20
[   18.932503]  memcmp+0x1b4/0x1d0
[   18.932525]  kasan_memcmp+0x18f/0x390
[   18.932548]  ? trace_hardirqs_on+0x37/0xe0
[   18.932576]  ? __pfx_kasan_memcmp+0x10/0x10
[   18.932598]  ? finish_task_switch.isra.0+0x153/0x700
[   18.932626]  ? __switch_to+0x5d9/0xf60
[   18.932649]  ? dequeue_task_fair+0x166/0x4e0
[   18.932679]  ? __pfx_read_tsc+0x10/0x10
[   18.932702]  ? ktime_get_ts64+0x86/0x230
[   18.932731]  kunit_try_run_case+0x1a5/0x480
[   18.932799]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.932828]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   18.932855]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   18.932881]  ? __kthread_parkme+0x82/0x180
[   18.932906]  ? preempt_count_sub+0x50/0x80
[   18.932933]  ? __pfx_kunit_try_run_case+0x10/0x10
[   18.932957]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.932982]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   18.933007]  kthread+0x337/0x6f0
[   18.933026]  ? trace_preempt_on+0x20/0xc0
[   18.933051]  ? __pfx_kthread+0x10/0x10
[   18.933070]  ? _raw_spin_unlock_irq+0x47/0x80
[   18.933093]  ? calculate_sigpending+0x7b/0xa0
[   18.933145]  ? __pfx_kthread+0x10/0x10
[   18.933167]  ret_from_fork+0x41/0x80
[   18.933199]  ? __pfx_kthread+0x10/0x10
[   18.933250]  ret_from_fork_asm+0x1a/0x30
[   18.933304]  </TASK>
[   18.933327] 
[   18.947191] Allocated by task 278:
[   18.947598]  kasan_save_stack+0x45/0x70
[   18.948957]  kasan_save_track+0x18/0x40
[   18.949655]  kasan_save_alloc_info+0x3b/0x50
[   18.950072]  __kasan_kmalloc+0xb7/0xc0
[   18.950617]  __kmalloc_cache_noprof+0x189/0x420
[   18.951049]  kasan_memcmp+0xb7/0x390
[   18.951533]  kunit_try_run_case+0x1a5/0x480
[   18.951948]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.953046]  kthread+0x337/0x6f0
[   18.953375]  ret_from_fork+0x41/0x80
[   18.954004]  ret_from_fork_asm+0x1a/0x30
[   18.954600] 
[   18.954818] The buggy address belongs to the object at ffff888101e06400
[   18.954818]  which belongs to the cache kmalloc-32 of size 32
[   18.955693] The buggy address is located 0 bytes to the right of
[   18.955693]  allocated 24-byte region [ffff888101e06400, ffff888101e06418)
[   18.956734] 
[   18.956865] The buggy address belongs to the physical page:
[   18.957073] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101e06
[   18.958267] flags: 0x200000000000000(node=0|zone=2)
[   18.958503] page_type: f5(slab)
[   18.958812] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   18.959444] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   18.959776] page dumped because: kasan: bad access detected
[   18.960011] 
[   18.960170] Memory state around the buggy address:
[   18.960682]  ffff888101e06300: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   18.962197]  ffff888101e06380: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc
[   18.962744] >ffff888101e06400: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.963114]                             ^
[   18.963488]  ffff888101e06480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.964844]  ffff888101e06500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.965266] ==================================================================