Hay
Date
April 20, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64
rk3399-rock-pi-4b

[   26.337671] ==================================================================
[   26.337793] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8
[   26.337916] Read of size 1 at addr fff00000c761aa98 by task kunit_try_catch/259
[   26.338764] 
[   26.339040] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   26.339677] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.339988] Hardware name: linux,dummy-virt (DT)
[   26.340481] Call trace:
[   26.340662]  show_stack+0x20/0x38 (C)
[   26.341571]  dump_stack_lvl+0x8c/0xd0
[   26.341960]  print_report+0x118/0x608
[   26.342127]  kasan_report+0xdc/0x128
[   26.342268]  __asan_report_load1_noabort+0x20/0x30
[   26.342604]  memcmp+0x198/0x1d8
[   26.342828]  kasan_memcmp+0x16c/0x300
[   26.342979]  kunit_try_run_case+0x170/0x3f0
[   26.343129]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.343337]  kthread+0x328/0x630
[   26.343496]  ret_from_fork+0x10/0x20
[   26.343685] 
[   26.343900] Allocated by task 259:
[   26.344034]  kasan_save_stack+0x3c/0x68
[   26.344300]  kasan_save_track+0x20/0x40
[   26.344430]  kasan_save_alloc_info+0x40/0x58
[   26.344534]  __kasan_kmalloc+0xd4/0xd8
[   26.344804]  __kmalloc_cache_noprof+0x15c/0x3c0
[   26.344926]  kasan_memcmp+0xbc/0x300
[   26.345042]  kunit_try_run_case+0x170/0x3f0
[   26.345799]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.346025]  kthread+0x328/0x630
[   26.346160]  ret_from_fork+0x10/0x20
[   26.346267] 
[   26.346314] The buggy address belongs to the object at fff00000c761aa80
[   26.346314]  which belongs to the cache kmalloc-32 of size 32
[   26.346449] The buggy address is located 0 bytes to the right of
[   26.346449]  allocated 24-byte region [fff00000c761aa80, fff00000c761aa98)
[   26.346599] 
[   26.346644] The buggy address belongs to the physical page:
[   26.346718] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10761a
[   26.346841] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   26.346988] page_type: f5(slab)
[   26.347252] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   26.347442] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   26.347658] page dumped because: kasan: bad access detected
[   26.347887] 
[   26.347977] Memory state around the buggy address:
[   26.348061]  fff00000c761a980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   26.348181]  fff00000c761aa00: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc
[   26.348318] >fff00000c761aa80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.348445]                             ^
[   26.348558]  fff00000c761ab00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.348681]  fff00000c761ab80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.348821] ==================================================================

[   13.380663] ==================================================================
[   13.381964] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0
[   13.382196] Read of size 1 at addr ffff888102b4e2d8 by task kunit_try_catch/277
[   13.382430] 
[   13.382521] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   13.382570] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.382583] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.382605] Call Trace:
[   13.382618]  <TASK>
[   13.382636]  dump_stack_lvl+0x73/0xb0
[   13.382660]  print_report+0xd1/0x650
[   13.382687]  ? __virt_addr_valid+0x1db/0x2d0
[   13.382712]  ? memcmp+0x1b4/0x1d0
[   13.382731]  ? kasan_complete_mode_report_info+0x2a/0x200
[   13.382755]  ? memcmp+0x1b4/0x1d0
[   13.382775]  kasan_report+0x141/0x180
[   13.382799]  ? memcmp+0x1b4/0x1d0
[   13.382823]  __asan_report_load1_noabort+0x18/0x20
[   13.382845]  memcmp+0x1b4/0x1d0
[   13.382868]  kasan_memcmp+0x18f/0x390
[   13.382889]  ? trace_hardirqs_on+0x37/0xe0
[   13.382915]  ? __pfx_kasan_memcmp+0x10/0x10
[   13.382936]  ? finish_task_switch.isra.0+0x153/0x700
[   13.382960]  ? __switch_to+0x5d9/0xf60
[   13.382983]  ? dequeue_task_fair+0x166/0x4e0
[   13.383013]  ? __pfx_read_tsc+0x10/0x10
[   13.383034]  ? ktime_get_ts64+0x86/0x230
[   13.383062]  kunit_try_run_case+0x1a5/0x480
[   13.383090]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.383113]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.383140]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.383165]  ? __kthread_parkme+0x82/0x180
[   13.383187]  ? preempt_count_sub+0x50/0x80
[   13.383212]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.383237]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.383260]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.383283]  kthread+0x337/0x6f0
[   13.383305]  ? trace_preempt_on+0x20/0xc0
[   13.383621]  ? __pfx_kthread+0x10/0x10
[   13.383656]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.383680]  ? calculate_sigpending+0x7b/0xa0
[   13.383705]  ? __pfx_kthread+0x10/0x10
[   13.383925]  ret_from_fork+0x41/0x80
[   13.383960]  ? __pfx_kthread+0x10/0x10
[   13.383986]  ret_from_fork_asm+0x1a/0x30
[   13.384020]  </TASK>
[   13.384032] 
[   13.395333] Allocated by task 277:
[   13.395827]  kasan_save_stack+0x45/0x70
[   13.396034]  kasan_save_track+0x18/0x40
[   13.396303]  kasan_save_alloc_info+0x3b/0x50
[   13.396823]  __kasan_kmalloc+0xb7/0xc0
[   13.396993]  __kmalloc_cache_noprof+0x189/0x420
[   13.397240]  kasan_memcmp+0xb7/0x390
[   13.397556]  kunit_try_run_case+0x1a5/0x480
[   13.397714]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.397981]  kthread+0x337/0x6f0
[   13.398171]  ret_from_fork+0x41/0x80
[   13.398454]  ret_from_fork_asm+0x1a/0x30
[   13.398695] 
[   13.398784] The buggy address belongs to the object at ffff888102b4e2c0
[   13.398784]  which belongs to the cache kmalloc-32 of size 32
[   13.399820] The buggy address is located 0 bytes to the right of
[   13.399820]  allocated 24-byte region [ffff888102b4e2c0, ffff888102b4e2d8)
[   13.400729] 
[   13.400867] The buggy address belongs to the physical page:
[   13.401095] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b4e
[   13.401535] flags: 0x200000000000000(node=0|zone=2)
[   13.401842] page_type: f5(slab)
[   13.402025] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   13.402452] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   13.402801] page dumped because: kasan: bad access detected
[   13.403047] 
[   13.403120] Memory state around the buggy address:
[   13.403493]  ffff888102b4e180: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   13.403810]  ffff888102b4e200: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc
[   13.404111] >ffff888102b4e280: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   13.404440]                                                     ^
[   13.404920]  ffff888102b4e300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.405268]  ffff888102b4e380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.405982] ==================================================================

