Hay
Date
June 24, 2025, 11:37 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   29.731623] ==================================================================
[   29.742663] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   29.750163] Read of size 1 at addr ffff0000956f9000 by task kunit_try_catch/238
[   29.757576] 
[   29.759113] CPU: 3 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   29.759144] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.759152] Hardware name: Thundercomm Dragonboard 845c (DT)
[   29.759164] Call trace:
[   29.759172]  show_stack+0x20/0x38 (C)
[   29.759190]  dump_stack_lvl+0x8c/0xd0
[   29.759211]  print_report+0x118/0x608
[   29.759231]  kasan_report+0xdc/0x128
[   29.759250]  __asan_report_load1_noabort+0x20/0x30
[   29.759268]  kmalloc_node_oob_right+0x2f4/0x330
[   29.759289]  kunit_try_run_case+0x170/0x3f0
[   29.759309]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.759331]  kthread+0x328/0x630
[   29.759347]  ret_from_fork+0x10/0x20
[   29.759365] 
[   29.825388] Allocated by task 238:
[   29.828847]  kasan_save_stack+0x3c/0x68
[   29.832757]  kasan_save_track+0x20/0x40
[   29.836667]  kasan_save_alloc_info+0x40/0x58
[   29.841005]  __kasan_kmalloc+0xd4/0xd8
[   29.844828]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   29.849872]  kmalloc_node_oob_right+0xbc/0x330
[   29.854388]  kunit_try_run_case+0x170/0x3f0
[   29.858642]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.864209]  kthread+0x328/0x630
[   29.867494]  ret_from_fork+0x10/0x20
[   29.871140] 
[   29.872674] The buggy address belongs to the object at ffff0000956f8000
[   29.872674]  which belongs to the cache kmalloc-4k of size 4096
[   29.885338] The buggy address is located 0 bytes to the right of
[   29.885338]  allocated 4096-byte region [ffff0000956f8000, ffff0000956f9000)
[   29.898521] 
[   29.900058] The buggy address belongs to the physical page:
[   29.905707] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1156f8
[   29.913822] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   29.921579] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   29.928634] page_type: f5(slab)
[   29.931840] raw: 0bfffe0000000040 ffff000080003040 dead000000000122 0000000000000000
[   29.939686] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   29.947530] head: 0bfffe0000000040 ffff000080003040 dead000000000122 0000000000000000
[   29.955462] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   29.963393] head: 0bfffe0000000003 fffffdffc255be01 00000000ffffffff 00000000ffffffff
[   29.971323] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   29.979255] page dumped because: kasan: bad access detected
[   29.984909] 
[   29.986439] Memory state around the buggy address:
[   29.991302]  ffff0000956f8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.998625]  ffff0000956f8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.005947] >ffff0000956f9000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.013269]                    ^
[   30.016556]  ffff0000956f9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.023870]  ffff0000956f9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.031185] ==================================================================

[   32.355069] ==================================================================
[   32.355215] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   32.355358] Read of size 1 at addr fff00000c751d000 by task kunit_try_catch/151
[   32.355570] 
[   32.355694] CPU: 0 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT 
[   32.356024] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.356154] Hardware name: linux,dummy-virt (DT)
[   32.356373] Call trace:
[   32.356435]  show_stack+0x20/0x38 (C)
[   32.356580]  dump_stack_lvl+0x8c/0xd0
[   32.356832]  print_report+0x118/0x608
[   32.356985]  kasan_report+0xdc/0x128
[   32.357152]  __asan_report_load1_noabort+0x20/0x30
[   32.357279]  kmalloc_node_oob_right+0x2f4/0x330
[   32.357407]  kunit_try_run_case+0x170/0x3f0
[   32.357529]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.357955]  kthread+0x328/0x630
[   32.358184]  ret_from_fork+0x10/0x20
[   32.358457] 
[   32.358577] Allocated by task 151:
[   32.358788]  kasan_save_stack+0x3c/0x68
[   32.359005]  kasan_save_track+0x20/0x40
[   32.359107]  kasan_save_alloc_info+0x40/0x58
[   32.359260]  __kasan_kmalloc+0xd4/0xd8
[   32.359370]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   32.359711]  kmalloc_node_oob_right+0xbc/0x330
[   32.359937]  kunit_try_run_case+0x170/0x3f0
[   32.360157]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.360374]  kthread+0x328/0x630
[   32.360518]  ret_from_fork+0x10/0x20
[   32.360721] 
[   32.360850] The buggy address belongs to the object at fff00000c751c000
[   32.360850]  which belongs to the cache kmalloc-4k of size 4096
[   32.361011] The buggy address is located 0 bytes to the right of
[   32.361011]  allocated 4096-byte region [fff00000c751c000, fff00000c751d000)
[   32.361312] 
[   32.361699] The buggy address belongs to the physical page:
[   32.361855] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107518
[   32.363193] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   32.363835] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   32.364023] page_type: f5(slab)
[   32.364113] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   32.364176] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   32.364298] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   32.364364] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   32.364422] head: 0bfffe0000000003 ffffc1ffc31d4601 00000000ffffffff 00000000ffffffff
[   32.364479] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   32.364534] page dumped because: kasan: bad access detected
[   32.364571] 
[   32.364592] Memory state around the buggy address:
[   32.364631]  fff00000c751cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.364681]  fff00000c751cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.364731] >fff00000c751d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.364774]                    ^
[   32.364810]  fff00000c751d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.364859]  fff00000c751d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.364943] ==================================================================

