Hay
Date
July 8, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.074536] ==================================================================
[   19.074733] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   19.074839] Write of size 1 at addr fff00000c64edf00 by task kunit_try_catch/144
[   19.074942] 
[   19.074982] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   19.075064] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.075105] Hardware name: linux,dummy-virt (DT)
[   19.075385] Call trace:
[   19.075429]  show_stack+0x20/0x38 (C)
[   19.075631]  dump_stack_lvl+0x8c/0xd0
[   19.075766]  print_report+0x118/0x608
[   19.075994]  kasan_report+0xdc/0x128
[   19.076061]  __asan_report_store1_noabort+0x20/0x30
[   19.076111]  kmalloc_big_oob_right+0x2a4/0x2f0
[   19.076168]  kunit_try_run_case+0x170/0x3f0
[   19.076215]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.076653]  kthread+0x328/0x630
[   19.076791]  ret_from_fork+0x10/0x20
[   19.076920] 
[   19.076939] Allocated by task 144:
[   19.076966]  kasan_save_stack+0x3c/0x68
[   19.077246]  kasan_save_track+0x20/0x40
[   19.077498]  kasan_save_alloc_info+0x40/0x58
[   19.077682]  __kasan_kmalloc+0xd4/0xd8
[   19.077926]  __kmalloc_cache_noprof+0x16c/0x3c0
[   19.078139]  kmalloc_big_oob_right+0xb8/0x2f0
[   19.078207]  kunit_try_run_case+0x170/0x3f0
[   19.078414]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.078547]  kthread+0x328/0x630
[   19.078696]  ret_from_fork+0x10/0x20
[   19.078886] 
[   19.078913] The buggy address belongs to the object at fff00000c64ec000
[   19.078913]  which belongs to the cache kmalloc-8k of size 8192
[   19.079080] The buggy address is located 0 bytes to the right of
[   19.079080]  allocated 7936-byte region [fff00000c64ec000, fff00000c64edf00)
[   19.079240] 
[   19.079262] The buggy address belongs to the physical page:
[   19.079309] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064e8
[   19.079364] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.079409] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   19.079460] page_type: f5(slab)
[   19.079665] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   19.079932] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   19.080088] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   19.080306] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   19.080518] head: 0bfffe0000000003 ffffc1ffc3193a01 00000000ffffffff 00000000ffffffff
[   19.080728] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   19.081209] page dumped because: kasan: bad access detected
[   19.081379] 
[   19.081505] Memory state around the buggy address:
[   19.081539]  fff00000c64ede00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.081587]  fff00000c64ede80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.081818] >fff00000c64edf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.082208]                    ^
[   19.082302]  fff00000c64edf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.082464]  fff00000c64ee000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.082523] ==================================================================

[   11.941213] ==================================================================
[   11.942738] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370
[   11.943779] Write of size 1 at addr ffff888103a11f00 by task kunit_try_catch/162
[   11.944971] 
[   11.945325] CPU: 0 UID: 0 PID: 162 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   11.945373] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.945385] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.945502] Call Trace:
[   11.945519]  <TASK>
[   11.945535]  dump_stack_lvl+0x73/0xb0
[   11.945567]  print_report+0xd1/0x650
[   11.945589]  ? __virt_addr_valid+0x1db/0x2d0
[   11.946188]  ? kmalloc_big_oob_right+0x316/0x370
[   11.946214]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.946238]  ? kmalloc_big_oob_right+0x316/0x370
[   11.946262]  kasan_report+0x141/0x180
[   11.946284]  ? kmalloc_big_oob_right+0x316/0x370
[   11.946312]  __asan_report_store1_noabort+0x1b/0x30
[   11.946337]  kmalloc_big_oob_right+0x316/0x370
[   11.946360]  ? __pfx_kmalloc_big_oob_right+0x10/0x10
[   11.946385]  ? __pfx_kmalloc_big_oob_right+0x10/0x10
[   11.946412]  kunit_try_run_case+0x1a5/0x480
[   11.946436]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.946458]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.946482]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.946512]  ? __kthread_parkme+0x82/0x180
[   11.946542]  ? preempt_count_sub+0x50/0x80
[   11.946566]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.946590]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.946625]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.946649]  kthread+0x337/0x6f0
[   11.946669]  ? trace_preempt_on+0x20/0xc0
[   11.946695]  ? __pfx_kthread+0x10/0x10
[   11.946716]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.946737]  ? calculate_sigpending+0x7b/0xa0
[   11.946760]  ? __pfx_kthread+0x10/0x10
[   11.946781]  ret_from_fork+0x116/0x1d0
[   11.946800]  ? __pfx_kthread+0x10/0x10
[   11.946820]  ret_from_fork_asm+0x1a/0x30
[   11.946850]  </TASK>
[   11.946860] 
[   11.957102] Allocated by task 162:
[   11.957331]  kasan_save_stack+0x45/0x70
[   11.957503]  kasan_save_track+0x18/0x40
[   11.957709]  kasan_save_alloc_info+0x3b/0x50
[   11.957906]  __kasan_kmalloc+0xb7/0xc0
[   11.958204]  __kmalloc_cache_noprof+0x189/0x420
[   11.958434]  kmalloc_big_oob_right+0xa9/0x370
[   11.958585]  kunit_try_run_case+0x1a5/0x480
[   11.958816]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.959193]  kthread+0x337/0x6f0
[   11.959391]  ret_from_fork+0x116/0x1d0
[   11.959584]  ret_from_fork_asm+0x1a/0x30
[   11.959873] 
[   11.960070] The buggy address belongs to the object at ffff888103a10000
[   11.960070]  which belongs to the cache kmalloc-8k of size 8192
[   11.960444] The buggy address is located 0 bytes to the right of
[   11.960444]  allocated 7936-byte region [ffff888103a10000, ffff888103a11f00)
[   11.961087] 
[   11.961186] The buggy address belongs to the physical page:
[   11.961442] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a10
[   11.961914] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   11.962387] flags: 0x200000000000040(head|node=0|zone=2)
[   11.962611] page_type: f5(slab)
[   11.962850] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   11.963186] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   11.963822] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   11.964227] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   11.964643] head: 0200000000000003 ffffea00040e8401 00000000ffffffff 00000000ffffffff
[   11.965108] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   11.965445] page dumped because: kasan: bad access detected
[   11.965724] 
[   11.965828] Memory state around the buggy address:
[   11.966110]  ffff888103a11e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.966388]  ffff888103a11e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.966847] >ffff888103a11f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.967083]                    ^
[   11.967333]  ffff888103a11f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.967755]  ffff888103a12000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.968131] ==================================================================