Hay
Date
July 18, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.529935] ==================================================================
[   18.529999] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250
[   18.530062] Read of size 8 at addr fff00000c771e178 by task kunit_try_catch/281
[   18.530116] 
[   18.530289] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   18.530726] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.530781] Hardware name: linux,dummy-virt (DT)
[   18.530969] Call trace:
[   18.531016]  show_stack+0x20/0x38 (C)
[   18.531180]  dump_stack_lvl+0x8c/0xd0
[   18.531263]  print_report+0x118/0x5d0
[   18.531369]  kasan_report+0xdc/0x128
[   18.531425]  __asan_report_load8_noabort+0x20/0x30
[   18.531478]  copy_to_kernel_nofault+0x204/0x250
[   18.531806]  copy_to_kernel_nofault_oob+0x158/0x418
[   18.531884]  kunit_try_run_case+0x170/0x3f0
[   18.532265]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.532359]  kthread+0x328/0x630
[   18.532451]  ret_from_fork+0x10/0x20
[   18.532506] 
[   18.532554] Allocated by task 281:
[   18.532592]  kasan_save_stack+0x3c/0x68
[   18.532683]  kasan_save_track+0x20/0x40
[   18.532723]  kasan_save_alloc_info+0x40/0x58
[   18.533040]  __kasan_kmalloc+0xd4/0xd8
[   18.533113]  __kmalloc_cache_noprof+0x16c/0x3c0
[   18.533180]  copy_to_kernel_nofault_oob+0xc8/0x418
[   18.533226]  kunit_try_run_case+0x170/0x3f0
[   18.533431]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.533608]  kthread+0x328/0x630
[   18.533726]  ret_from_fork+0x10/0x20
[   18.533781] 
[   18.533979] The buggy address belongs to the object at fff00000c771e100
[   18.533979]  which belongs to the cache kmalloc-128 of size 128
[   18.534148] The buggy address is located 0 bytes to the right of
[   18.534148]  allocated 120-byte region [fff00000c771e100, fff00000c771e178)
[   18.534526] 
[   18.534566] The buggy address belongs to the physical page:
[   18.534619] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10771e
[   18.534746] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.534841] page_type: f5(slab)
[   18.534974] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   18.535080] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   18.535479] page dumped because: kasan: bad access detected
[   18.535614] 
[   18.535693] Memory state around the buggy address:
[   18.535758]  fff00000c771e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   18.536156]  fff00000c771e080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.536215] >fff00000c771e100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   18.536314]                                                                 ^
[   18.536495]  fff00000c771e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.536601]  fff00000c771e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.536813] ==================================================================
[   18.538532] ==================================================================
[   18.538586] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250
[   18.538640] Write of size 8 at addr fff00000c771e178 by task kunit_try_catch/281
[   18.538918] 
[   18.539057] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   18.539147] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.539306] Hardware name: linux,dummy-virt (DT)
[   18.539382] Call trace:
[   18.539407]  show_stack+0x20/0x38 (C)
[   18.539504]  dump_stack_lvl+0x8c/0xd0
[   18.539553]  print_report+0x118/0x5d0
[   18.539602]  kasan_report+0xdc/0x128
[   18.539650]  kasan_check_range+0x100/0x1a8
[   18.539701]  __kasan_check_write+0x20/0x30
[   18.539757]  copy_to_kernel_nofault+0x8c/0x250
[   18.539809]  copy_to_kernel_nofault_oob+0x1bc/0x418
[   18.539859]  kunit_try_run_case+0x170/0x3f0
[   18.539908]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.539964]  kthread+0x328/0x630
[   18.540009]  ret_from_fork+0x10/0x20
[   18.540057] 
[   18.540077] Allocated by task 281:
[   18.540119]  kasan_save_stack+0x3c/0x68
[   18.540167]  kasan_save_track+0x20/0x40
[   18.540217]  kasan_save_alloc_info+0x40/0x58
[   18.540261]  __kasan_kmalloc+0xd4/0xd8
[   18.540314]  __kmalloc_cache_noprof+0x16c/0x3c0
[   18.540537]  copy_to_kernel_nofault_oob+0xc8/0x418
[   18.540582]  kunit_try_run_case+0x170/0x3f0
[   18.540826]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.540894]  kthread+0x328/0x630
[   18.541353]  ret_from_fork+0x10/0x20
[   18.541442] 
[   18.541719] The buggy address belongs to the object at fff00000c771e100
[   18.541719]  which belongs to the cache kmalloc-128 of size 128
[   18.541889] The buggy address is located 0 bytes to the right of
[   18.541889]  allocated 120-byte region [fff00000c771e100, fff00000c771e178)
[   18.542054] 
[   18.542144] The buggy address belongs to the physical page:
[   18.542321] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10771e
[   18.542394] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.542444] page_type: f5(slab)
[   18.542526] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   18.542775] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   18.542854] page dumped because: kasan: bad access detected
[   18.543089] 
[   18.543139] Memory state around the buggy address:
[   18.543308]  fff00000c771e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   18.543475]  fff00000c771e080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.543557] >fff00000c771e100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   18.543681]                                                                 ^
[   18.543755]  fff00000c771e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.543803]  fff00000c771e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.543982] ==================================================================

