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

Environment
e850-96
qemu-arm64
qemu-x86_64

[   18.023287] ==================================================================
[   18.032504] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   18.039872] Read of size 1 at addr ffff000806541000 by task kunit_try_catch/187
[   18.047164] 
[   18.048650] CPU: 7 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   18.048703] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.048717] Hardware name: WinLink E850-96 board (DT)
[   18.048738] Call trace:
[   18.048752]  show_stack+0x20/0x38 (C)
[   18.048788]  dump_stack_lvl+0x8c/0xd0
[   18.048823]  print_report+0x118/0x608
[   18.048854]  kasan_report+0xdc/0x128
[   18.048883]  __asan_report_load1_noabort+0x20/0x30
[   18.048917]  kmalloc_node_oob_right+0x2f4/0x330
[   18.048955]  kunit_try_run_case+0x170/0x3f0
[   18.048991]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.049029]  kthread+0x328/0x630
[   18.049065]  ret_from_fork+0x10/0x20
[   18.049099] 
[   18.111832] Allocated by task 187:
[   18.115220]  kasan_save_stack+0x3c/0x68
[   18.119038]  kasan_save_track+0x20/0x40
[   18.122856]  kasan_save_alloc_info+0x40/0x58
[   18.127109]  __kasan_kmalloc+0xd4/0xd8
[   18.130842]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   18.135790]  kmalloc_node_oob_right+0xbc/0x330
[   18.140217]  kunit_try_run_case+0x170/0x3f0
[   18.144384]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.149854]  kthread+0x328/0x630
[   18.153064]  ret_from_fork+0x10/0x20
[   18.156623] 
[   18.158102] The buggy address belongs to the object at ffff000806540000
[   18.158102]  which belongs to the cache kmalloc-4k of size 4096
[   18.170601] The buggy address is located 0 bytes to the right of
[   18.170601]  allocated 4096-byte region [ffff000806540000, ffff000806541000)
[   18.183619] 
[   18.185097] The buggy address belongs to the physical page:
[   18.190655] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x886540
[   18.198640] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   18.206279] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   18.213221] page_type: f5(slab)
[   18.216358] raw: 0bfffe0000000040 ffff000800003040 dead000000000122 0000000000000000
[   18.224077] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   18.231803] head: 0bfffe0000000040 ffff000800003040 dead000000000122 0000000000000000
[   18.239614] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   18.247427] head: 0bfffe0000000003 fffffdffe0195001 00000000ffffffff 00000000ffffffff
[   18.255239] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   18.263045] page dumped because: kasan: bad access detected
[   18.268600] 
[   18.270078] Memory state around the buggy address:
[   18.274856]  ffff000806540f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.282058]  ffff000806540f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.289264] >ffff000806541000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.296465]                    ^
[   18.299680]  ffff000806541080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.306885]  ffff000806541100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.314088] ==================================================================

[   17.362990] ==================================================================
[   17.363081] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   17.363139] Read of size 1 at addr fff00000c6525000 by task kunit_try_catch/143
[   17.363187] 
[   17.363457] CPU: 1 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   17.363593] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.363632] Hardware name: linux,dummy-virt (DT)
[   17.363683] Call trace:
[   17.363735]  show_stack+0x20/0x38 (C)
[   17.363789]  dump_stack_lvl+0x8c/0xd0
[   17.363838]  print_report+0x118/0x608
[   17.363884]  kasan_report+0xdc/0x128
[   17.364130]  __asan_report_load1_noabort+0x20/0x30
[   17.364229]  kmalloc_node_oob_right+0x2f4/0x330
[   17.364283]  kunit_try_run_case+0x170/0x3f0
[   17.364344]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.364418]  kthread+0x328/0x630
[   17.364465]  ret_from_fork+0x10/0x20
[   17.364523] 
[   17.364542] Allocated by task 143:
[   17.364569]  kasan_save_stack+0x3c/0x68
[   17.364616]  kasan_save_track+0x20/0x40
[   17.364684]  kasan_save_alloc_info+0x40/0x58
[   17.364730]  __kasan_kmalloc+0xd4/0xd8
[   17.364766]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   17.364815]  kmalloc_node_oob_right+0xbc/0x330
[   17.364872]  kunit_try_run_case+0x170/0x3f0
[   17.364919]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.364974]  kthread+0x328/0x630
[   17.365010]  ret_from_fork+0x10/0x20
[   17.365060] 
[   17.365088] The buggy address belongs to the object at fff00000c6524000
[   17.365088]  which belongs to the cache kmalloc-4k of size 4096
[   17.365144] The buggy address is located 0 bytes to the right of
[   17.365144]  allocated 4096-byte region [fff00000c6524000, fff00000c6525000)
[   17.365206] 
[   17.365225] The buggy address belongs to the physical page:
[   17.365298] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106520
[   17.365638] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.365689] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   17.365754] page_type: f5(slab)
[   17.365859] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   17.365945] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   17.366085] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   17.366209] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   17.366276] head: 0bfffe0000000003 ffffc1ffc3194801 00000000ffffffff 00000000ffffffff
[   17.366398] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   17.366484] page dumped because: kasan: bad access detected
[   17.366516] 
[   17.366539] Memory state around the buggy address:
[   17.366571]  fff00000c6524f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.366613]  fff00000c6524f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.366781] >fff00000c6525000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.366827]                    ^
[   17.366877]  fff00000c6525080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.366998]  fff00000c6525100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.367116] ==================================================================

