Hay
Date
April 22, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64
rk3399-rock-pi-4b

[   17.338987] ==================================================================
[   17.339125] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   17.339223] Write of size 1 at addr fff00000c6bbe00a by task kunit_try_catch/148
[   17.339890] 
[   17.339981] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   17.340246] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.340313] Hardware name: linux,dummy-virt (DT)
[   17.340398] Call trace:
[   17.340474]  show_stack+0x20/0x38 (C)
[   17.340585]  dump_stack_lvl+0x8c/0xd0
[   17.340698]  print_report+0x118/0x608
[   17.340827]  kasan_report+0xdc/0x128
[   17.340952]  __asan_report_store1_noabort+0x20/0x30
[   17.341096]  kmalloc_large_oob_right+0x278/0x2b8
[   17.341234]  kunit_try_run_case+0x170/0x3f0
[   17.341338]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.341500]  kthread+0x328/0x630
[   17.341651]  ret_from_fork+0x10/0x20
[   17.341784] 
[   17.341891] The buggy address belongs to the physical page:
[   17.341966] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106bbc
[   17.342106] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.342215] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   17.342349] page_type: f8(unknown)
[   17.342462] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.342579] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.342678] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.343401] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.343596] head: 0bfffe0000000002 ffffc1ffc31aef01 00000000ffffffff 00000000ffffffff
[   17.343720] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   17.343813] page dumped because: kasan: bad access detected
[   17.343883] 
[   17.344079] Memory state around the buggy address:
[   17.344152]  fff00000c6bbdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.344309]  fff00000c6bbdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.344396] >fff00000c6bbe000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   17.344462]                       ^
[   17.344519]  fff00000c6bbe080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   17.344616]  fff00000c6bbe100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   17.344739] ==================================================================

[   16.954211] ==================================================================
[   16.955352] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   16.956368] Write of size 1 at addr ffff888103b8a00a by task kunit_try_catch/166
[   16.956925] 
[   16.957181] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   16.957879] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.958046] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.958107] Call Trace:
[   16.958145]  <TASK>
[   16.958176]  dump_stack_lvl+0x73/0xb0
[   16.958216]  print_report+0xd1/0x650
[   16.958249]  ? __virt_addr_valid+0x1db/0x2d0
[   16.958278]  ? kmalloc_large_oob_right+0x2e9/0x330
[   16.958309]  ? kasan_addr_to_slab+0x11/0xa0
[   16.958337]  ? kmalloc_large_oob_right+0x2e9/0x330
[   16.958367]  kasan_report+0x141/0x180
[   16.958398]  ? kmalloc_large_oob_right+0x2e9/0x330
[   16.958455]  __asan_report_store1_noabort+0x1b/0x30
[   16.958572]  kmalloc_large_oob_right+0x2e9/0x330
[   16.958644]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   16.958714]  ? __schedule+0x10cc/0x2b30
[   16.958777]  ? __pfx_read_tsc+0x10/0x10
[   16.958837]  ? ktime_get_ts64+0x86/0x230
[   16.958902]  kunit_try_run_case+0x1a5/0x480
[   16.958973]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.959031]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   16.959067]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.959100]  ? __kthread_parkme+0x82/0x180
[   16.959133]  ? preempt_count_sub+0x50/0x80
[   16.959171]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.959203]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.959234]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.959265]  kthread+0x337/0x6f0
[   16.959294]  ? trace_preempt_on+0x20/0xc0
[   16.959326]  ? __pfx_kthread+0x10/0x10
[   16.959356]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.959387]  ? calculate_sigpending+0x7b/0xa0
[   16.959416]  ? __pfx_kthread+0x10/0x10
[   16.959531]  ret_from_fork+0x41/0x80
[   16.959600]  ? __pfx_kthread+0x10/0x10
[   16.959635]  ret_from_fork_asm+0x1a/0x30
[   16.959680]  </TASK>
[   16.959694] 
[   16.979489] The buggy address belongs to the physical page:
[   16.980091] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b88
[   16.981535] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.982115] flags: 0x200000000000040(head|node=0|zone=2)
[   16.983092] page_type: f8(unknown)
[   16.983429] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   16.984104] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.985196] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   16.986274] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.987012] head: 0200000000000002 ffffea00040ee201 00000000ffffffff 00000000ffffffff
[   16.987976] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   16.988646] page dumped because: kasan: bad access detected
[   16.988975] 
[   16.989196] Memory state around the buggy address:
[   16.990311]  ffff888103b89f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.991171]  ffff888103b89f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.992008] >ffff888103b8a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.992601]                       ^
[   16.992941]  ffff888103b8a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.994156]  ffff888103b8a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.994721] ==================================================================

[   19.166114] ==================================================================
[   19.167191] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   19.167902] Write of size 1 at addr ffff00000e7be00a by task kunit_try_catch/204
[   19.168586] 
[   19.168749] CPU: 0 UID: 0 PID: 204 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   19.168798] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.168812] Hardware name: Radxa ROCK Pi 4B (DT)
[   19.168828] Call trace:
[   19.168840]  show_stack+0x20/0x38 (C)
[   19.168871]  dump_stack_lvl+0x8c/0xd0
[   19.168902]  print_report+0x118/0x608
[   19.168931]  kasan_report+0xdc/0x128
[   19.168959]  __asan_report_store1_noabort+0x20/0x30
[   19.168993]  kmalloc_large_oob_right+0x278/0x2b8
[   19.169027]  kunit_try_run_case+0x170/0x3f0
[   19.169062]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.169101]  kthread+0x328/0x630
[   19.169135]  ret_from_fork+0x10/0x20
[   19.169168] 
[   19.174797] The buggy address belongs to the physical page:
[   19.175313] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe7bc
[   19.176037] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.176740] flags: 0x3fffe0000000040(head|node=0|zone=0|lastcpupid=0x1ffff)
[   19.177391] page_type: f8(unknown)
[   19.177728] raw: 03fffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.178442] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.179156] head: 03fffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.179877] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.180600] head: 03fffe0000000002 fffffdffc039ef01 00000000ffffffff 00000000ffffffff
[   19.181322] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   19.182037] page dumped because: kasan: bad access detected
[   19.182551] 
[   19.182703] Memory state around the buggy address:
[   19.183151]  ffff00000e7bdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.183816]  ffff00000e7bdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.184481] >ffff00000e7be000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.185141]                       ^
[   19.185476]  ffff00000e7be080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.186141]  ffff00000e7be100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   19.186802] ==================================================================