Hay
Date
July 23, 2025, 3:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   33.839894] ==================================================================
[   33.840015] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250
[   33.840089] Read of size 8 at addr fff00000c9c2f278 by task kunit_try_catch/314
[   33.840154] 
[   33.840196] CPU: 1 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   33.840294] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   33.840354] Hardware name: linux,dummy-virt (DT)
[   33.840390] Call trace:
[   33.840417]  show_stack+0x20/0x38 (C)
[   33.840469]  dump_stack_lvl+0x8c/0xd0
[   33.840676]  print_report+0x118/0x5e8
[   33.840861]  kasan_report+0xdc/0x128
[   33.840931]  __asan_report_load8_noabort+0x20/0x30
[   33.841031]  copy_to_kernel_nofault+0x204/0x250
[   33.841083]  copy_to_kernel_nofault_oob+0x158/0x418
[   33.841153]  kunit_try_run_case+0x170/0x3f0
[   33.841205]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.841274]  kthread+0x328/0x630
[   33.841318]  ret_from_fork+0x10/0x20
[   33.841369] 
[   33.841390] Allocated by task 314:
[   33.841420]  kasan_save_stack+0x3c/0x68
[   33.841463]  kasan_save_track+0x20/0x40
[   33.841500]  kasan_save_alloc_info+0x40/0x58
[   33.841542]  __kasan_kmalloc+0xd4/0xd8
[   33.841654]  __kmalloc_cache_noprof+0x16c/0x3c0
[   33.841915]  copy_to_kernel_nofault_oob+0xc8/0x418
[   33.841964]  kunit_try_run_case+0x170/0x3f0
[   33.842110]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.842184]  kthread+0x328/0x630
[   33.842252]  ret_from_fork+0x10/0x20
[   33.842367] 
[   33.842391] The buggy address belongs to the object at fff00000c9c2f200
[   33.842391]  which belongs to the cache kmalloc-128 of size 128
[   33.842454] The buggy address is located 0 bytes to the right of
[   33.842454]  allocated 120-byte region [fff00000c9c2f200, fff00000c9c2f278)
[   33.842519] 
[   33.842584] The buggy address belongs to the physical page:
[   33.842694] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109c2f
[   33.842756] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.842859] page_type: f5(slab)
[   33.843493] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   33.843563] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   33.843747] page dumped because: kasan: bad access detected
[   33.843927] 
[   33.844100] Memory state around the buggy address:
[   33.844142]  fff00000c9c2f100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   33.844465]  fff00000c9c2f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.844705] >fff00000c9c2f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   33.844907]                                                                 ^
[   33.844966]  fff00000c9c2f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.845014]  fff00000c9c2f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.845131] ==================================================================
[   33.846422] ==================================================================
[   33.846738] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250
[   33.846990] Write of size 8 at addr fff00000c9c2f278 by task kunit_try_catch/314
[   33.847095] 
[   33.847131] CPU: 1 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   33.847234] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   33.847267] Hardware name: linux,dummy-virt (DT)
[   33.847302] Call trace:
[   33.847420]  show_stack+0x20/0x38 (C)
[   33.847723]  dump_stack_lvl+0x8c/0xd0
[   33.848034]  print_report+0x118/0x5e8
[   33.848110]  kasan_report+0xdc/0x128
[   33.848156]  kasan_check_range+0x100/0x1a8
[   33.848212]  __kasan_check_write+0x20/0x30
[   33.848421]  copy_to_kernel_nofault+0x8c/0x250
[   33.848473]  copy_to_kernel_nofault_oob+0x1bc/0x418
[   33.848571]  kunit_try_run_case+0x170/0x3f0
[   33.848621]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.848675]  kthread+0x328/0x630
[   33.848720]  ret_from_fork+0x10/0x20
[   33.849159] 
[   33.849185] Allocated by task 314:
[   33.849427]  kasan_save_stack+0x3c/0x68
[   33.849473]  kasan_save_track+0x20/0x40
[   33.849645]  kasan_save_alloc_info+0x40/0x58
[   33.849691]  __kasan_kmalloc+0xd4/0xd8
[   33.849728]  __kmalloc_cache_noprof+0x16c/0x3c0
[   33.850164]  copy_to_kernel_nofault_oob+0xc8/0x418
[   33.850214]  kunit_try_run_case+0x170/0x3f0
[   33.850256]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.850303]  kthread+0x328/0x630
[   33.850339]  ret_from_fork+0x10/0x20
[   33.850395] 
[   33.850417] The buggy address belongs to the object at fff00000c9c2f200
[   33.850417]  which belongs to the cache kmalloc-128 of size 128
[   33.850479] The buggy address is located 0 bytes to the right of
[   33.850479]  allocated 120-byte region [fff00000c9c2f200, fff00000c9c2f278)
[   33.851022] 
[   33.851048] The buggy address belongs to the physical page:
[   33.851087] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109c2f
[   33.851148] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.851200] page_type: f5(slab)
[   33.851240] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   33.851304] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   33.851347] page dumped because: kasan: bad access detected
[   33.851463] 
[   33.851779] Memory state around the buggy address:
[   33.852002]  fff00000c9c2f100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   33.852162]  fff00000c9c2f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.852392] >fff00000c9c2f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   33.852445]                                                                 ^
[   33.852493]  fff00000c9c2f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.852580]  fff00000c9c2f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   33.852621] ==================================================================