[   23.449322] ==================================================================
[   23.450369] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8
[   23.450956] Read of size 1 at addr ffff00000ee4dbd8 by task kunit_try_catch/311
[   23.451635] 
[   23.451801] CPU: 2 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   23.451853] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.451868] Hardware name: Radxa ROCK Pi 4B (DT)
[   23.451886] Call trace:
[   23.451899]  show_stack+0x20/0x38 (C)
[   23.451935]  dump_stack_lvl+0x8c/0xd0
[   23.451966]  print_report+0x118/0x608
[   23.451998]  kasan_report+0xdc/0x128
[   23.452027]  __asan_report_load1_noabort+0x20/0x30
[   23.452064]  memcmp+0x198/0x1d8
[   23.452095]  kasan_memcmp+0x16c/0x300
[   23.452129]  kunit_try_run_case+0x170/0x3f0
[   23.452166]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.452206]  kthread+0x328/0x630
[   23.452241]  ret_from_fork+0x10/0x20
[   23.452275] 
[   23.458092] Allocated by task 311:
[   23.458420]  kasan_save_stack+0x3c/0x68
[   23.458795]  kasan_save_track+0x20/0x40
[   23.459168]  kasan_save_alloc_info+0x40/0x58
[   23.459583]  __kasan_kmalloc+0xd4/0xd8
[   23.459947]  __kmalloc_cache_noprof+0x15c/0x3c0
[   23.460390]  kasan_memcmp+0xbc/0x300
[   23.460744]  kunit_try_run_case+0x170/0x3f0
[   23.461152]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.461679]  kthread+0x328/0x630
[   23.462004]  ret_from_fork+0x10/0x20
[   23.462356] 
[   23.462510] The buggy address belongs to the object at ffff00000ee4dbc0
[   23.462510]  which belongs to the cache kmalloc-32 of size 32
[   23.463630] The buggy address is located 0 bytes to the right of
[   23.463630]  allocated 24-byte region [ffff00000ee4dbc0, ffff00000ee4dbd8)
[   23.464798] 
[   23.464953] The buggy address belongs to the physical page:
[   23.465470] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xee4d
[   23.466197] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff)
[   23.466811] page_type: f5(slab)
[   23.467127] raw: 03fffe0000000000 ffff000000402780 dead000000000122 0000000000000000
[   23.467844] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   23.468553] page dumped because: kasan: bad access detected
[   23.469071] 
[   23.469225] Memory state around the buggy address:
[   23.469675]  ffff00000ee4da80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   23.470345]  ffff00000ee4db00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   23.471012] >ffff00000ee4db80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   23.471675]                                                     ^
[   23.472241]  ffff00000ee4dc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.472909]  ffff00000ee4dc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.473572] ==================================================================