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

Environment
e850-96
qemu-arm64
qemu-x86_64

[   24.947449] ==================================================================
[   24.956613] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0
[   24.963903] Write of size 128 at addr ffff000802408200 by task kunit_try_catch/217
[   24.971451] 
[   24.972938] CPU: 5 UID: 0 PID: 217 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   24.972992] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.973007] Hardware name: WinLink E850-96 board (DT)
[   24.973029] Call trace:
[   24.973041]  show_stack+0x20/0x38 (C)
[   24.973072]  dump_stack_lvl+0x8c/0xd0
[   24.973106]  print_report+0x118/0x608
[   24.973135]  kasan_report+0xdc/0x128
[   24.973164]  kasan_check_range+0x100/0x1a8
[   24.973196]  __asan_memset+0x34/0x78
[   24.973227]  kmalloc_oob_in_memset+0x144/0x2d0
[   24.973259]  kunit_try_run_case+0x170/0x3f0
[   24.973294]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.973334]  kthread+0x328/0x630
[   24.973368]  ret_from_fork+0x10/0x20
[   24.973402] 
[   25.038899] Allocated by task 217:
[   25.042287]  kasan_save_stack+0x3c/0x68
[   25.046103]  kasan_save_track+0x20/0x40
[   25.049924]  kasan_save_alloc_info+0x40/0x58
[   25.054176]  __kasan_kmalloc+0xd4/0xd8
[   25.057908]  __kmalloc_cache_noprof+0x16c/0x3c0
[   25.062422]  kmalloc_oob_in_memset+0xb0/0x2d0
[   25.066762]  kunit_try_run_case+0x170/0x3f0
[   25.070929]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.076397]  kthread+0x328/0x630
[   25.079609]  ret_from_fork+0x10/0x20
[   25.083168] 
[   25.084646] The buggy address belongs to the object at ffff000802408200
[   25.084646]  which belongs to the cache kmalloc-128 of size 128
[   25.097146] The buggy address is located 0 bytes inside of
[   25.097146]  allocated 120-byte region [ffff000802408200, ffff000802408278)
[   25.109557] 
[   25.111035] The buggy address belongs to the physical page:
[   25.116594] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x882408
[   25.124578] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   25.132216] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   25.139158] page_type: f5(slab)
[   25.142296] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   25.150014] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   25.157741] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000
[   25.165552] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000
[   25.173365] head: 0bfffe0000000001 fffffdffe0090201 00000000ffffffff 00000000ffffffff
[   25.181177] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
[   25.188983] page dumped because: kasan: bad access detected
[   25.194538] 
[   25.196014] Memory state around the buggy address:
[   25.200793]  ffff000802408100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   25.207997]  ffff000802408180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.215203] >ffff000802408200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   25.222402]                                                                 ^
[   25.229524]  ffff000802408280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.236728]  ffff000802408300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.243931] ==================================================================

[   17.909983] ==================================================================
[   17.910065] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0
[   17.910135] Write of size 128 at addr fff00000c3f75300 by task kunit_try_catch/173
[   17.910185] 
[   17.910223] CPU: 1 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   17.910308] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.910334] Hardware name: linux,dummy-virt (DT)
[   17.912446] Call trace:
[   17.912487]  show_stack+0x20/0x38 (C)
[   17.912550]  dump_stack_lvl+0x8c/0xd0
[   17.912601]  print_report+0x118/0x608
[   17.913645]  kasan_report+0xdc/0x128
[   17.915309]  kasan_check_range+0x100/0x1a8
[   17.915678]  __asan_memset+0x34/0x78
[   17.915735]  kmalloc_oob_in_memset+0x144/0x2d0
[   17.915787]  kunit_try_run_case+0x170/0x3f0
[   17.918762]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.919533]  kthread+0x328/0x630
[   17.920153]  ret_from_fork+0x10/0x20
[   17.923644] 
[   17.925472] Allocated by task 173:
[   17.925518]  kasan_save_stack+0x3c/0x68
[   17.926369]  kasan_save_track+0x20/0x40
[   17.926430]  kasan_save_alloc_info+0x40/0x58
[   17.926471]  __kasan_kmalloc+0xd4/0xd8
[   17.926508]  __kmalloc_cache_noprof+0x16c/0x3c0
[   17.926551]  kmalloc_oob_in_memset+0xb0/0x2d0
[   17.926592]  kunit_try_run_case+0x170/0x3f0
[   17.926632]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.926678]  kthread+0x328/0x630
[   17.926714]  ret_from_fork+0x10/0x20
[   17.928451] 
[   17.928477] The buggy address belongs to the object at fff00000c3f75300
[   17.928477]  which belongs to the cache kmalloc-128 of size 128
[   17.928539] The buggy address is located 0 bytes inside of
[   17.928539]  allocated 120-byte region [fff00000c3f75300, fff00000c3f75378)
[   17.928600] 
[   17.928621] The buggy address belongs to the physical page:
[   17.928656] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f75
[   17.928713] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.928765] page_type: f5(slab)
[   17.928808] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   17.928857] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   17.928896] page dumped because: kasan: bad access detected
[   17.928927] 
[   17.928945] Memory state around the buggy address:
[   17.928980]  fff00000c3f75200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   17.929025]  fff00000c3f75280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.929068] >fff00000c3f75300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   17.929104]                                                                 ^
[   17.929143]  fff00000c3f75380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.929183]  fff00000c3f75400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.930922] ==================================================================

