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

Environment
qemu-arm64
qemu-x86_64

[   15.095670] ==================================================================
[   15.095880] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   15.095936] Write of size 1 at addr fff00000c65c200a by task kunit_try_catch/147
[   15.096117] 
[   15.096154] CPU: 0 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.096236] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.096366] Hardware name: linux,dummy-virt (DT)
[   15.096404] Call trace:
[   15.096425]  show_stack+0x20/0x38 (C)
[   15.096688]  dump_stack_lvl+0x8c/0xd0
[   15.096868]  print_report+0x118/0x5d0
[   15.096939]  kasan_report+0xdc/0x128
[   15.096993]  __asan_report_store1_noabort+0x20/0x30
[   15.097043]  kmalloc_large_oob_right+0x278/0x2b8
[   15.097327]  kunit_try_run_case+0x170/0x3f0
[   15.097542]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.097786]  kthread+0x328/0x630
[   15.098122]  ret_from_fork+0x10/0x20
[   15.098656] 
[   15.098775] The buggy address belongs to the physical page:
[   15.098936] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065c0
[   15.099151] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   15.099407] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   15.099566] page_type: f8(unknown)
[   15.099869] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   15.100065] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   15.100248] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   15.100330] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   15.100491] head: 0bfffe0000000002 ffffc1ffc3197001 00000000ffffffff 00000000ffffffff
[   15.100568] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   15.100748] page dumped because: kasan: bad access detected
[   15.100880] 
[   15.100900] Memory state around the buggy address:
[   15.100932]  fff00000c65c1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.101014]  fff00000c65c1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.101170] >fff00000c65c2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.101386]                       ^
[   15.101500]  fff00000c65c2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.101547]  fff00000c65c2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.101937] ==================================================================

[   12.512691] ==================================================================
[   12.513856] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   12.514111] Write of size 1 at addr ffff8881027ce00a by task kunit_try_catch/163
[   12.514329] 
[   12.514753] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.515008] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.515026] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.515048] Call Trace:
[   12.515061]  <TASK>
[   12.515080]  dump_stack_lvl+0x73/0xb0
[   12.515115]  print_report+0xd1/0x610
[   12.515138]  ? __virt_addr_valid+0x1db/0x2d0
[   12.515163]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.515188]  ? kasan_addr_to_slab+0x11/0xa0
[   12.515209]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.515311]  kasan_report+0x141/0x180
[   12.515347]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.515374]  __asan_report_store1_noabort+0x1b/0x30
[   12.515418]  kmalloc_large_oob_right+0x2e9/0x330
[   12.515443]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.515467]  ? __schedule+0x10cc/0x2b60
[   12.515491]  ? __pfx_read_tsc+0x10/0x10
[   12.515512]  ? ktime_get_ts64+0x86/0x230
[   12.515538]  kunit_try_run_case+0x1a5/0x480
[   12.515576]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.515599]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.515623]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.515647]  ? __kthread_parkme+0x82/0x180
[   12.515668]  ? preempt_count_sub+0x50/0x80
[   12.515692]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.515717]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.515741]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.515767]  kthread+0x337/0x6f0
[   12.515786]  ? trace_preempt_on+0x20/0xc0
[   12.515809]  ? __pfx_kthread+0x10/0x10
[   12.515830]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.515851]  ? calculate_sigpending+0x7b/0xa0
[   12.515877]  ? __pfx_kthread+0x10/0x10
[   12.515898]  ret_from_fork+0x116/0x1d0
[   12.515917]  ? __pfx_kthread+0x10/0x10
[   12.515937]  ret_from_fork_asm+0x1a/0x30
[   12.515968]  </TASK>
[   12.515979] 
[   12.530800] The buggy address belongs to the physical page:
[   12.531257] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027cc
[   12.531520] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.531930] flags: 0x200000000000040(head|node=0|zone=2)
[   12.532705] page_type: f8(unknown)
[   12.533069] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.533433] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.534204] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.534906] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.535377] head: 0200000000000002 ffffea000409f301 00000000ffffffff 00000000ffffffff
[   12.535813] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.536048] page dumped because: kasan: bad access detected
[   12.536221] 
[   12.536292] Memory state around the buggy address:
[   12.536845]  ffff8881027cdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.537649]  ffff8881027cdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.538424] >ffff8881027ce000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.539144]                       ^
[   12.539532]  ffff8881027ce080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.540260]  ffff8881027ce100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.541252] ==================================================================