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

Environment
qemu-arm64
qemu-x86_64

[   21.523123] ==================================================================
[   21.523771] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250
[   21.524374] Write of size 8 at addr fff00000c65b6278 by task kunit_try_catch/271
[   21.524858] 
[   21.525035] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   21.525140] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.525196] Hardware name: linux,dummy-virt (DT)
[   21.525241] Call trace:
[   21.525272]  show_stack+0x20/0x38 (C)
[   21.525361]  dump_stack_lvl+0x8c/0xd0
[   21.525429]  print_report+0x118/0x608
[   21.525488]  kasan_report+0xdc/0x128
[   21.525575]  kasan_check_range+0x100/0x1a8
[   21.525638]  __kasan_check_write+0x20/0x30
[   21.525692]  copy_to_kernel_nofault+0x8c/0x250
[   21.525779]  copy_to_kernel_nofault_oob+0x1bc/0x418
[   21.525837]  kunit_try_run_case+0x170/0x3f0
[   21.525896]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.525996]  kthread+0x318/0x620
[   21.526058]  ret_from_fork+0x10/0x20
[   21.526718] 
[   21.530434] Allocated by task 271:
[   21.530701]  kasan_save_stack+0x3c/0x68
[   21.530884]  kasan_save_track+0x20/0x40
[   21.531046]  kasan_save_alloc_info+0x40/0x58
[   21.531444]  __kasan_kmalloc+0xd4/0xd8
[   21.531812]  __kmalloc_cache_noprof+0x16c/0x3c0
[   21.532246]  copy_to_kernel_nofault_oob+0xc8/0x418
[   21.532700]  kunit_try_run_case+0x170/0x3f0
[   21.533068]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.533371]  kthread+0x318/0x620
[   21.533682]  ret_from_fork+0x10/0x20
[   21.533950] 
[   21.534303] The buggy address belongs to the object at fff00000c65b6200
[   21.534303]  which belongs to the cache kmalloc-128 of size 128
[   21.535307] The buggy address is located 0 bytes to the right of
[   21.535307]  allocated 120-byte region [fff00000c65b6200, fff00000c65b6278)
[   21.536104] 
[   21.536310] The buggy address belongs to the physical page:
[   21.536794] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065b6
[   21.537408] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.537907] page_type: f5(slab)
[   21.538493] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   21.538950] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   21.539411] page dumped because: kasan: bad access detected
[   21.539911] 
[   21.540188] Memory state around the buggy address:
[   21.540588]  fff00000c65b6100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   21.541162]  fff00000c65b6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.541568] >fff00000c65b6200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   21.542088]                                                                 ^
[   21.543533]  fff00000c65b6280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.544042]  fff00000c65b6300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.544627] ==================================================================
[   21.501387] ==================================================================
[   21.501859] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250
[   21.502957] Read of size 8 at addr fff00000c65b6278 by task kunit_try_catch/271
[   21.503493] 
[   21.503942] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   21.504054] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.504089] Hardware name: linux,dummy-virt (DT)
[   21.504129] Call trace:
[   21.504169]  show_stack+0x20/0x38 (C)
[   21.504237]  dump_stack_lvl+0x8c/0xd0
[   21.504291]  print_report+0x118/0x608
[   21.504343]  kasan_report+0xdc/0x128
[   21.504394]  __asan_report_load8_noabort+0x20/0x30
[   21.504446]  copy_to_kernel_nofault+0x204/0x250
[   21.504502]  copy_to_kernel_nofault_oob+0x158/0x418
[   21.504553]  kunit_try_run_case+0x170/0x3f0
[   21.504607]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.504666]  kthread+0x318/0x620
[   21.504720]  ret_from_fork+0x10/0x20
[   21.504774] 
[   21.509827] Allocated by task 271:
[   21.510038]  kasan_save_stack+0x3c/0x68
[   21.510478]  kasan_save_track+0x20/0x40
[   21.510792]  kasan_save_alloc_info+0x40/0x58
[   21.511225]  __kasan_kmalloc+0xd4/0xd8
[   21.511401]  __kmalloc_cache_noprof+0x16c/0x3c0
[   21.511586]  copy_to_kernel_nofault_oob+0xc8/0x418
[   21.512003]  kunit_try_run_case+0x170/0x3f0
[   21.512493]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.512724]  kthread+0x318/0x620
[   21.512944]  ret_from_fork+0x10/0x20
[   21.513107] 
[   21.513226] The buggy address belongs to the object at fff00000c65b6200
[   21.513226]  which belongs to the cache kmalloc-128 of size 128
[   21.514952] The buggy address is located 0 bytes to the right of
[   21.514952]  allocated 120-byte region [fff00000c65b6200, fff00000c65b6278)
[   21.515515] 
[   21.515658] The buggy address belongs to the physical page:
[   21.515854] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065b6
[   21.516161] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.516400] page_type: f5(slab)
[   21.516567] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   21.517050] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   21.518114] page dumped because: kasan: bad access detected
[   21.518506] 
[   21.518644] Memory state around the buggy address:
[   21.519006]  fff00000c65b6100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   21.519306]  fff00000c65b6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.519738] >fff00000c65b6200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   21.520098]                                                                 ^
[   21.520445]  fff00000c65b6280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.520832]  fff00000c65b6300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.521313] ==================================================================

