Hay
Date
April 22, 2025, 11:09 a.m.

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

[   20.273196] ==================================================================
[   20.273367] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8
[   20.273578] Read of size 1 at addr fff00000c42a84d8 by task kunit_try_catch/259
[   20.273741] 
[   20.273874] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   20.274065] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.274135] Hardware name: linux,dummy-virt (DT)
[   20.274728] Call trace:
[   20.274814]  show_stack+0x20/0x38 (C)
[   20.274951]  dump_stack_lvl+0x8c/0xd0
[   20.275055]  print_report+0x118/0x608
[   20.275162]  kasan_report+0xdc/0x128
[   20.275266]  __asan_report_load1_noabort+0x20/0x30
[   20.275565]  memcmp+0x198/0x1d8
[   20.275664]  kasan_memcmp+0x16c/0x300
[   20.275764]  kunit_try_run_case+0x170/0x3f0
[   20.276363]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.276866]  kthread+0x328/0x630
[   20.277057]  ret_from_fork+0x10/0x20
[   20.277263] 
[   20.277310] Allocated by task 259:
[   20.277632]  kasan_save_stack+0x3c/0x68
[   20.277788]  kasan_save_track+0x20/0x40
[   20.277895]  kasan_save_alloc_info+0x40/0x58
[   20.278174]  __kasan_kmalloc+0xd4/0xd8
[   20.278500]  __kmalloc_cache_noprof+0x15c/0x3c0
[   20.278640]  kasan_memcmp+0xbc/0x300
[   20.278946]  kunit_try_run_case+0x170/0x3f0
[   20.279254]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.279426]  kthread+0x328/0x630
[   20.279499]  ret_from_fork+0x10/0x20
[   20.279593] 
[   20.279642] The buggy address belongs to the object at fff00000c42a84c0
[   20.279642]  which belongs to the cache kmalloc-32 of size 32
[   20.279765] The buggy address is located 0 bytes to the right of
[   20.279765]  allocated 24-byte region [fff00000c42a84c0, fff00000c42a84d8)
[   20.279933] 
[   20.280077] The buggy address belongs to the physical page:
[   20.280284] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1042a8
[   20.280405] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.280518] page_type: f5(slab)
[   20.280793] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   20.281040] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   20.281195] page dumped because: kasan: bad access detected
[   20.281306] 
[   20.281352] Memory state around the buggy address:
[   20.281431]  fff00000c42a8380: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   20.281576]  fff00000c42a8400: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc
[   20.281735] >fff00000c42a8480: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   20.281873]                                                     ^
[   20.282003]  fff00000c42a8500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.282147]  fff00000c42a8580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.282248] ==================================================================

[   21.052036] ==================================================================
[   21.053197] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0
[   21.053978] Read of size 1 at addr ffff888103c72698 by task kunit_try_catch/277
[   21.055153] 
[   21.055640] CPU: 0 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   21.055777] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.055838] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.055906] Call Trace:
[   21.055959]  <TASK>
[   21.056010]  dump_stack_lvl+0x73/0xb0
[   21.056086]  print_report+0xd1/0x650
[   21.056142]  ? __virt_addr_valid+0x1db/0x2d0
[   21.056180]  ? memcmp+0x1b4/0x1d0
[   21.056209]  ? kasan_complete_mode_report_info+0x2a/0x200
[   21.056245]  ? memcmp+0x1b4/0x1d0
[   21.056273]  kasan_report+0x141/0x180
[   21.056306]  ? memcmp+0x1b4/0x1d0
[   21.056341]  __asan_report_load1_noabort+0x18/0x20
[   21.056370]  memcmp+0x1b4/0x1d0
[   21.056401]  kasan_memcmp+0x18f/0x390
[   21.056530]  ? __pfx_kasan_memcmp+0x10/0x10
[   21.056598]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   21.056649]  ? __pfx_read_tsc+0x10/0x10
[   21.056680]  ? ktime_get_ts64+0x86/0x230
[   21.056718]  kunit_try_run_case+0x1a5/0x480
[   21.056754]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.056785]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   21.056819]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   21.056853]  ? __kthread_parkme+0x82/0x180
[   21.056885]  ? preempt_count_sub+0x50/0x80
[   21.056920]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.056953]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.056985]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   21.057017]  kthread+0x337/0x6f0
[   21.057045]  ? trace_preempt_on+0x20/0xc0
[   21.057079]  ? __pfx_kthread+0x10/0x10
[   21.057110]  ? _raw_spin_unlock_irq+0x47/0x80
[   21.057142]  ? calculate_sigpending+0x7b/0xa0
[   21.057173]  ? __pfx_kthread+0x10/0x10
[   21.057205]  ret_from_fork+0x41/0x80
[   21.057236]  ? __pfx_kthread+0x10/0x10
[   21.057269]  ret_from_fork_asm+0x1a/0x30
[   21.057312]  </TASK>
[   21.057327] 
[   21.077341] Allocated by task 277:
[   21.078269]  kasan_save_stack+0x45/0x70
[   21.078795]  kasan_save_track+0x18/0x40
[   21.079215]  kasan_save_alloc_info+0x3b/0x50
[   21.080091]  __kasan_kmalloc+0xb7/0xc0
[   21.080464]  __kmalloc_cache_noprof+0x189/0x420
[   21.081326]  kasan_memcmp+0xb7/0x390
[   21.082306]  kunit_try_run_case+0x1a5/0x480
[   21.082933]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.083991]  kthread+0x337/0x6f0
[   21.084291]  ret_from_fork+0x41/0x80
[   21.085600]  ret_from_fork_asm+0x1a/0x30
[   21.085942] 
[   21.086157] The buggy address belongs to the object at ffff888103c72680
[   21.086157]  which belongs to the cache kmalloc-32 of size 32
[   21.087931] The buggy address is located 0 bytes to the right of
[   21.087931]  allocated 24-byte region [ffff888103c72680, ffff888103c72698)
[   21.089066] 
[   21.089240] The buggy address belongs to the physical page:
[   21.090549] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103c72
[   21.091286] flags: 0x200000000000000(node=0|zone=2)
[   21.092060] page_type: f5(slab)
[   21.092332] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   21.093763] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   21.094476] page dumped because: kasan: bad access detected
[   21.095421] 
[   21.095708] Memory state around the buggy address:
[   21.096081]  ffff888103c72580: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   21.096688]  ffff888103c72600: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc
[   21.098278] >ffff888103c72680: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.099192]                             ^
[   21.099642]  ffff888103c72700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.100153]  ffff888103c72780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.100696] ==================================================================

