Hay
Date
July 18, 2025, 1:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   31.283578] ==================================================================
[   31.283648] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   31.283710] Write of size 1 at addr fff00000c65ddf00 by task kunit_try_catch/175
[   31.283868] 
[   31.283900] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT 
[   31.284127] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.284159] Hardware name: linux,dummy-virt (DT)
[   31.284341] Call trace:
[   31.284385]  show_stack+0x20/0x38 (C)
[   31.284478]  dump_stack_lvl+0x8c/0xd0
[   31.284571]  print_report+0x118/0x5e8
[   31.284707]  kasan_report+0xdc/0x128
[   31.284771]  __asan_report_store1_noabort+0x20/0x30
[   31.285040]  kmalloc_big_oob_right+0x2a4/0x2f0
[   31.285128]  kunit_try_run_case+0x170/0x3f0
[   31.285213]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.285333]  kthread+0x328/0x630
[   31.285470]  ret_from_fork+0x10/0x20
[   31.285544] 
[   31.285562] Allocated by task 175:
[   31.285840]  kasan_save_stack+0x3c/0x68
[   31.285914]  kasan_save_track+0x20/0x40
[   31.285993]  kasan_save_alloc_info+0x40/0x58
[   31.286110]  __kasan_kmalloc+0xd4/0xd8
[   31.286165]  __kmalloc_cache_noprof+0x16c/0x3c0
[   31.286233]  kmalloc_big_oob_right+0xb8/0x2f0
[   31.286274]  kunit_try_run_case+0x170/0x3f0
[   31.286311]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.286354]  kthread+0x328/0x630
[   31.286396]  ret_from_fork+0x10/0x20
[   31.286439] 
[   31.286459] The buggy address belongs to the object at fff00000c65dc000
[   31.286459]  which belongs to the cache kmalloc-8k of size 8192
[   31.286514] The buggy address is located 0 bytes to the right of
[   31.286514]  allocated 7936-byte region [fff00000c65dc000, fff00000c65ddf00)
[   31.286574] 
[   31.286605] The buggy address belongs to the physical page:
[   31.286638] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065d8
[   31.286690] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   31.286743] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   31.286794] page_type: f5(slab)
[   31.286840] raw: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122
[   31.286887] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   31.286950] head: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122
[   31.286998] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   31.287045] head: 0bfffe0000000003 ffffc1ffc3197601 00000000ffffffff 00000000ffffffff
[   31.287101] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   31.287139] page dumped because: kasan: bad access detected
[   31.287177] 
[   31.287195] Memory state around the buggy address:
[   31.287233]  fff00000c65dde00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.287276]  fff00000c65dde80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.287324] >fff00000c65ddf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.287360]                    ^
[   31.287395]  fff00000c65ddf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.287443]  fff00000c65de000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.287478] ==================================================================


[   24.225671] ==================================================================
[   24.226425] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370
[   24.226771] Write of size 1 at addr ffff888106299f00 by task kunit_try_catch/192
[   24.227152] 
[   24.227294] CPU: 1 UID: 0 PID: 192 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) 
[   24.227352] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.227364] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.227385] Call Trace:
[   24.227396]  <TASK>
[   24.227419]  dump_stack_lvl+0x73/0xb0
[   24.227448]  print_report+0xd1/0x640
[   24.227469]  ? __virt_addr_valid+0x1db/0x2d0
[   24.227502]  ? kmalloc_big_oob_right+0x316/0x370
[   24.227523]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.227547]  ? kmalloc_big_oob_right+0x316/0x370
[   24.227568]  kasan_report+0x141/0x180
[   24.227589]  ? kmalloc_big_oob_right+0x316/0x370
[   24.227622]  __asan_report_store1_noabort+0x1b/0x30
[   24.227645]  kmalloc_big_oob_right+0x316/0x370
[   24.227677]  ? __pfx_kmalloc_big_oob_right+0x10/0x10
[   24.227699]  ? __schedule+0x10da/0x2b60
[   24.227721]  ? __pfx_read_tsc+0x10/0x10
[   24.227742]  ? ktime_get_ts64+0x86/0x230
[   24.227766]  kunit_try_run_case+0x1a5/0x480
[   24.227842]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.227868]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.227891]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.227913]  ? __kthread_parkme+0x82/0x180
[   24.227933]  ? preempt_count_sub+0x50/0x80
[   24.227955]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.227988]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.228010]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.228032]  kthread+0x337/0x6f0
[   24.228061]  ? trace_preempt_on+0x20/0xc0
[   24.228084]  ? __pfx_kthread+0x10/0x10
[   24.228103]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.228124]  ? calculate_sigpending+0x7b/0xa0
[   24.228146]  ? __pfx_kthread+0x10/0x10
[   24.228166]  ret_from_fork+0x116/0x1d0
[   24.228194]  ? __pfx_kthread+0x10/0x10
[   24.228214]  ret_from_fork_asm+0x1a/0x30
[   24.228243]  </TASK>
[   24.228253] 
[   24.235445] Allocated by task 192:
[   24.235568]  kasan_save_stack+0x45/0x70
[   24.235724]  kasan_save_track+0x18/0x40
[   24.235902]  kasan_save_alloc_info+0x3b/0x50
[   24.236103]  __kasan_kmalloc+0xb7/0xc0
[   24.236286]  __kmalloc_cache_noprof+0x189/0x420
[   24.236499]  kmalloc_big_oob_right+0xa9/0x370
[   24.236669]  kunit_try_run_case+0x1a5/0x480
[   24.236808]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.236974]  kthread+0x337/0x6f0
[   24.237086]  ret_from_fork+0x116/0x1d0
[   24.237449]  ret_from_fork_asm+0x1a/0x30
[   24.237650] 
[   24.237737] The buggy address belongs to the object at ffff888106298000
[   24.237737]  which belongs to the cache kmalloc-8k of size 8192
[   24.238651] The buggy address is located 0 bytes to the right of
[   24.238651]  allocated 7936-byte region [ffff888106298000, ffff888106299f00)
[   24.239253] 
[   24.239343] The buggy address belongs to the physical page:
[   24.239590] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106298
[   24.240015] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   24.240346] flags: 0x200000000000040(head|node=0|zone=2)
[   24.240578] page_type: f5(slab)
[   24.240743] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   24.241135] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   24.241404] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   24.241629] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   24.241853] head: 0200000000000003 ffffea000418a601 00000000ffffffff 00000000ffffffff
[   24.242137] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   24.242484] page dumped because: kasan: bad access detected
[   24.242730] 
[   24.242814] Memory state around the buggy address:
[   24.243028]  ffff888106299e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.243606]  ffff888106299e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.244027] >ffff888106299f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.244330]                    ^
[   24.244443]  ffff888106299f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.244659]  ffff88810629a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.245206] ==================================================================