Hay
Date
July 10, 2025, 6:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.533820] ==================================================================
[   16.533881] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   16.534682] Write of size 1 at addr fff00000c65adf00 by task kunit_try_catch/144
[   16.534734] 
[   16.534769] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.534850] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.534876] Hardware name: linux,dummy-virt (DT)
[   16.534905] Call trace:
[   16.534927]  show_stack+0x20/0x38 (C)
[   16.535857]  dump_stack_lvl+0x8c/0xd0
[   16.536270]  print_report+0x118/0x608
[   16.536677]  kasan_report+0xdc/0x128
[   16.536799]  __asan_report_store1_noabort+0x20/0x30
[   16.537252]  kmalloc_big_oob_right+0x2a4/0x2f0
[   16.537460]  kunit_try_run_case+0x170/0x3f0
[   16.537574]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.537853]  kthread+0x328/0x630
[   16.538109]  ret_from_fork+0x10/0x20
[   16.538423] 
[   16.538448] Allocated by task 144:
[   16.538486]  kasan_save_stack+0x3c/0x68
[   16.538529]  kasan_save_track+0x20/0x40
[   16.538566]  kasan_save_alloc_info+0x40/0x58
[   16.539238]  __kasan_kmalloc+0xd4/0xd8
[   16.539661]  __kmalloc_cache_noprof+0x16c/0x3c0
[   16.539942]  kmalloc_big_oob_right+0xb8/0x2f0
[   16.539990]  kunit_try_run_case+0x170/0x3f0
[   16.540028]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.540416]  kthread+0x328/0x630
[   16.540458]  ret_from_fork+0x10/0x20
[   16.540530] 
[   16.540636] The buggy address belongs to the object at fff00000c65ac000
[   16.540636]  which belongs to the cache kmalloc-8k of size 8192
[   16.541050] The buggy address is located 0 bytes to the right of
[   16.541050]  allocated 7936-byte region [fff00000c65ac000, fff00000c65adf00)
[   16.541515] 
[   16.541560] The buggy address belongs to the physical page:
[   16.541592] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065a8
[   16.541816] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.542004] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   16.542057] page_type: f5(slab)
[   16.542095] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   16.542519] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   16.542571] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   16.543080] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   16.543464] head: 0bfffe0000000003 ffffc1ffc3196a01 00000000ffffffff 00000000ffffffff
[   16.543539] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   16.543586] page dumped because: kasan: bad access detected
[   16.544007] 
[   16.544075] Memory state around the buggy address:
[   16.544109]  fff00000c65ade00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.544150]  fff00000c65ade80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.544192] >fff00000c65adf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.544804]                    ^
[   16.545022]  fff00000c65adf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.545163]  fff00000c65ae000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.545446] ==================================================================

[   12.015357] ==================================================================
[   12.015970] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370
[   12.016390] Write of size 1 at addr ffff8881037c9f00 by task kunit_try_catch/161
[   12.017068] 
[   12.017235] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.017277] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.017288] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.017307] Call Trace:
[   12.017318]  <TASK>
[   12.017333]  dump_stack_lvl+0x73/0xb0
[   12.017362]  print_report+0xd1/0x650
[   12.017383]  ? __virt_addr_valid+0x1db/0x2d0
[   12.017405]  ? kmalloc_big_oob_right+0x316/0x370
[   12.017427]  ? kasan_complete_mode_report_info+0x2a/0x200
[   12.017450]  ? kmalloc_big_oob_right+0x316/0x370
[   12.017472]  kasan_report+0x141/0x180
[   12.017493]  ? kmalloc_big_oob_right+0x316/0x370
[   12.017520]  __asan_report_store1_noabort+0x1b/0x30
[   12.017545]  kmalloc_big_oob_right+0x316/0x370
[   12.017567]  ? __pfx_kmalloc_big_oob_right+0x10/0x10
[   12.017590]  ? __schedule+0x10cc/0x2b60
[   12.017612]  ? __pfx_read_tsc+0x10/0x10
[   12.017631]  ? ktime_get_ts64+0x86/0x230
[   12.017655]  kunit_try_run_case+0x1a5/0x480
[   12.017679]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.017702]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.017724]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.017747]  ? __kthread_parkme+0x82/0x180
[   12.017766]  ? preempt_count_sub+0x50/0x80
[   12.017789]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.017813]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.017837]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.017861]  kthread+0x337/0x6f0
[   12.017879]  ? trace_preempt_on+0x20/0xc0
[   12.017903]  ? __pfx_kthread+0x10/0x10
[   12.017923]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.017995]  ? calculate_sigpending+0x7b/0xa0
[   12.018021]  ? __pfx_kthread+0x10/0x10
[   12.018056]  ret_from_fork+0x116/0x1d0
[   12.018074]  ? __pfx_kthread+0x10/0x10
[   12.018095]  ret_from_fork_asm+0x1a/0x30
[   12.018125]  </TASK>
[   12.018135] 
[   12.029215] Allocated by task 161:
[   12.029632]  kasan_save_stack+0x45/0x70
[   12.029924]  kasan_save_track+0x18/0x40
[   12.030374]  kasan_save_alloc_info+0x3b/0x50
[   12.030688]  __kasan_kmalloc+0xb7/0xc0
[   12.031116]  __kmalloc_cache_noprof+0x189/0x420
[   12.031345]  kmalloc_big_oob_right+0xa9/0x370
[   12.031932]  kunit_try_run_case+0x1a5/0x480
[   12.032395]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.032576]  kthread+0x337/0x6f0
[   12.032695]  ret_from_fork+0x116/0x1d0
[   12.032896]  ret_from_fork_asm+0x1a/0x30
[   12.033300] 
[   12.033467] The buggy address belongs to the object at ffff8881037c8000
[   12.033467]  which belongs to the cache kmalloc-8k of size 8192
[   12.034696] The buggy address is located 0 bytes to the right of
[   12.034696]  allocated 7936-byte region [ffff8881037c8000, ffff8881037c9f00)
[   12.035814] 
[   12.036051] The buggy address belongs to the physical page:
[   12.036232] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1037c8
[   12.036476] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.036702] flags: 0x200000000000040(head|node=0|zone=2)
[   12.037075] page_type: f5(slab)
[   12.037397] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   12.038157] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   12.038828] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   12.039817] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   12.040654] head: 0200000000000003 ffffea00040df201 00000000ffffffff 00000000ffffffff
[   12.041467] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   12.042239] page dumped because: kasan: bad access detected
[   12.042413] 
[   12.042482] Memory state around the buggy address:
[   12.042632]  ffff8881037c9e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.042854]  ffff8881037c9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.043379] >ffff8881037c9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.043655]                    ^
[   12.043770]  ffff8881037c9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.044314]  ffff8881037ca000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.044959] ==================================================================