Hay
Date
July 11, 2025, 10:11 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   43.613999] ==================================================================
[   43.623006] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   43.629686] Write of size 16 at addr ffff000806d01520 by task kunit_try_catch/250
[   43.637151] 
[   43.638637] CPU: 4 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250711 #1 PREEMPT 
[   43.638696] Tainted: [B]=BAD_PAGE, [N]=TEST
[   43.638710] Hardware name: WinLink E850-96 board (DT)
[   43.638731] Call trace:
[   43.638748]  show_stack+0x20/0x38 (C)
[   43.638786]  dump_stack_lvl+0x8c/0xd0
[   43.638818]  print_report+0x118/0x5d0
[   43.638845]  kasan_report+0xdc/0x128
[   43.638870]  __asan_report_store16_noabort+0x20/0x30
[   43.638904]  kmalloc_oob_16+0x3a0/0x3f8
[   43.638933]  kunit_try_run_case+0x170/0x3f0
[   43.638972]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   43.639003]  kthread+0x328/0x630
[   43.639032]  ret_from_fork+0x10/0x20
[   43.639068] 
[   43.702516] Allocated by task 250:
[   43.705902]  kasan_save_stack+0x3c/0x68
[   43.709720]  kasan_save_track+0x20/0x40
[   43.713539]  kasan_save_alloc_info+0x40/0x58
[   43.717792]  __kasan_kmalloc+0xd4/0xd8
[   43.721525]  __kmalloc_cache_noprof+0x16c/0x3c0
[   43.726039]  kmalloc_oob_16+0xb4/0x3f8
[   43.729771]  kunit_try_run_case+0x170/0x3f0
[   43.733938]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   43.739407]  kthread+0x328/0x630
[   43.742618]  ret_from_fork+0x10/0x20
[   43.746178] 
[   43.747656] The buggy address belongs to the object at ffff000806d01520
[   43.747656]  which belongs to the cache kmalloc-16 of size 16
[   43.759980] The buggy address is located 0 bytes inside of
[   43.759980]  allocated 13-byte region [ffff000806d01520, ffff000806d0152d)
[   43.772305] 
[   43.773783] The buggy address belongs to the physical page:
[   43.779340] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x886d01
[   43.787325] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   43.793834] page_type: f5(slab)
[   43.796970] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000
[   43.804690] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   43.812409] page dumped because: kasan: bad access detected
[   43.817964] 
[   43.819441] Memory state around the buggy address:
[   43.824220]  ffff000806d01400: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   43.831423]  ffff000806d01480: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   43.838629] >ffff000806d01500: 00 05 fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc
[   43.845830]                                   ^
[   43.850346]  ffff000806d01580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   43.857553]  ffff000806d01600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   43.864752] ==================================================================

[   30.327769] ==================================================================
[   30.328010] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   30.328185] Write of size 16 at addr fff00000c918c600 by task kunit_try_catch/197
[   30.328235] 
[   30.328273] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250711 #1 PREEMPT 
[   30.328367] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.328393] Hardware name: linux,dummy-virt (DT)
[   30.328576] Call trace:
[   30.328818]  show_stack+0x20/0x38 (C)
[   30.329450]  dump_stack_lvl+0x8c/0xd0
[   30.329766]  print_report+0x118/0x5d0
[   30.329814]  kasan_report+0xdc/0x128
[   30.329880]  __asan_report_store16_noabort+0x20/0x30
[   30.329928]  kmalloc_oob_16+0x3a0/0x3f8
[   30.329973]  kunit_try_run_case+0x170/0x3f0
[   30.330021]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.330070]  kthread+0x328/0x630
[   30.330113]  ret_from_fork+0x10/0x20
[   30.330162] 
[   30.330180] Allocated by task 197:
[   30.330208]  kasan_save_stack+0x3c/0x68
[   30.330531]  kasan_save_track+0x20/0x40
[   30.330609]  kasan_save_alloc_info+0x40/0x58
[   30.330646]  __kasan_kmalloc+0xd4/0xd8
[   30.330685]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.330923]  kmalloc_oob_16+0xb4/0x3f8
[   30.330960]  kunit_try_run_case+0x170/0x3f0
[   30.331402]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.331454]  kthread+0x328/0x630
[   30.331554]  ret_from_fork+0x10/0x20
[   30.331637] 
[   30.331702] The buggy address belongs to the object at fff00000c918c600
[   30.331702]  which belongs to the cache kmalloc-16 of size 16
[   30.331758] The buggy address is located 0 bytes inside of
[   30.331758]  allocated 13-byte region [fff00000c918c600, fff00000c918c60d)
[   30.331860] 
[   30.331993] The buggy address belongs to the physical page:
[   30.332145] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10918c
[   30.332408] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.332471] page_type: f5(slab)
[   30.332819] raw: 0bfffe0000000000 fff00000c0001640 dead000000000100 dead000000000122
[   30.332928] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   30.333030] page dumped because: kasan: bad access detected
[   30.333161] 
[   30.333179] Memory state around the buggy address:
[   30.333210]  fff00000c918c500: fa fb fc fc fa fb fc fc 00 00 fc fc fa fb fc fc
[   30.333355]  fff00000c918c580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   30.333430] >fff00000c918c600: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc
[   30.333550]                       ^
[   30.333579]  fff00000c918c680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.333619]  fff00000c918c700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.333655] ==================================================================

