Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   21.816914] ==================================================================
[   21.818469] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   21.819239] Write of size 1 at addr fff00000c63ea00a by task kunit_try_catch/135
[   21.820524] 
[   21.820877] CPU: 0 UID: 0 PID: 135 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   21.821336] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.821405] Hardware name: linux,dummy-virt (DT)
[   21.821480] Call trace:
[   21.821537]  show_stack+0x20/0x38 (C)
[   21.821656]  dump_stack_lvl+0x8c/0xd0
[   21.821766]  print_report+0x118/0x608
[   21.821906]  kasan_report+0xdc/0x128
[   21.822029]  __asan_report_store1_noabort+0x20/0x30
[   21.822093]  kmalloc_large_oob_right+0x278/0x2b8
[   21.822151]  kunit_try_run_case+0x170/0x3f0
[   21.822223]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.822284]  kthread+0x318/0x620
[   21.822337]  ret_from_fork+0x10/0x20
[   21.822395] 
[   21.830197] The buggy address belongs to the physical page:
[   21.831512] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063e8
[   21.832267] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.833255] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   21.834446] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.835401] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.836282] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.837637] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   21.838592] head: 0bfffe0000000002 ffffc1ffc318fa01 ffffffffffffffff 0000000000000000
[   21.839282] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
[   21.839872] page dumped because: kasan: bad access detected
[   21.840481] 
[   21.840808] Memory state around the buggy address:
[   21.841522]  fff00000c63e9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.842583]  fff00000c63e9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.843446] >fff00000c63ea000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.844143]                       ^
[   21.844563]  fff00000c63ea080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.845711]  fff00000c63ea100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.846319] ==================================================================

[   16.691920] ==================================================================
[   16.693052] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2eb/0x340
[   16.693765] Write of size 1 at addr ffff888102b5600a by task kunit_try_catch/154
[   16.694712] 
[   16.695006] CPU: 0 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G    B            N 6.14.11-rc1 #1
[   16.695114] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.695146] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.695198] Call Trace:
[   16.695237]  <TASK>
[   16.695279]  dump_stack_lvl+0x73/0xb0
[   16.695366]  print_report+0xd1/0x650
[   16.695456]  ? __virt_addr_valid+0x1db/0x2d0
[   16.695503]  ? kmalloc_large_oob_right+0x2eb/0x340
[   16.695544]  ? kasan_addr_to_slab+0x11/0xa0
[   16.695583]  ? kmalloc_large_oob_right+0x2eb/0x340
[   16.695626]  kasan_report+0x140/0x180
[   16.695674]  ? kmalloc_large_oob_right+0x2eb/0x340
[   16.695744]  __asan_report_store1_noabort+0x1b/0x30
[   16.695801]  kmalloc_large_oob_right+0x2eb/0x340
[   16.695845]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   16.695911]  ? __schedule+0xce8/0x2840
[   16.695974]  ? __pfx_read_tsc+0x10/0x10
[   16.696030]  ? ktime_get_ts64+0x86/0x230
[   16.696093]  kunit_try_run_case+0x1a6/0x480
[   16.696152]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.696202]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   16.696257]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.696313]  ? __kthread_parkme+0x82/0x160
[   16.696370]  ? preempt_count_sub+0x50/0x80
[   16.696427]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.696475]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.696528]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.696578]  kthread+0x324/0x6e0
[   16.696629]  ? trace_preempt_on+0x20/0xc0
[   16.696688]  ? __pfx_kthread+0x10/0x10
[   16.696742]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.696798]  ? calculate_sigpending+0x7b/0xa0
[   16.696850]  ? __pfx_kthread+0x10/0x10
[   16.697001]  ret_from_fork+0x41/0x80
[   16.697056]  ? __pfx_kthread+0x10/0x10
[   16.697108]  ret_from_fork_asm+0x1a/0x30
[   16.697189]  </TASK>
[   16.697219] 
[   16.713217] The buggy address belongs to the physical page:
[   16.714012] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b54
[   16.714810] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.715354] flags: 0x200000000000040(head|node=0|zone=2)
[   16.716031] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   16.716764] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   16.717274] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   16.717883] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   16.718345] head: 0200000000000002 ffffea00040ad501 ffffffffffffffff 0000000000000000
[   16.719014] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
[   16.720145] page dumped because: kasan: bad access detected
[   16.720607] 
[   16.720745] Memory state around the buggy address:
[   16.721201]  ffff888102b55f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.721697]  ffff888102b55f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.722552] >ffff888102b56000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.723088]                       ^
[   16.724068]  ffff888102b56080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.724581]  ffff888102b56100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.725318] ==================================================================