[   29.211633] ==================================================================
[   29.212470] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260
[   29.213540] Read of size 8 at addr ffff8881060a7478 by task kunit_try_catch/330
[   29.214360] 
[   29.214468] CPU: 0 UID: 0 PID: 330 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   29.214528] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.214543] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.214568] Call Trace:
[   29.214583]  <TASK>
[   29.214603]  dump_stack_lvl+0x73/0xb0
[   29.214638]  print_report+0xd1/0x640
[   29.214665]  ? __virt_addr_valid+0x1db/0x2d0
[   29.214692]  ? copy_to_kernel_nofault+0x225/0x260
[   29.214720]  ? kasan_complete_mode_report_info+0x2a/0x200
[   29.214748]  ? copy_to_kernel_nofault+0x225/0x260
[   29.214773]  kasan_report+0x141/0x180
[   29.214797]  ? copy_to_kernel_nofault+0x225/0x260
[   29.214827]  __asan_report_load8_noabort+0x18/0x20
[   29.214853]  copy_to_kernel_nofault+0x225/0x260
[   29.214880]  copy_to_kernel_nofault_oob+0x1ed/0x560
[   29.214906]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   29.214930]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   29.214956]  ? trace_hardirqs_on+0x37/0xe0
[   29.214991]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   29.215019]  kunit_try_run_case+0x1a5/0x480
[   29.215084]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.215108]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   29.215137]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   29.215176]  ? __kthread_parkme+0x82/0x180
[   29.215198]  ? preempt_count_sub+0x50/0x80
[   29.215223]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.215248]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.215275]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   29.215301]  kthread+0x337/0x6f0
[   29.215323]  ? trace_preempt_on+0x20/0xc0
[   29.215348]  ? __pfx_kthread+0x10/0x10
[   29.215370]  ? _raw_spin_unlock_irq+0x47/0x80
[   29.215427]  ? calculate_sigpending+0x7b/0xa0
[   29.215455]  ? __pfx_kthread+0x10/0x10
[   29.215477]  ret_from_fork+0x116/0x1d0
[   29.215500]  ? __pfx_kthread+0x10/0x10
[   29.215522]  ret_from_fork_asm+0x1a/0x30
[   29.215555]  </TASK>
[   29.215567] 
[   29.224552] Allocated by task 330:
[   29.224753]  kasan_save_stack+0x45/0x70
[   29.224940]  kasan_save_track+0x18/0x40
[   29.225254]  kasan_save_alloc_info+0x3b/0x50
[   29.225505]  __kasan_kmalloc+0xb7/0xc0
[   29.225819]  __kmalloc_cache_noprof+0x189/0x420
[   29.226052]  copy_to_kernel_nofault_oob+0x12f/0x560
[   29.226333]  kunit_try_run_case+0x1a5/0x480
[   29.226584]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.226791]  kthread+0x337/0x6f0
[   29.226951]  ret_from_fork+0x116/0x1d0
[   29.227197]  ret_from_fork_asm+0x1a/0x30
[   29.227446] 
[   29.227782] The buggy address belongs to the object at ffff8881060a7400
[   29.227782]  which belongs to the cache kmalloc-128 of size 128
[   29.228414] The buggy address is located 0 bytes to the right of
[   29.228414]  allocated 120-byte region [ffff8881060a7400, ffff8881060a7478)
[   29.228831] 
[   29.228904] The buggy address belongs to the physical page:
[   29.229368] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060a7
[   29.229724] flags: 0x200000000000000(node=0|zone=2)
[   29.229937] page_type: f5(slab)
[   29.230060] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   29.230782] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   29.231265] page dumped because: kasan: bad access detected
[   29.231522] 
[   29.231801] Memory state around the buggy address:
[   29.232119]  ffff8881060a7300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   29.232475]  ffff8881060a7380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.232923] >ffff8881060a7400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   29.233197]                                                                 ^
[   29.233418]  ffff8881060a7480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.233634]  ffff8881060a7500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.233873] ==================================================================
[   29.234668] ==================================================================
[   29.235102] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260
[   29.235829] Write of size 8 at addr ffff8881060a7478 by task kunit_try_catch/330
[   29.236182] 
[   29.236278] CPU: 0 UID: 0 PID: 330 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   29.236331] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.236345] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.236724] Call Trace:
[   29.236740]  <TASK>
[   29.236760]  dump_stack_lvl+0x73/0xb0
[   29.236795]  print_report+0xd1/0x640
[   29.236819]  ? __virt_addr_valid+0x1db/0x2d0
[   29.236846]  ? copy_to_kernel_nofault+0x99/0x260
[   29.236872]  ? kasan_complete_mode_report_info+0x2a/0x200
[   29.236900]  ? copy_to_kernel_nofault+0x99/0x260
[   29.236925]  kasan_report+0x141/0x180
[   29.236964]  ? copy_to_kernel_nofault+0x99/0x260
[   29.237031]  kasan_check_range+0x10c/0x1c0
[   29.237059]  __kasan_check_write+0x18/0x20
[   29.237083]  copy_to_kernel_nofault+0x99/0x260
[   29.237110]  copy_to_kernel_nofault_oob+0x288/0x560
[   29.237136]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   29.237173]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   29.237227]  ? trace_hardirqs_on+0x37/0xe0
[   29.237285]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   29.237338]  kunit_try_run_case+0x1a5/0x480
[   29.237366]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.237457]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   29.237489]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   29.237516]  ? __kthread_parkme+0x82/0x180
[   29.237538]  ? preempt_count_sub+0x50/0x80
[   29.237595]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.237621]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.237650]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   29.237675]  kthread+0x337/0x6f0
[   29.237696]  ? trace_preempt_on+0x20/0xc0
[   29.237720]  ? __pfx_kthread+0x10/0x10
[   29.237741]  ? _raw_spin_unlock_irq+0x47/0x80
[   29.237767]  ? calculate_sigpending+0x7b/0xa0
[   29.237792]  ? __pfx_kthread+0x10/0x10
[   29.237815]  ret_from_fork+0x116/0x1d0
[   29.237836]  ? __pfx_kthread+0x10/0x10
[   29.237858]  ret_from_fork_asm+0x1a/0x30
[   29.237890]  </TASK>
[   29.237904] 
[   29.250663] Allocated by task 330:
[   29.250873]  kasan_save_stack+0x45/0x70
[   29.251354]  kasan_save_track+0x18/0x40
[   29.251833]  kasan_save_alloc_info+0x3b/0x50
[   29.252011]  __kasan_kmalloc+0xb7/0xc0
[   29.252499]  __kmalloc_cache_noprof+0x189/0x420
[   29.252815]  copy_to_kernel_nofault_oob+0x12f/0x560
[   29.253090]  kunit_try_run_case+0x1a5/0x480
[   29.253258]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.253575]  kthread+0x337/0x6f0
[   29.253749]  ret_from_fork+0x116/0x1d0
[   29.253913]  ret_from_fork_asm+0x1a/0x30
[   29.254536] 
[   29.254640] The buggy address belongs to the object at ffff8881060a7400
[   29.254640]  which belongs to the cache kmalloc-128 of size 128
[   29.255322] The buggy address is located 0 bytes to the right of
[   29.255322]  allocated 120-byte region [ffff8881060a7400, ffff8881060a7478)
[   29.256132] 
[   29.256589] The buggy address belongs to the physical page:
[   29.256797] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060a7
[   29.257295] flags: 0x200000000000000(node=0|zone=2)
[   29.257750] page_type: f5(slab)
[   29.257896] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   29.258485] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   29.258817] page dumped because: kasan: bad access detected
[   29.259288] 
[   29.259502] Memory state around the buggy address:
[   29.259891]  ffff8881060a7300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   29.260375]  ffff8881060a7380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.260660] >ffff8881060a7400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   29.261432]                                                                 ^
[   29.261953]  ffff8881060a7480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.262341]  ffff8881060a7500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.262709] ==================================================================