[   21.781367] ==================================================================
[   21.782405] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8
[   21.782981] Read of size 1 at addr ffff00000257b298 by task kunit_try_catch/315
[   21.783648] 
[   21.783805] CPU: 3 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   21.783843] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.783854] Hardware name: Radxa ROCK Pi 4B (DT)
[   21.783868] Call trace:
[   21.783878]  show_stack+0x20/0x38 (C)
[   21.783904]  dump_stack_lvl+0x8c/0xd0
[   21.783928]  print_report+0x118/0x608
[   21.783952]  kasan_report+0xdc/0x128
[   21.783973]  __asan_report_load1_noabort+0x20/0x30
[   21.783999]  memcmp+0x198/0x1d8
[   21.784022]  kasan_memcmp+0x16c/0x300
[   21.784046]  kunit_try_run_case+0x170/0x3f0
[   21.784073]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.784102]  kthread+0x328/0x630
[   21.784128]  ret_from_fork+0x10/0x20
[   21.784153] 
[   21.789926] Allocated by task 315:
[   21.790244]  kasan_save_stack+0x3c/0x68
[   21.790608]  kasan_save_track+0x20/0x40
[   21.790969]  kasan_save_alloc_info+0x40/0x58
[   21.791372]  __kasan_kmalloc+0xd4/0xd8
[   21.791725]  __kmalloc_cache_noprof+0x15c/0x3c0
[   21.792153]  kasan_memcmp+0xbc/0x300
[   21.792497]  kunit_try_run_case+0x170/0x3f0
[   21.792892]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.793403]  kthread+0x328/0x630
[   21.793715]  ret_from_fork+0x10/0x20
[   21.794055] 
[   21.794202] The buggy address belongs to the object at ffff00000257b280
[   21.794202]  which belongs to the cache kmalloc-32 of size 32
[   21.795308] The buggy address is located 0 bytes to the right of
[   21.795308]  allocated 24-byte region [ffff00000257b280, ffff00000257b298)
[   21.796459] 
[   21.796607] The buggy address belongs to the physical page:
[   21.797115] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x257b
[   21.797829] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff)
[   21.798430] page_type: f5(slab)
[   21.798735] raw: 03fffe0000000000 ffff000000402780 dead000000000122 0000000000000000
[   21.799438] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   21.800136] page dumped because: kasan: bad access detected
[   21.800643] 
[   21.800790] Memory state around the buggy address:
[   21.801231]  ffff00000257b180: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   21.801885]  ffff00000257b200: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc
[   21.802541] >ffff00000257b280: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.803192]                             ^
[   21.803564]  ffff00000257b300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.804218]  ffff00000257b380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.804871] ==================================================================