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

Environment
e850-96
qemu-arm64
qemu-x86_64

[   24.385729] ==================================================================
[   24.394641] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   24.401321] Write of size 16 at addr ffff000800c2e0a0 by task kunit_try_catch/213
[   24.408786] 
[   24.410272] CPU: 5 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   24.410329] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.410345] Hardware name: WinLink E850-96 board (DT)
[   24.410366] Call trace:
[   24.410380]  show_stack+0x20/0x38 (C)
[   24.410415]  dump_stack_lvl+0x8c/0xd0
[   24.410448]  print_report+0x118/0x608
[   24.410480]  kasan_report+0xdc/0x128
[   24.410507]  __asan_report_store16_noabort+0x20/0x30
[   24.410541]  kmalloc_oob_16+0x3a0/0x3f8
[   24.410572]  kunit_try_run_case+0x170/0x3f0
[   24.410607]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.410646]  kthread+0x328/0x630
[   24.410677]  ret_from_fork+0x10/0x20
[   24.410711] 
[   24.472935] Allocated by task 213:
[   24.476322]  kasan_save_stack+0x3c/0x68
[   24.480139]  kasan_save_track+0x20/0x40
[   24.483960]  kasan_save_alloc_info+0x40/0x58
[   24.488212]  __kasan_kmalloc+0xd4/0xd8
[   24.491945]  __kmalloc_cache_noprof+0x16c/0x3c0
[   24.496459]  kmalloc_oob_16+0xb4/0x3f8
[   24.500191]  kunit_try_run_case+0x170/0x3f0
[   24.504358]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.509827]  kthread+0x328/0x630
[   24.513038]  ret_from_fork+0x10/0x20
[   24.516597] 
[   24.518076] The buggy address belongs to the object at ffff000800c2e0a0
[   24.518076]  which belongs to the cache kmalloc-16 of size 16
[   24.530401] The buggy address is located 0 bytes inside of
[   24.530401]  allocated 13-byte region [ffff000800c2e0a0, ffff000800c2e0ad)
[   24.542725] 
[   24.544204] The buggy address belongs to the physical page:
[   24.549760] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880c2e
[   24.557745] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   24.564255] page_type: f5(slab)
[   24.567393] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000
[   24.575110] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   24.582830] page dumped because: kasan: bad access detected
[   24.588384] 
[   24.589859] Memory state around the buggy address:
[   24.594640]  ffff000800c2df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.601843]  ffff000800c2e000: 00 04 fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   24.609047] >ffff000800c2e080: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc
[   24.616248]                                   ^
[   24.620766]  ffff000800c2e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.627971]  ffff000800c2e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.635173] ==================================================================

[   17.800828] ==================================================================
[   17.800927] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   17.801001] Write of size 16 at addr fff00000c59158e0 by task kunit_try_catch/169
[   17.801051] 
[   17.801091] CPU: 1 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   17.801174] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.801200] Hardware name: linux,dummy-virt (DT)
[   17.801232] Call trace:
[   17.801256]  show_stack+0x20/0x38 (C)
[   17.801308]  dump_stack_lvl+0x8c/0xd0
[   17.805469]  print_report+0x118/0x608
[   17.806594]  kasan_report+0xdc/0x128
[   17.807431]  __asan_report_store16_noabort+0x20/0x30
[   17.808545]  kmalloc_oob_16+0x3a0/0x3f8
[   17.811018]  kunit_try_run_case+0x170/0x3f0
[   17.811115]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.811174]  kthread+0x328/0x630
[   17.811223]  ret_from_fork+0x10/0x20
[   17.811278] 
[   17.814522] Allocated by task 169:
[   17.814582]  kasan_save_stack+0x3c/0x68
[   17.814635]  kasan_save_track+0x20/0x40
[   17.814706]  kasan_save_alloc_info+0x40/0x58
[   17.814745]  __kasan_kmalloc+0xd4/0xd8
[   17.814781]  __kmalloc_cache_noprof+0x16c/0x3c0
[   17.814828]  kmalloc_oob_16+0xb4/0x3f8
[   17.815067]  kunit_try_run_case+0x170/0x3f0
[   17.815115]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.815443]  kthread+0x328/0x630
[   17.815487]  ret_from_fork+0x10/0x20
[   17.815527] 
[   17.815549] The buggy address belongs to the object at fff00000c59158e0
[   17.815549]  which belongs to the cache kmalloc-16 of size 16
[   17.815607] The buggy address is located 0 bytes inside of
[   17.815607]  allocated 13-byte region [fff00000c59158e0, fff00000c59158ed)
[   17.815667] 
[   17.815688] The buggy address belongs to the physical page:
[   17.815721] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105915
[   17.815777] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.815830] page_type: f5(slab)
[   17.815875] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   17.815924] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   17.815963] page dumped because: kasan: bad access detected
[   17.815993] 
[   17.816011] Memory state around the buggy address:
[   17.816044]  fff00000c5915780: 00 02 fc fc 00 05 fc fc fa fb fc fc 00 02 fc fc
[   17.816086]  fff00000c5915800: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   17.816128] >fff00000c5915880: fa fb fc fc 00 04 fc fc fa fb fc fc 00 05 fc fc
[   17.816164]                                                           ^
[   17.816201]  fff00000c5915900: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.816241]  fff00000c5915980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.816277] ==================================================================