[   27.929521] ==================================================================
[   27.930216] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0
[   27.931458] Read of size 1 at addr ffff888103b5f000 by task kunit_try_catch/170
[   27.932204] 
[   27.932411] CPU: 0 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) 
[   27.932525] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.932575] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.932638] Call Trace:
[   27.932669]  <TASK>
[   27.932707]  dump_stack_lvl+0x73/0xb0
[   27.932778]  print_report+0xd1/0x650
[   27.932831]  ? __virt_addr_valid+0x1db/0x2d0
[   27.932891]  ? kmalloc_node_oob_right+0x369/0x3c0
[   27.932949]  ? kasan_complete_mode_report_info+0x2a/0x200
[   27.933017]  ? kmalloc_node_oob_right+0x369/0x3c0
[   27.933170]  kasan_report+0x141/0x180
[   27.933241]  ? kmalloc_node_oob_right+0x369/0x3c0
[   27.933321]  __asan_report_load1_noabort+0x18/0x20
[   27.933387]  kmalloc_node_oob_right+0x369/0x3c0
[   27.933452]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   27.933518]  ? __schedule+0x10cc/0x2b60
[   27.933601]  ? __pfx_read_tsc+0x10/0x10
[   27.933697]  ? ktime_get_ts64+0x86/0x230
[   27.933767]  kunit_try_run_case+0x1a5/0x480
[   27.933835]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.933887]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   27.933966]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   27.934008]  ? __kthread_parkme+0x82/0x180
[   27.934038]  ? preempt_count_sub+0x50/0x80
[   27.934100]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.934155]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.934252]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.934306]  kthread+0x337/0x6f0
[   27.934353]  ? trace_preempt_on+0x20/0xc0
[   27.934404]  ? __pfx_kthread+0x10/0x10
[   27.934443]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.934475]  ? calculate_sigpending+0x7b/0xa0
[   27.934506]  ? __pfx_kthread+0x10/0x10
[   27.934534]  ret_from_fork+0x116/0x1d0
[   27.934587]  ? __pfx_kthread+0x10/0x10
[   27.934615]  ret_from_fork_asm+0x1a/0x30
[   27.934671]  </TASK>
[   27.934686] 
[   27.950895] Allocated by task 170:
[   27.951299]  kasan_save_stack+0x45/0x70
[   27.951736]  kasan_save_track+0x18/0x40
[   27.952131]  kasan_save_alloc_info+0x3b/0x50
[   27.952641]  __kasan_kmalloc+0xb7/0xc0
[   27.952889]  __kmalloc_cache_node_noprof+0x188/0x420
[   27.953348]  kmalloc_node_oob_right+0xab/0x3c0
[   27.953834]  kunit_try_run_case+0x1a5/0x480
[   27.954508]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.955397]  kthread+0x337/0x6f0
[   27.955793]  ret_from_fork+0x116/0x1d0
[   27.956032]  ret_from_fork_asm+0x1a/0x30
[   27.956449] 
[   27.956611] The buggy address belongs to the object at ffff888103b5e000
[   27.956611]  which belongs to the cache kmalloc-4k of size 4096
[   27.957360] The buggy address is located 0 bytes to the right of
[   27.957360]  allocated 4096-byte region [ffff888103b5e000, ffff888103b5f000)
[   27.958579] 
[   27.958805] The buggy address belongs to the physical page:
[   27.959588] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b58
[   27.960836] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   27.961584] flags: 0x200000000000040(head|node=0|zone=2)
[   27.962367] page_type: f5(slab)
[   27.962708] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   27.963716] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   27.964343] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   27.965037] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   27.965723] head: 0200000000000003 ffffea00040ed601 00000000ffffffff 00000000ffffffff
[   27.966450] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   27.967445] page dumped because: kasan: bad access detected
[   27.967997] 
[   27.968189] Memory state around the buggy address:
[   27.968490]  ffff888103b5ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.969348]  ffff888103b5ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.969919] >ffff888103b5f000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   27.970694]                    ^
[   27.971044]  ffff888103b5f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   27.971938]  ffff888103b5f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   27.972420] ==================================================================