Hay
Date
June 2, 2025, 2:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.164955] ==================================================================
[   19.165856] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x28c/0x2d0
[   19.166370] Write of size 1 at addr fff00000c6b8a00a by task kunit_try_catch/133
[   19.166730] 
[   19.166897] CPU: 0 UID: 0 PID: 133 Comm: kunit_try_catch Tainted: G    B            N 6.12.32-rc1 #1
[   19.167001] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.167032] Hardware name: linux,dummy-virt (DT)
[   19.167124] Call trace:
[   19.167176]  dump_backtrace+0x9c/0x128
[   19.167287]  show_stack+0x20/0x38
[   19.167363]  dump_stack_lvl+0x8c/0xd0
[   19.167465]  print_report+0x118/0x5f0
[   19.167562]  kasan_report+0xdc/0x128
[   19.167656]  __asan_report_store1_noabort+0x20/0x30
[   19.167743]  kmalloc_large_oob_right+0x28c/0x2d0
[   19.167826]  kunit_try_run_case+0x170/0x3f0
[   19.167915]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.168012]  kthread+0x24c/0x2d0
[   19.168084]  ret_from_fork+0x10/0x20
[   19.168166] 
[   19.173987] The buggy address belongs to the physical page:
[   19.174371] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106b88
[   19.174972] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.176449] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   19.177720] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.178266] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.179034] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.179748] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.180133] head: 0bfffe0000000002 ffffc1ffc31ae201 ffffffffffffffff 0000000000000000
[   19.180484] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
[   19.180831] page dumped because: kasan: bad access detected
[   19.181101] 
[   19.181827] Memory state around the buggy address:
[   19.182550]  fff00000c6b89f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.183304]  fff00000c6b89f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.184231] >fff00000c6b8a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.184789]                       ^
[   19.185212]  fff00000c6b8a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.185680]  fff00000c6b8a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.186173] ==================================================================

[   11.474591] ==================================================================
[   11.475118] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2eb/0x340
[   11.475600] Write of size 1 at addr ffff88810257a00a by task kunit_try_catch/151
[   11.476267] 
[   11.476779] CPU: 0 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G    B            N 6.12.32-rc1 #1
[   11.476866] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.476885] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.476918] Call Trace:
[   11.476942]  <TASK>
[   11.476971]  dump_stack_lvl+0x73/0xb0
[   11.477246]  print_report+0xd1/0x640
[   11.477289]  ? __virt_addr_valid+0x1db/0x2d0
[   11.477315]  ? kmalloc_large_oob_right+0x2eb/0x340
[   11.477337]  ? kasan_addr_to_slab+0x11/0xa0
[   11.477359]  ? kmalloc_large_oob_right+0x2eb/0x340
[   11.477381]  kasan_report+0x140/0x180
[   11.477403]  ? kmalloc_large_oob_right+0x2eb/0x340
[   11.477430]  __asan_report_store1_noabort+0x1b/0x30
[   11.477452]  kmalloc_large_oob_right+0x2eb/0x340
[   11.477475]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   11.477498]  ? __schedule+0xc49/0x27a0
[   11.477518]  ? __pfx_read_tsc+0x10/0x10
[   11.477536]  ? ktime_get_ts64+0x84/0x230
[   11.477562]  kunit_try_run_case+0x1a6/0x480
[   11.477584]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.477603]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   11.477623]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.477647]  ? __kthread_parkme+0x82/0x160
[   11.477691]  ? preempt_count_sub+0x50/0x80
[   11.477714]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.477733]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.477758]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.477783]  kthread+0x257/0x310
[   11.477800]  ? __pfx_kthread+0x10/0x10
[   11.477819]  ret_from_fork+0x41/0x80
[   11.477838]  ? __pfx_kthread+0x10/0x10
[   11.477856]  ret_from_fork_asm+0x1a/0x30
[   11.477896]  </TASK>
[   11.477911] 
[   11.485642] The buggy address belongs to the physical page:
[   11.485872] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102578
[   11.486459] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   11.486942] flags: 0x200000000000040(head|node=0|zone=2)
[   11.487529] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   11.488006] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   11.488586] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   11.488957] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   11.489764] head: 0200000000000002 ffffea0004095e01 ffffffffffffffff 0000000000000000
[   11.490115] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
[   11.490442] page dumped because: kasan: bad access detected
[   11.490729] 
[   11.490877] Memory state around the buggy address:
[   11.491114]  ffff888102579f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.491397]  ffff888102579f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.491830] >ffff88810257a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.492174]                       ^
[   11.492376]  ffff88810257a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.492648]  ffff88810257a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.492979] ==================================================================