[   23.723077] ==================================================================
[   23.723903] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   23.724584] Write of size 16 at addr ffff888104c83ae0 by task kunit_try_catch/216
[   23.725235] 
[   23.725429] CPU: 0 UID: 0 PID: 216 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250711 #1 PREEMPT(voluntary) 
[   23.725485] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.725497] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.725521] Call Trace:
[   23.725535]  <TASK>
[   23.725556]  dump_stack_lvl+0x73/0xb0
[   23.725591]  print_report+0xd1/0x610
[   23.725618]  ? __virt_addr_valid+0x1db/0x2d0
[   23.725645]  ? kmalloc_oob_16+0x452/0x4a0
[   23.725666]  ? kasan_complete_mode_report_info+0x2a/0x200
[   23.725692]  ? kmalloc_oob_16+0x452/0x4a0
[   23.725713]  kasan_report+0x141/0x180
[   23.725743]  ? kmalloc_oob_16+0x452/0x4a0
[   23.725768]  __asan_report_store16_noabort+0x1b/0x30
[   23.725792]  kmalloc_oob_16+0x452/0x4a0
[   23.725812]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   23.725834]  ? __schedule+0x10cc/0x2b60
[   23.725858]  ? __pfx_read_tsc+0x10/0x10
[   23.725881]  ? ktime_get_ts64+0x86/0x230
[   23.725908]  kunit_try_run_case+0x1a5/0x480
[   23.725932]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.725952]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.725975]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.725998]  ? __kthread_parkme+0x82/0x180
[   23.726020]  ? preempt_count_sub+0x50/0x80
[   23.726043]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.726065]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.726089]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.726115]  kthread+0x337/0x6f0
[   23.726135]  ? trace_preempt_on+0x20/0xc0
[   23.726159]  ? __pfx_kthread+0x10/0x10
[   23.726179]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.726201]  ? calculate_sigpending+0x7b/0xa0
[   23.726226]  ? __pfx_kthread+0x10/0x10
[   23.726247]  ret_from_fork+0x116/0x1d0
[   23.726266]  ? __pfx_kthread+0x10/0x10
[   23.726286]  ret_from_fork_asm+0x1a/0x30
[   23.726317]  </TASK>
[   23.726329] 
[   23.738444] Allocated by task 216:
[   23.738881]  kasan_save_stack+0x45/0x70
[   23.739344]  kasan_save_track+0x18/0x40
[   23.739850]  kasan_save_alloc_info+0x3b/0x50
[   23.740385]  __kasan_kmalloc+0xb7/0xc0
[   23.740839]  __kmalloc_cache_noprof+0x189/0x420
[   23.741343]  kmalloc_oob_16+0xa8/0x4a0
[   23.741806]  kunit_try_run_case+0x1a5/0x480
[   23.742241]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.742924]  kthread+0x337/0x6f0
[   23.743305]  ret_from_fork+0x116/0x1d0
[   23.743601]  ret_from_fork_asm+0x1a/0x30
[   23.743763] 
[   23.743834] The buggy address belongs to the object at ffff888104c83ae0
[   23.743834]  which belongs to the cache kmalloc-16 of size 16
[   23.744178] The buggy address is located 0 bytes inside of
[   23.744178]  allocated 13-byte region [ffff888104c83ae0, ffff888104c83aed)
[   23.744526] 
[   23.744593] The buggy address belongs to the physical page:
[   23.744863] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104c83
[   23.745742] flags: 0x200000000000000(node=0|zone=2)
[   23.746182] page_type: f5(slab)
[   23.746514] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   23.747306] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   23.748067] page dumped because: kasan: bad access detected
[   23.748721] 
[   23.748886] Memory state around the buggy address:
[   23.749284]  ffff888104c83980: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   23.749983]  ffff888104c83a00: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc
[   23.750709] >ffff888104c83a80: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   23.751361]                                                           ^
[   23.751969]  ffff888104c83b00: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.752665]  ffff888104c83b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.753138] ==================================================================