[   16.567147] ==================================================================
[   16.567787] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320
[   16.568724] Write of size 128 at addr ffff888102b25d00 by task kunit_try_catch/191
[   16.569219] 
[   16.569781] CPU: 0 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   16.569884] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.569900] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.569927] Call Trace:
[   16.569946]  <TASK>
[   16.569973]  dump_stack_lvl+0x73/0xb0
[   16.570023]  print_report+0xd1/0x650
[   16.570050]  ? __virt_addr_valid+0x1db/0x2d0
[   16.570075]  ? kmalloc_oob_in_memset+0x15f/0x320
[   16.570115]  ? kasan_complete_mode_report_info+0x2a/0x200
[   16.570160]  ? kmalloc_oob_in_memset+0x15f/0x320
[   16.570188]  kasan_report+0x141/0x180
[   16.570214]  ? kmalloc_oob_in_memset+0x15f/0x320
[   16.570245]  kasan_check_range+0x10c/0x1c0
[   16.570268]  __asan_memset+0x27/0x50
[   16.570291]  kmalloc_oob_in_memset+0x15f/0x320
[   16.570317]  ? __pfx_kmalloc_oob_in_memset+0x10/0x10
[   16.570343]  ? __schedule+0x10cc/0x2b30
[   16.570368]  ? __pfx_read_tsc+0x10/0x10
[   16.570391]  ? ktime_get_ts64+0x86/0x230
[   16.570421]  kunit_try_run_case+0x1a5/0x480
[   16.570450]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.570475]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   16.570501]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.570527]  ? __kthread_parkme+0x82/0x180
[   16.570552]  ? preempt_count_sub+0x50/0x80
[   16.570581]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.570607]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.570632]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.570657]  kthread+0x337/0x6f0
[   16.570677]  ? trace_preempt_on+0x20/0xc0
[   16.570704]  ? __pfx_kthread+0x10/0x10
[   16.570724]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.570764]  ? calculate_sigpending+0x7b/0xa0
[   16.570795]  ? __pfx_kthread+0x10/0x10
[   16.570817]  ret_from_fork+0x41/0x80
[   16.570841]  ? __pfx_kthread+0x10/0x10
[   16.570861]  ret_from_fork_asm+0x1a/0x30
[   16.570897]  </TASK>
[   16.570911] 
[   16.581702] Allocated by task 191:
[   16.582081]  kasan_save_stack+0x45/0x70
[   16.582560]  kasan_save_track+0x18/0x40
[   16.582806]  kasan_save_alloc_info+0x3b/0x50
[   16.583237]  __kasan_kmalloc+0xb7/0xc0
[   16.583444]  __kmalloc_cache_noprof+0x189/0x420
[   16.583882]  kmalloc_oob_in_memset+0xac/0x320
[   16.584191]  kunit_try_run_case+0x1a5/0x480
[   16.584595]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.585029]  kthread+0x337/0x6f0
[   16.585392]  ret_from_fork+0x41/0x80
[   16.585728]  ret_from_fork_asm+0x1a/0x30
[   16.585982] 
[   16.586223] The buggy address belongs to the object at ffff888102b25d00
[   16.586223]  which belongs to the cache kmalloc-128 of size 128
[   16.586837] The buggy address is located 0 bytes inside of
[   16.586837]  allocated 120-byte region [ffff888102b25d00, ffff888102b25d78)
[   16.587697] 
[   16.587923] The buggy address belongs to the physical page:
[   16.588351] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b25
[   16.588775] flags: 0x200000000000000(node=0|zone=2)
[   16.589161] page_type: f5(slab)
[   16.589375] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   16.590035] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.590460] page dumped because: kasan: bad access detected
[   16.590936] 
[   16.591155] Memory state around the buggy address:
[   16.591514]  ffff888102b25c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.591986]  ffff888102b25c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.592305] >ffff888102b25d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.592873]                                                                 ^
[   16.593845]  ffff888102b25d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.594345]  ffff888102b25e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.594728] ==================================================================