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

Environment
qemu-arm64
qemu-x86_64

[   14.923704] ==================================================================
[   14.923779] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   14.923834] Write of size 1 at addr fff00000c64a5f00 by task kunit_try_catch/145
[   14.923955] 
[   14.923991] CPU: 1 UID: 0 PID: 145 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   14.924086] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.924250] Hardware name: linux,dummy-virt (DT)
[   14.924284] Call trace:
[   14.924323]  show_stack+0x20/0x38 (C)
[   14.924639]  dump_stack_lvl+0x8c/0xd0
[   14.924730]  print_report+0x118/0x5d0
[   14.924779]  kasan_report+0xdc/0x128
[   14.924823]  __asan_report_store1_noabort+0x20/0x30
[   14.925127]  kmalloc_big_oob_right+0x2a4/0x2f0
[   14.925313]  kunit_try_run_case+0x170/0x3f0
[   14.925440]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   14.925576]  kthread+0x328/0x630
[   14.925653]  ret_from_fork+0x10/0x20
[   14.925786] 
[   14.925806] Allocated by task 145:
[   14.925834]  kasan_save_stack+0x3c/0x68
[   14.926011]  kasan_save_track+0x20/0x40
[   14.926053]  kasan_save_alloc_info+0x40/0x58
[   14.926206]  __kasan_kmalloc+0xd4/0xd8
[   14.926323]  __kmalloc_cache_noprof+0x16c/0x3c0
[   14.926412]  kmalloc_big_oob_right+0xb8/0x2f0
[   14.926550]  kunit_try_run_case+0x170/0x3f0
[   14.926620]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   14.926670]  kthread+0x328/0x630
[   14.926702]  ret_from_fork+0x10/0x20
[   14.926788] 
[   14.926810] The buggy address belongs to the object at fff00000c64a4000
[   14.926810]  which belongs to the cache kmalloc-8k of size 8192
[   14.926869] The buggy address is located 0 bytes to the right of
[   14.926869]  allocated 7936-byte region [fff00000c64a4000, fff00000c64a5f00)
[   14.926939] 
[   14.926959] The buggy address belongs to the physical page:
[   14.926990] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064a0
[   14.927059] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   14.927117] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   14.927169] page_type: f5(slab)
[   14.927226] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   14.927283] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   14.927331] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   14.927393] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   14.927440] head: 0bfffe0000000003 ffffc1ffc3192801 00000000ffffffff 00000000ffffffff
[   14.927492] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   14.927540] page dumped because: kasan: bad access detected
[   14.927579] 
[   14.927597] Memory state around the buggy address:
[   14.927629]  fff00000c64a5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.927669]  fff00000c64a5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.927719] >fff00000c64a5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   14.927755]                    ^
[   14.927783]  fff00000c64a5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   14.927842]  fff00000c64a6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   14.927879] ==================================================================

[   12.404500] ==================================================================
[   12.404937] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370
[   12.405185] Write of size 1 at addr ffff888102b11f00 by task kunit_try_catch/162
[   12.405416] 
[   12.405518] CPU: 1 UID: 0 PID: 162 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.405565] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.405577] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.405600] Call Trace:
[   12.405614]  <TASK>
[   12.405630]  dump_stack_lvl+0x73/0xb0
[   12.405659]  print_report+0xd1/0x610
[   12.405680]  ? __virt_addr_valid+0x1db/0x2d0
[   12.405702]  ? kmalloc_big_oob_right+0x316/0x370
[   12.405723]  ? kasan_complete_mode_report_info+0x2a/0x200
[   12.405745]  ? kmalloc_big_oob_right+0x316/0x370
[   12.405766]  kasan_report+0x141/0x180
[   12.405788]  ? kmalloc_big_oob_right+0x316/0x370
[   12.405814]  __asan_report_store1_noabort+0x1b/0x30
[   12.405837]  kmalloc_big_oob_right+0x316/0x370
[   12.405859]  ? __pfx_kmalloc_big_oob_right+0x10/0x10
[   12.405881]  ? __schedule+0x10c6/0x2b60
[   12.405903]  ? __pfx_read_tsc+0x10/0x10
[   12.405922]  ? ktime_get_ts64+0x86/0x230
[   12.405945]  kunit_try_run_case+0x1a5/0x480
[   12.405969]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.405990]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.406012]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.406035]  ? __kthread_parkme+0x82/0x180
[   12.406053]  ? preempt_count_sub+0x50/0x80
[   12.406076]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.406099]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.406125]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.406147]  kthread+0x337/0x6f0
[   12.406166]  ? trace_preempt_on+0x20/0xc0
[   12.406188]  ? __pfx_kthread+0x10/0x10
[   12.406208]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.406228]  ? calculate_sigpending+0x7b/0xa0
[   12.406250]  ? __pfx_kthread+0x10/0x10
[   12.406271]  ret_from_fork+0x116/0x1d0
[   12.406288]  ? __pfx_kthread+0x10/0x10
[   12.406308]  ret_from_fork_asm+0x1a/0x30
[   12.406337]  </TASK>
[   12.406347] 
[   12.421276] Allocated by task 162:
[   12.421605]  kasan_save_stack+0x45/0x70
[   12.422021]  kasan_save_track+0x18/0x40
[   12.422387]  kasan_save_alloc_info+0x3b/0x50
[   12.422951]  __kasan_kmalloc+0xb7/0xc0
[   12.423395]  __kmalloc_cache_noprof+0x189/0x420
[   12.423848]  kmalloc_big_oob_right+0xa9/0x370
[   12.424302]  kunit_try_run_case+0x1a5/0x480
[   12.424692]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.425232]  kthread+0x337/0x6f0
[   12.425630]  ret_from_fork+0x116/0x1d0
[   12.426014]  ret_from_fork_asm+0x1a/0x30
[   12.426460] 
[   12.426671] The buggy address belongs to the object at ffff888102b10000
[   12.426671]  which belongs to the cache kmalloc-8k of size 8192
[   12.427952] The buggy address is located 0 bytes to the right of
[   12.427952]  allocated 7936-byte region [ffff888102b10000, ffff888102b11f00)
[   12.429316] 
[   12.429510] The buggy address belongs to the physical page:
[   12.429976] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b10
[   12.430241] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.430510] flags: 0x200000000000040(head|node=0|zone=2)
[   12.431043] page_type: f5(slab)
[   12.431405] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   12.432142] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   12.432963] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   12.433837] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   12.434625] head: 0200000000000003 ffffea00040ac401 00000000ffffffff 00000000ffffffff
[   12.435144] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   12.435698] page dumped because: kasan: bad access detected
[   12.436270] 
[   12.436427] Memory state around the buggy address:
[   12.436805]  ffff888102b11e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.437323]  ffff888102b11e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.437555] >ffff888102b11f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.437804]                    ^
[   12.438164]  ffff888102b11f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.438939]  ffff888102b12000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.439681] ==================================================================