[   15.578046] ==================================================================
[   15.578634] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0
[   15.579443] Read of size 1 at addr ffff888102a4f000 by task kunit_try_catch/161
[   15.579784] 
[   15.579964] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   15.580072] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.580099] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.580153] Call Trace:
[   15.580179]  <TASK>
[   15.580215]  dump_stack_lvl+0x73/0xb0
[   15.580283]  print_report+0xd1/0x650
[   15.580330]  ? __virt_addr_valid+0x1db/0x2d0
[   15.580376]  ? kmalloc_node_oob_right+0x369/0x3c0
[   15.580420]  ? kasan_complete_mode_report_info+0x2a/0x200
[   15.580469]  ? kmalloc_node_oob_right+0x369/0x3c0
[   15.580515]  kasan_report+0x141/0x180
[   15.580557]  ? kmalloc_node_oob_right+0x369/0x3c0
[   15.580601]  __asan_report_load1_noabort+0x18/0x20
[   15.580639]  kmalloc_node_oob_right+0x369/0x3c0
[   15.580678]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   15.580717]  ? __schedule+0x10cc/0x2b30
[   15.580779]  ? __pfx_read_tsc+0x10/0x10
[   15.580822]  ? ktime_get_ts64+0x86/0x230
[   15.580881]  kunit_try_run_case+0x1a5/0x480
[   15.580936]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.580976]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.581019]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.581064]  ? __kthread_parkme+0x82/0x180
[   15.581106]  ? preempt_count_sub+0x50/0x80
[   15.581160]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.581213]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.581265]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.581317]  kthread+0x337/0x6f0
[   15.581357]  ? trace_preempt_on+0x20/0xc0
[   15.581410]  ? __pfx_kthread+0x10/0x10
[   15.581453]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.581501]  ? calculate_sigpending+0x7b/0xa0
[   15.581554]  ? __pfx_kthread+0x10/0x10
[   15.581625]  ret_from_fork+0x41/0x80
[   15.581668]  ? __pfx_kthread+0x10/0x10
[   15.581704]  ret_from_fork_asm+0x1a/0x30
[   15.581765]  </TASK>
[   15.581787] 
[   15.594521] Allocated by task 161:
[   15.594935]  kasan_save_stack+0x45/0x70
[   15.595578]  kasan_save_track+0x18/0x40
[   15.595830]  kasan_save_alloc_info+0x3b/0x50
[   15.596049]  __kasan_kmalloc+0xb7/0xc0
[   15.596561]  __kmalloc_cache_node_noprof+0x188/0x420
[   15.597043]  kmalloc_node_oob_right+0xab/0x3c0
[   15.598105]  kunit_try_run_case+0x1a5/0x480
[   15.598601]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.599288]  kthread+0x337/0x6f0
[   15.599545]  ret_from_fork+0x41/0x80
[   15.600050]  ret_from_fork_asm+0x1a/0x30
[   15.600295] 
[   15.600693] The buggy address belongs to the object at ffff888102a4e000
[   15.600693]  which belongs to the cache kmalloc-4k of size 4096
[   15.602111] The buggy address is located 0 bytes to the right of
[   15.602111]  allocated 4096-byte region [ffff888102a4e000, ffff888102a4f000)
[   15.603204] 
[   15.603382] The buggy address belongs to the physical page:
[   15.603887] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a48
[   15.604565] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   15.604964] flags: 0x200000000000040(head|node=0|zone=2)
[   15.605614] page_type: f5(slab)
[   15.606048] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   15.606685] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   15.607383] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   15.607768] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   15.608654] head: 0200000000000003 ffffea00040a9201 00000000ffffffff 00000000ffffffff
[   15.608906] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   15.609475] page dumped because: kasan: bad access detected
[   15.609954] 
[   15.610148] Memory state around the buggy address:
[   15.610440]  ffff888102a4ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.610733]  ffff888102a4ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.611675] >ffff888102a4f000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.612413]                    ^
[   15.612731]  ffff888102a4f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.613711]  ffff888102a4f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.613953] ==================================================================