Hay
Date
July 9, 2025, 2:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.740639] ==================================================================
[   16.740709] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   16.740764] Write of size 1 at addr fff00000c77da00a by task kunit_try_catch/146
[   16.740853] 
[   16.741022] CPU: 0 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.741134] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.741160] Hardware name: linux,dummy-virt (DT)
[   16.741215] Call trace:
[   16.741239]  show_stack+0x20/0x38 (C)
[   16.741410]  dump_stack_lvl+0x8c/0xd0
[   16.741534]  print_report+0x118/0x608
[   16.741589]  kasan_report+0xdc/0x128
[   16.741885]  __asan_report_store1_noabort+0x20/0x30
[   16.741999]  kmalloc_large_oob_right+0x278/0x2b8
[   16.742107]  kunit_try_run_case+0x170/0x3f0
[   16.742207]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.742269]  kthread+0x328/0x630
[   16.742311]  ret_from_fork+0x10/0x20
[   16.742361] 
[   16.742398] The buggy address belongs to the physical page:
[   16.742432] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d8
[   16.742506] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.742563] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   16.742647] page_type: f8(unknown)
[   16.742693] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.742748] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.742802] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.743029] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.743121] head: 0bfffe0000000002 ffffc1ffc31df601 00000000ffffffff 00000000ffffffff
[   16.743243] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   16.743339] page dumped because: kasan: bad access detected
[   16.743465] 
[   16.743541] Memory state around the buggy address:
[   16.743629]  fff00000c77d9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.743778]  fff00000c77d9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.743931] >fff00000c77da000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.744006]                       ^
[   16.744471]  fff00000c77da080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.744587]  fff00000c77da100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.744688] ==================================================================

[   12.237988] ==================================================================
[   12.238543] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   12.238855] Write of size 1 at addr ffff888102ab200a by task kunit_try_catch/163
[   12.239255] 
[   12.239375] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.239422] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.239434] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.239454] Call Trace:
[   12.239466]  <TASK>
[   12.239483]  dump_stack_lvl+0x73/0xb0
[   12.239513]  print_report+0xd1/0x650
[   12.239535]  ? __virt_addr_valid+0x1db/0x2d0
[   12.239559]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.239581]  ? kasan_addr_to_slab+0x11/0xa0
[   12.239613]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.239635]  kasan_report+0x141/0x180
[   12.239657]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.239685]  __asan_report_store1_noabort+0x1b/0x30
[   12.239709]  kmalloc_large_oob_right+0x2e9/0x330
[   12.239732]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.239757]  ? __schedule+0x10cc/0x2b60
[   12.239779]  ? __pfx_read_tsc+0x10/0x10
[   12.239810]  ? ktime_get_ts64+0x86/0x230
[   12.239835]  kunit_try_run_case+0x1a5/0x480
[   12.239870]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.239893]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.239917]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.239954]  ? __kthread_parkme+0x82/0x180
[   12.239986]  ? preempt_count_sub+0x50/0x80
[   12.240014]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.240039]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.240064]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.240089]  kthread+0x337/0x6f0
[   12.240117]  ? trace_preempt_on+0x20/0xc0
[   12.240141]  ? __pfx_kthread+0x10/0x10
[   12.240161]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.240193]  ? calculate_sigpending+0x7b/0xa0
[   12.240218]  ? __pfx_kthread+0x10/0x10
[   12.240239]  ret_from_fork+0x116/0x1d0
[   12.240258]  ? __pfx_kthread+0x10/0x10
[   12.240278]  ret_from_fork_asm+0x1a/0x30
[   12.240311]  </TASK>
[   12.240320] 
[   12.247752] The buggy address belongs to the physical page:
[   12.248178] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ab0
[   12.248427] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.248794] flags: 0x200000000000040(head|node=0|zone=2)
[   12.249087] page_type: f8(unknown)
[   12.249265] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.249512] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.250134] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.250407] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.250659] head: 0200000000000002 ffffea00040aac01 00000000ffffffff 00000000ffffffff
[   12.250987] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.251386] page dumped because: kasan: bad access detected
[   12.251569] 
[   12.251645] Memory state around the buggy address:
[   12.251800]  ffff888102ab1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.252467]  ffff888102ab1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.252964] >ffff888102ab2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.253285]                       ^
[   12.253410]  ffff888102ab2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.253806]  ffff888102ab2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.254393] ==================================================================