[   16.484086] ==================================================================
[   16.484725] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   16.485507] Write of size 16 at addr ffff888101d9a3c0 by task kunit_try_catch/187
[   16.486013] 
[   16.486915] CPU: 1 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   16.487002] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.487019] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.487045] Call Trace:
[   16.487063]  <TASK>
[   16.487089]  dump_stack_lvl+0x73/0xb0
[   16.487180]  print_report+0xd1/0x650
[   16.487209]  ? __virt_addr_valid+0x1db/0x2d0
[   16.487237]  ? kmalloc_oob_16+0x452/0x4a0
[   16.487260]  ? kasan_complete_mode_report_info+0x2a/0x200
[   16.487283]  ? kmalloc_oob_16+0x452/0x4a0
[   16.487306]  kasan_report+0x141/0x180
[   16.487330]  ? kmalloc_oob_16+0x452/0x4a0
[   16.487358]  __asan_report_store16_noabort+0x1b/0x30
[   16.487380]  kmalloc_oob_16+0x452/0x4a0
[   16.487403]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   16.487427]  ? __schedule+0x10cc/0x2b30
[   16.487451]  ? __pfx_read_tsc+0x10/0x10
[   16.487473]  ? ktime_get_ts64+0x86/0x230
[   16.487503]  kunit_try_run_case+0x1a5/0x480
[   16.487530]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.487552]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   16.487578]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.487602]  ? __kthread_parkme+0x82/0x180
[   16.487640]  ? preempt_count_sub+0x50/0x80
[   16.487674]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.487700]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.487724]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.487765]  kthread+0x337/0x6f0
[   16.487789]  ? trace_preempt_on+0x20/0xc0
[   16.487817]  ? __pfx_kthread+0x10/0x10
[   16.487836]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.487858]  ? calculate_sigpending+0x7b/0xa0
[   16.487883]  ? __pfx_kthread+0x10/0x10
[   16.487902]  ret_from_fork+0x41/0x80
[   16.487925]  ? __pfx_kthread+0x10/0x10
[   16.487945]  ret_from_fork_asm+0x1a/0x30
[   16.487979]  </TASK>
[   16.487993] 
[   16.498202] Allocated by task 187:
[   16.498530]  kasan_save_stack+0x45/0x70
[   16.499008]  kasan_save_track+0x18/0x40
[   16.499394]  kasan_save_alloc_info+0x3b/0x50
[   16.499739]  __kasan_kmalloc+0xb7/0xc0
[   16.500087]  __kmalloc_cache_noprof+0x189/0x420
[   16.500535]  kmalloc_oob_16+0xa8/0x4a0
[   16.500866]  kunit_try_run_case+0x1a5/0x480
[   16.501257]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.501720]  kthread+0x337/0x6f0
[   16.501989]  ret_from_fork+0x41/0x80
[   16.502364]  ret_from_fork_asm+0x1a/0x30
[   16.502688] 
[   16.502904] The buggy address belongs to the object at ffff888101d9a3c0
[   16.502904]  which belongs to the cache kmalloc-16 of size 16
[   16.503707] The buggy address is located 0 bytes inside of
[   16.503707]  allocated 13-byte region [ffff888101d9a3c0, ffff888101d9a3cd)
[   16.504470] 
[   16.504674] The buggy address belongs to the physical page:
[   16.504976] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101d9a
[   16.505636] flags: 0x200000000000000(node=0|zone=2)
[   16.506093] page_type: f5(slab)
[   16.506462] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   16.506865] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   16.507214] page dumped because: kasan: bad access detected
[   16.507685] 
[   16.507860] Memory state around the buggy address:
[   16.508331]  ffff888101d9a280: fa fb fc fc 00 03 fc fc 00 03 fc fc fa fb fc fc
[   16.508916]  ffff888101d9a300: 00 01 fc fc 00 01 fc fc fa fb fc fc fa fb fc fc
[   16.509508] >ffff888101d9a380: 00 05 fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc
[   16.510002]                                               ^
[   16.512008]  ffff888101d9a400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.512804]  ffff888101d9a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.514004] ==================================================================