Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.596476] ==================================================================
[   17.596544] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   17.596598] Write of size 1 at addr fff00000c787a00a by task kunit_try_catch/148
[   17.596738] 
[   17.596776] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   17.596859] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.596885] Hardware name: linux,dummy-virt (DT)
[   17.596915] Call trace:
[   17.596936]  show_stack+0x20/0x38 (C)
[   17.596985]  dump_stack_lvl+0x8c/0xd0
[   17.597031]  print_report+0x118/0x5d0
[   17.597074]  kasan_report+0xdc/0x128
[   17.597116]  __asan_report_store1_noabort+0x20/0x30
[   17.597171]  kmalloc_large_oob_right+0x278/0x2b8
[   17.597800]  kunit_try_run_case+0x170/0x3f0
[   17.598122]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.598344]  kthread+0x328/0x630
[   17.598728]  ret_from_fork+0x10/0x20
[   17.598789] 
[   17.599246] The buggy address belongs to the physical page:
[   17.599296] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107878
[   17.599400] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.599576] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   17.599823] page_type: f8(unknown)
[   17.600325] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.600555] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.600658] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.600883] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.601137] head: 0bfffe0000000002 ffffc1ffc31e1e01 00000000ffffffff 00000000ffffffff
[   17.601406] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   17.601452] page dumped because: kasan: bad access detected
[   17.601646] 
[   17.601755] Memory state around the buggy address:
[   17.601911]  fff00000c7879f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.601988]  fff00000c7879f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.602052] >fff00000c787a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   17.602098]                       ^
[   17.602126]  fff00000c787a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   17.602433]  fff00000c787a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   17.602651] ==================================================================

[   10.499807] ==================================================================
[   10.500375] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   10.500702] Write of size 1 at addr ffff888102aaa00a by task kunit_try_catch/165
[   10.501889] 
[   10.502077] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   10.502120] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.502131] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.502149] Call Trace:
[   10.502160]  <TASK>
[   10.502174]  dump_stack_lvl+0x73/0xb0
[   10.502198]  print_report+0xd1/0x610
[   10.502220]  ? __virt_addr_valid+0x1db/0x2d0
[   10.502241]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.502262]  ? kasan_addr_to_slab+0x11/0xa0
[   10.502282]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.502303]  kasan_report+0x141/0x180
[   10.502325]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.502352]  __asan_report_store1_noabort+0x1b/0x30
[   10.502372]  kmalloc_large_oob_right+0x2e9/0x330
[   10.502393]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   10.502415]  ? __schedule+0x10cc/0x2b60
[   10.502438]  ? __pfx_read_tsc+0x10/0x10
[   10.502461]  ? ktime_get_ts64+0x86/0x230
[   10.502485]  kunit_try_run_case+0x1a5/0x480
[   10.502505]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.502523]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.502545]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.502567]  ? __kthread_parkme+0x82/0x180
[   10.502592]  ? preempt_count_sub+0x50/0x80
[   10.502617]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.502635]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.502657]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.502678]  kthread+0x337/0x6f0
[   10.502694]  ? trace_preempt_on+0x20/0xc0
[   10.502716]  ? __pfx_kthread+0x10/0x10
[   10.502733]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.502754]  ? calculate_sigpending+0x7b/0xa0
[   10.502776]  ? __pfx_kthread+0x10/0x10
[   10.502793]  ret_from_fork+0x41/0x80
[   10.502820]  ? __pfx_kthread+0x10/0x10
[   10.502837]  ret_from_fork_asm+0x1a/0x30
[   10.502872]  </TASK>
[   10.502893] 
[   10.512739] The buggy address belongs to the physical page:
[   10.513063] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102aa8
[   10.513427] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   10.513787] flags: 0x200000000000040(head|node=0|zone=2)
[   10.514036] page_type: f8(unknown)
[   10.514184] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   10.514445] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   10.514791] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   10.515566] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   10.516203] head: 0200000000000002 ffffea00040aaa01 00000000ffffffff 00000000ffffffff
[   10.516530] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   10.517232] page dumped because: kasan: bad access detected
[   10.517538] 
[   10.517625] Memory state around the buggy address:
[   10.517891]  ffff888102aa9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.518541]  ffff888102aa9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.519086] >ffff888102aaa000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.519349]                       ^
[   10.519532]  ffff888102aaa080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.520187]  ffff888102aaa100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.520473] ==================================================================