[   16.195412] ==================================================================
[   16.196670] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260
[   16.197849] Read of size 8 at addr ffff8881039ee378 by task kunit_try_catch/300
[   16.198621] 
[   16.198837] CPU: 1 UID: 0 PID: 300 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   16.198892] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.198907] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.198930] Call Trace:
[   16.198944]  <TASK>
[   16.198961]  dump_stack_lvl+0x73/0xb0
[   16.199153]  print_report+0xd1/0x610
[   16.199195]  ? __virt_addr_valid+0x1db/0x2d0
[   16.199236]  ? copy_to_kernel_nofault+0x225/0x260
[   16.199293]  ? kasan_complete_mode_report_info+0x2a/0x200
[   16.199319]  ? copy_to_kernel_nofault+0x225/0x260
[   16.199356]  kasan_report+0x141/0x180
[   16.199379]  ? copy_to_kernel_nofault+0x225/0x260
[   16.199409]  __asan_report_load8_noabort+0x18/0x20
[   16.199434]  copy_to_kernel_nofault+0x225/0x260
[   16.199462]  copy_to_kernel_nofault_oob+0x1ed/0x560
[   16.199506]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   16.199531]  ? finish_task_switch.isra.0+0x153/0x700
[   16.199557]  ? __schedule+0x10cc/0x2b60
[   16.199580]  ? trace_hardirqs_on+0x37/0xe0
[   16.199611]  ? __pfx_read_tsc+0x10/0x10
[   16.199634]  ? ktime_get_ts64+0x86/0x230
[   16.199661]  kunit_try_run_case+0x1a5/0x480
[   16.199688]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.199711]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   16.199736]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.199760]  ? __kthread_parkme+0x82/0x180
[   16.199782]  ? preempt_count_sub+0x50/0x80
[   16.199806]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.199831]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.199855]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.199880]  kthread+0x337/0x6f0
[   16.199901]  ? trace_preempt_on+0x20/0xc0
[   16.199924]  ? __pfx_kthread+0x10/0x10
[   16.199944]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.199967]  ? calculate_sigpending+0x7b/0xa0
[   16.199992]  ? __pfx_kthread+0x10/0x10
[   16.200035]  ret_from_fork+0x116/0x1d0
[   16.200055]  ? __pfx_kthread+0x10/0x10
[   16.200076]  ret_from_fork_asm+0x1a/0x30
[   16.200108]  </TASK>
[   16.200120] 
[   16.216192] Allocated by task 300:
[   16.216467]  kasan_save_stack+0x45/0x70
[   16.216798]  kasan_save_track+0x18/0x40
[   16.216948]  kasan_save_alloc_info+0x3b/0x50
[   16.217114]  __kasan_kmalloc+0xb7/0xc0
[   16.217248]  __kmalloc_cache_noprof+0x189/0x420
[   16.217556]  copy_to_kernel_nofault_oob+0x12f/0x560
[   16.217799]  kunit_try_run_case+0x1a5/0x480
[   16.218111]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.218385]  kthread+0x337/0x6f0
[   16.218537]  ret_from_fork+0x116/0x1d0
[   16.218722]  ret_from_fork_asm+0x1a/0x30
[   16.218966] 
[   16.219081] The buggy address belongs to the object at ffff8881039ee300
[   16.219081]  which belongs to the cache kmalloc-128 of size 128
[   16.219648] The buggy address is located 0 bytes to the right of
[   16.219648]  allocated 120-byte region [ffff8881039ee300, ffff8881039ee378)
[   16.220916] 
[   16.221045] The buggy address belongs to the physical page:
[   16.221284] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039ee
[   16.221633] flags: 0x200000000000000(node=0|zone=2)
[   16.222058] page_type: f5(slab)
[   16.222230] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   16.222546] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.222855] page dumped because: kasan: bad access detected
[   16.223252] 
[   16.223361] Memory state around the buggy address:
[   16.223566]  ffff8881039ee200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.223932]  ffff8881039ee280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.224350] >ffff8881039ee300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.224749]                                                                 ^
[   16.225117]  ffff8881039ee380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.225451]  ffff8881039ee400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.225801] ==================================================================
[   16.226484] ==================================================================
[   16.226823] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260
[   16.227233] Write of size 8 at addr ffff8881039ee378 by task kunit_try_catch/300
[   16.227729] 
[   16.227843] CPU: 1 UID: 0 PID: 300 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   16.227887] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.227900] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.227922] Call Trace:
[   16.227934]  <TASK>
[   16.227950]  dump_stack_lvl+0x73/0xb0
[   16.227979]  print_report+0xd1/0x610
[   16.228000]  ? __virt_addr_valid+0x1db/0x2d0
[   16.228023]  ? copy_to_kernel_nofault+0x99/0x260
[   16.228047]  ? kasan_complete_mode_report_info+0x2a/0x200
[   16.228071]  ? copy_to_kernel_nofault+0x99/0x260
[   16.228096]  kasan_report+0x141/0x180
[   16.228119]  ? copy_to_kernel_nofault+0x99/0x260
[   16.228148]  kasan_check_range+0x10c/0x1c0
[   16.228172]  __kasan_check_write+0x18/0x20
[   16.228193]  copy_to_kernel_nofault+0x99/0x260
[   16.228218]  copy_to_kernel_nofault_oob+0x288/0x560
[   16.228243]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   16.228289]  ? finish_task_switch.isra.0+0x153/0x700
[   16.228330]  ? __schedule+0x10cc/0x2b60
[   16.228353]  ? trace_hardirqs_on+0x37/0xe0
[   16.228395]  ? __pfx_read_tsc+0x10/0x10
[   16.228417]  ? ktime_get_ts64+0x86/0x230
[   16.228442]  kunit_try_run_case+0x1a5/0x480
[   16.228466]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.228506]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   16.228531]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.228555]  ? __kthread_parkme+0x82/0x180
[   16.228575]  ? preempt_count_sub+0x50/0x80
[   16.228599]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.228623]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.228648]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.228673]  kthread+0x337/0x6f0
[   16.228693]  ? trace_preempt_on+0x20/0xc0
[   16.228714]  ? __pfx_kthread+0x10/0x10
[   16.228735]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.228757]  ? calculate_sigpending+0x7b/0xa0
[   16.228783]  ? __pfx_kthread+0x10/0x10
[   16.228805]  ret_from_fork+0x116/0x1d0
[   16.228838]  ? __pfx_kthread+0x10/0x10
[   16.228859]  ret_from_fork_asm+0x1a/0x30
[   16.228890]  </TASK>
[   16.228900] 
[   16.237187] Allocated by task 300:
[   16.237460]  kasan_save_stack+0x45/0x70
[   16.237627]  kasan_save_track+0x18/0x40
[   16.237765]  kasan_save_alloc_info+0x3b/0x50
[   16.237916]  __kasan_kmalloc+0xb7/0xc0
[   16.238145]  __kmalloc_cache_noprof+0x189/0x420
[   16.238378]  copy_to_kernel_nofault_oob+0x12f/0x560
[   16.238666]  kunit_try_run_case+0x1a5/0x480
[   16.239075]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.239284]  kthread+0x337/0x6f0
[   16.239542]  ret_from_fork+0x116/0x1d0
[   16.239709]  ret_from_fork_asm+0x1a/0x30
[   16.239851] 
[   16.239948] The buggy address belongs to the object at ffff8881039ee300
[   16.239948]  which belongs to the cache kmalloc-128 of size 128
[   16.240714] The buggy address is located 0 bytes to the right of
[   16.240714]  allocated 120-byte region [ffff8881039ee300, ffff8881039ee378)
[   16.241278] 
[   16.241425] The buggy address belongs to the physical page:
[   16.241688] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039ee
[   16.242083] flags: 0x200000000000000(node=0|zone=2)
[   16.242269] page_type: f5(slab)
[   16.242408] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   16.242650] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.242881] page dumped because: kasan: bad access detected
[   16.243053] 
[   16.243241] Memory state around the buggy address:
[   16.243499]  ffff8881039ee200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.243817]  ffff8881039ee280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.244337] >ffff8881039ee300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.244668]                                                                 ^
[   16.244925]  ffff8881039ee380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.245329]  ffff8881039ee400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.245760] ==================================================================