Hay
Date
July 9, 2025, 12:11 a.m.

Environment
qemu-arm64
qemu-x86_64

[   19.357701] ==================================================================
[   19.358126] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   19.358629] Write of size 1 at addr fff00000c76b600a by task kunit_try_catch/147
[   19.358687] 
[   19.358721] CPU: 1 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   19.358804] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.359225] Hardware name: linux,dummy-virt (DT)
[   19.359267] Call trace:
[   19.359304]  show_stack+0x20/0x38 (C)
[   19.359356]  dump_stack_lvl+0x8c/0xd0
[   19.359412]  print_report+0x118/0x608
[   19.359458]  kasan_report+0xdc/0x128
[   19.359502]  __asan_report_store1_noabort+0x20/0x30
[   19.359575]  kmalloc_large_oob_right+0x278/0x2b8
[   19.359741]  kunit_try_run_case+0x170/0x3f0
[   19.359849]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.359962]  kthread+0x328/0x630
[   19.360306]  ret_from_fork+0x10/0x20
[   19.360367] 
[   19.360413] The buggy address belongs to the physical page:
[   19.360445] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076b4
[   19.360549] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.360596] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   19.360684] page_type: f8(unknown)
[   19.360723] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.360796] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.360884] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.361095] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.361328] head: 0bfffe0000000002 ffffc1ffc31dad01 00000000ffffffff 00000000ffffffff
[   19.361376] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   19.362421] page dumped because: kasan: bad access detected
[   19.362455] 
[   19.363103] Memory state around the buggy address:
[   19.363162]  fff00000c76b5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.363318]  fff00000c76b5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.363359] >fff00000c76b6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.363415]                       ^
[   19.363448]  fff00000c76b6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.363496]  fff00000c76b6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.363541] ==================================================================

[   12.119897] ==================================================================
[   12.120613] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   12.120935] Write of size 1 at addr ffff88810a5d600a by task kunit_try_catch/163
[   12.121419] 
[   12.121557] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.121603] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.121615] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.121636] Call Trace:
[   12.121648]  <TASK>
[   12.121666]  dump_stack_lvl+0x73/0xb0
[   12.121699]  print_report+0xd1/0x650
[   12.121721]  ? __virt_addr_valid+0x1db/0x2d0
[   12.121744]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.121765]  ? kasan_addr_to_slab+0x11/0xa0
[   12.121785]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.121807]  kasan_report+0x141/0x180
[   12.121828]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.121855]  __asan_report_store1_noabort+0x1b/0x30
[   12.121879]  kmalloc_large_oob_right+0x2e9/0x330
[   12.121901]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.121938]  ? __schedule+0x10cc/0x2b60
[   12.122018]  ? __pfx_read_tsc+0x10/0x10
[   12.122040]  ? ktime_get_ts64+0x86/0x230
[   12.122065]  kunit_try_run_case+0x1a5/0x480
[   12.122089]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.122113]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.122137]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.122160]  ? __kthread_parkme+0x82/0x180
[   12.122181]  ? preempt_count_sub+0x50/0x80
[   12.122205]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.122229]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.122253]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.122277]  kthread+0x337/0x6f0
[   12.122296]  ? trace_preempt_on+0x20/0xc0
[   12.122333]  ? __pfx_kthread+0x10/0x10
[   12.122353]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.122374]  ? calculate_sigpending+0x7b/0xa0
[   12.122398]  ? __pfx_kthread+0x10/0x10
[   12.122419]  ret_from_fork+0x116/0x1d0
[   12.122436]  ? __pfx_kthread+0x10/0x10
[   12.122456]  ret_from_fork_asm+0x1a/0x30
[   12.122486]  </TASK>
[   12.122497] 
[   12.129608] The buggy address belongs to the physical page:
[   12.129800] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a5d4
[   12.130258] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.130638] flags: 0x200000000000040(head|node=0|zone=2)
[   12.130898] page_type: f8(unknown)
[   12.131092] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.131472] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.131723] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.132080] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.132312] head: 0200000000000002 ffffea0004297501 00000000ffffffff 00000000ffffffff
[   12.133049] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.133335] page dumped because: kasan: bad access detected
[   12.133507] 
[   12.133575] Memory state around the buggy address:
[   12.134075]  ffff88810a5d5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.134377]  ffff88810a5d5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.134593] >ffff88810a5d6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.134810]                       ^
[   12.135043]  ffff88810a5d6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.135504]  ffff88810a5d6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.135837] ==================================================================