[   16.693003] ==================================================================
[   16.693353] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260
[   16.693903] Write of size 8 at addr ffff888101bf6278 by task kunit_try_catch/289
[   16.694610] 
[   16.694850] CPU: 1 UID: 0 PID: 289 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   16.695026] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.695045] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.695068] Call Trace:
[   16.695092]  <TASK>
[   16.695108]  dump_stack_lvl+0x73/0xb0
[   16.695135]  print_report+0xd1/0x650
[   16.695172]  ? __virt_addr_valid+0x1db/0x2d0
[   16.695195]  ? copy_to_kernel_nofault+0x99/0x260
[   16.695219]  ? kasan_complete_mode_report_info+0x2a/0x200
[   16.695256]  ? copy_to_kernel_nofault+0x99/0x260
[   16.695281]  kasan_report+0x140/0x180
[   16.695304]  ? copy_to_kernel_nofault+0x99/0x260
[   16.695332]  kasan_check_range+0x10c/0x1c0
[   16.695356]  __kasan_check_write+0x18/0x20
[   16.695380]  copy_to_kernel_nofault+0x99/0x260
[   16.695405]  copy_to_kernel_nofault_oob+0x289/0x560
[   16.695429]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   16.695452]  ? finish_task_switch.isra.0+0x153/0x700
[   16.695477]  ? __schedule+0xce8/0x2840
[   16.695499]  ? trace_hardirqs_on+0x37/0xe0
[   16.695530]  ? __pfx_read_tsc+0x10/0x10
[   16.695553]  ? ktime_get_ts64+0x86/0x230
[   16.695579]  kunit_try_run_case+0x1a6/0x480
[   16.695602]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.695625]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   16.695650]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.695675]  ? __kthread_parkme+0x82/0x160
[   16.695698]  ? preempt_count_sub+0x50/0x80
[   16.695723]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.695747]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.695774]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.695802]  kthread+0x324/0x6e0
[   16.695823]  ? trace_preempt_on+0x20/0xc0
[   16.695847]  ? __pfx_kthread+0x10/0x10
[   16.695870]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.695893]  ? calculate_sigpending+0x7b/0xa0
[   16.695916]  ? __pfx_kthread+0x10/0x10
[   16.695940]  ret_from_fork+0x41/0x80
[   16.695959]  ? __pfx_kthread+0x10/0x10
[   16.695983]  ret_from_fork_asm+0x1a/0x30
[   16.696023]  </TASK>
[   16.696035] 
[   16.704732] Allocated by task 289:
[   16.704934]  kasan_save_stack+0x45/0x70
[   16.705150]  kasan_save_track+0x18/0x40
[   16.705397]  kasan_save_alloc_info+0x3b/0x50
[   16.705682]  __kasan_kmalloc+0xb7/0xc0
[   16.705917]  __kmalloc_cache_noprof+0x18a/0x420
[   16.706167]  copy_to_kernel_nofault_oob+0x130/0x560
[   16.706385]  kunit_try_run_case+0x1a6/0x480
[   16.706725]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.707115]  kthread+0x324/0x6e0
[   16.707288]  ret_from_fork+0x41/0x80
[   16.707468]  ret_from_fork_asm+0x1a/0x30
[   16.707781] 
[   16.707878] The buggy address belongs to the object at ffff888101bf6200
[   16.707878]  which belongs to the cache kmalloc-128 of size 128
[   16.708322] The buggy address is located 0 bytes to the right of
[   16.708322]  allocated 120-byte region [ffff888101bf6200, ffff888101bf6278)
[   16.708781] 
[   16.708889] The buggy address belongs to the physical page:
[   16.709163] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101bf6
[   16.709617] flags: 0x200000000000000(node=0|zone=2)
[   16.709789] page_type: f5(slab)
[   16.709914] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   16.710269] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.710683] page dumped because: kasan: bad access detected
[   16.710858] 
[   16.711101] Memory state around the buggy address:
[   16.711350]  ffff888101bf6100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.711927]  ffff888101bf6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.712256] >ffff888101bf6200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.712490]                                                                 ^
[   16.712913]  ffff888101bf6280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.713336]  ffff888101bf6300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.713555] ==================================================================
[   16.668136] ==================================================================
[   16.668874] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260
[   16.669843] Read of size 8 at addr ffff888101bf6278 by task kunit_try_catch/289
[   16.670472] 
[   16.670595] CPU: 1 UID: 0 PID: 289 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   16.670662] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.670676] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.670698] Call Trace:
[   16.670712]  <TASK>
[   16.670730]  dump_stack_lvl+0x73/0xb0
[   16.670760]  print_report+0xd1/0x650
[   16.670784]  ? __virt_addr_valid+0x1db/0x2d0
[   16.670809]  ? copy_to_kernel_nofault+0x225/0x260
[   16.670834]  ? kasan_complete_mode_report_info+0x2a/0x200
[   16.670860]  ? copy_to_kernel_nofault+0x225/0x260
[   16.670885]  kasan_report+0x140/0x180
[   16.670909]  ? copy_to_kernel_nofault+0x225/0x260
[   16.670938]  __asan_report_load8_noabort+0x18/0x20
[   16.670962]  copy_to_kernel_nofault+0x225/0x260
[   16.670988]  copy_to_kernel_nofault_oob+0x1ee/0x560
[   16.671023]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   16.671047]  ? finish_task_switch.isra.0+0x153/0x700
[   16.671073]  ? __schedule+0xce8/0x2840
[   16.671097]  ? trace_hardirqs_on+0x37/0xe0
[   16.671129]  ? __pfx_read_tsc+0x10/0x10
[   16.671152]  ? ktime_get_ts64+0x86/0x230
[   16.671179]  kunit_try_run_case+0x1a6/0x480
[   16.671203]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.671226]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   16.671251]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   16.671275]  ? __kthread_parkme+0x82/0x160
[   16.671299]  ? preempt_count_sub+0x50/0x80
[   16.671324]  ? __pfx_kunit_try_run_case+0x10/0x10
[   16.671349]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.671377]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   16.671405]  kthread+0x324/0x6e0
[   16.671427]  ? trace_preempt_on+0x20/0xc0
[   16.671451]  ? __pfx_kthread+0x10/0x10
[   16.671474]  ? _raw_spin_unlock_irq+0x47/0x80
[   16.671497]  ? calculate_sigpending+0x7b/0xa0
[   16.671520]  ? __pfx_kthread+0x10/0x10
[   16.671551]  ret_from_fork+0x41/0x80
[   16.671571]  ? __pfx_kthread+0x10/0x10
[   16.671595]  ret_from_fork_asm+0x1a/0x30
[   16.671628]  </TASK>
[   16.671641] 
[   16.682317] Allocated by task 289:
[   16.682648]  kasan_save_stack+0x45/0x70
[   16.682847]  kasan_save_track+0x18/0x40
[   16.683103]  kasan_save_alloc_info+0x3b/0x50
[   16.683372]  __kasan_kmalloc+0xb7/0xc0
[   16.683573]  __kmalloc_cache_noprof+0x18a/0x420
[   16.683976]  copy_to_kernel_nofault_oob+0x130/0x560
[   16.684222]  kunit_try_run_case+0x1a6/0x480
[   16.684455]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.684754]  kthread+0x324/0x6e0
[   16.684986]  ret_from_fork+0x41/0x80
[   16.685162]  ret_from_fork_asm+0x1a/0x30
[   16.685305] 
[   16.685432] The buggy address belongs to the object at ffff888101bf6200
[   16.685432]  which belongs to the cache kmalloc-128 of size 128
[   16.686149] The buggy address is located 0 bytes to the right of
[   16.686149]  allocated 120-byte region [ffff888101bf6200, ffff888101bf6278)
[   16.686604] 
[   16.686707] The buggy address belongs to the physical page:
[   16.687053] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101bf6
[   16.687450] flags: 0x200000000000000(node=0|zone=2)
[   16.687926] page_type: f5(slab)
[   16.688083] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   16.688317] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.688726] page dumped because: kasan: bad access detected
[   16.688961] 
[   16.689047] Memory state around the buggy address:
[   16.689267]  ffff888101bf6100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.689582]  ffff888101bf6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.689805] >ffff888101bf6200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.690028]                                                                 ^
[   16.690362]  ffff888101bf6280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.690959]  ffff888101bf6300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.691311] ==================================================================