Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   30.462993] ==================================================================
[   30.463102] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250
[   30.463214] Write of size 8 at addr fff00000c7719b78 by task kunit_try_catch/281
[   30.466387] 
[   30.466447] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   30.466645] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.466684] Hardware name: linux,dummy-virt (DT)
[   30.466728] Call trace:
[   30.466758]  show_stack+0x20/0x38 (C)
[   30.466822]  dump_stack_lvl+0x8c/0xd0
[   30.466885]  print_report+0x118/0x608
[   30.466944]  kasan_report+0xdc/0x128
[   30.467004]  kasan_check_range+0x100/0x1a8
[   30.467066]  __kasan_check_write+0x20/0x30
[   30.467127]  copy_to_kernel_nofault+0x8c/0x250
[   30.467188]  copy_to_kernel_nofault_oob+0x1bc/0x418
[   30.467252]  kunit_try_run_case+0x170/0x3f0
[   30.467313]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.467627]  kthread+0x328/0x630
[   30.467774]  ret_from_fork+0x10/0x20
[   30.468088] 
[   30.468448] Allocated by task 281:
[   30.468898]  kasan_save_stack+0x3c/0x68
[   30.469009]  kasan_save_track+0x20/0x40
[   30.470193]  kasan_save_alloc_info+0x40/0x58
[   30.470481]  __kasan_kmalloc+0xd4/0xd8
[   30.470587]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.470706]  copy_to_kernel_nofault_oob+0xc8/0x418
[   30.472138]  kunit_try_run_case+0x170/0x3f0
[   30.472254]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.472403]  kthread+0x328/0x630
[   30.473786]  ret_from_fork+0x10/0x20
[   30.474054] 
[   30.474161] The buggy address belongs to the object at fff00000c7719b00
[   30.474161]  which belongs to the cache kmalloc-128 of size 128
[   30.474877] The buggy address is located 0 bytes to the right of
[   30.474877]  allocated 120-byte region [fff00000c7719b00, fff00000c7719b78)
[   30.475274] 
[   30.475366] The buggy address belongs to the physical page:
[   30.475451] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107719
[   30.476087] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.476281] page_type: f5(slab)
[   30.476477] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.476652] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.476781] page dumped because: kasan: bad access detected
[   30.476921] 
[   30.476984] Memory state around the buggy address:
[   30.477075]  fff00000c7719a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   30.477189]  fff00000c7719a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.477324] >fff00000c7719b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.477556]                                                                 ^
[   30.477668]  fff00000c7719b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.477778]  fff00000c7719c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.477877] ==================================================================
[   30.446045] ==================================================================
[   30.446301] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250
[   30.446569] Read of size 8 at addr fff00000c7719b78 by task kunit_try_catch/281
[   30.446793] 
[   30.446938] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   30.447245] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.447390] Hardware name: linux,dummy-virt (DT)
[   30.447481] Call trace:
[   30.447552]  show_stack+0x20/0x38 (C)
[   30.447689]  dump_stack_lvl+0x8c/0xd0
[   30.448008]  print_report+0x118/0x608
[   30.448130]  kasan_report+0xdc/0x128
[   30.448197]  __asan_report_load8_noabort+0x20/0x30
[   30.448259]  copy_to_kernel_nofault+0x204/0x250
[   30.448344]  copy_to_kernel_nofault_oob+0x158/0x418
[   30.448501]  kunit_try_run_case+0x170/0x3f0
[   30.449745]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.449905]  kthread+0x328/0x630
[   30.450040]  ret_from_fork+0x10/0x20
[   30.450174] 
[   30.450298] Allocated by task 281:
[   30.450516]  kasan_save_stack+0x3c/0x68
[   30.450844]  kasan_save_track+0x20/0x40
[   30.451196]  kasan_save_alloc_info+0x40/0x58
[   30.451322]  __kasan_kmalloc+0xd4/0xd8
[   30.451441]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.451541]  copy_to_kernel_nofault_oob+0xc8/0x418
[   30.451643]  kunit_try_run_case+0x170/0x3f0
[   30.451741]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.451848]  kthread+0x328/0x630
[   30.451952]  ret_from_fork+0x10/0x20
[   30.452050] 
[   30.452104] The buggy address belongs to the object at fff00000c7719b00
[   30.452104]  which belongs to the cache kmalloc-128 of size 128
[   30.452249] The buggy address is located 0 bytes to the right of
[   30.452249]  allocated 120-byte region [fff00000c7719b00, fff00000c7719b78)
[   30.453458] 
[   30.453821] The buggy address belongs to the physical page:
[   30.454589] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107719
[   30.455568] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.456139] page_type: f5(slab)
[   30.456592] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.456732] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.457092] page dumped because: kasan: bad access detected
[   30.457454] 
[   30.457509] Memory state around the buggy address:
[   30.458002]  fff00000c7719a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   30.458320]  fff00000c7719a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.458458] >fff00000c7719b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.458563]                                                                 ^
[   30.458669]  fff00000c7719b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.458883]  fff00000c7719c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.459524] ==================================================================


[   15.448635] ==================================================================
[   15.449074] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260
[   15.449596] Write of size 8 at addr ffff888102b2db78 by task kunit_try_catch/298
[   15.449957] 
[   15.450143] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   15.450189] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.450213] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.450235] Call Trace:
[   15.450248]  <TASK>
[   15.450263]  dump_stack_lvl+0x73/0xb0
[   15.450302]  print_report+0xd1/0x650
[   15.450326]  ? __virt_addr_valid+0x1db/0x2d0
[   15.450350]  ? copy_to_kernel_nofault+0x99/0x260
[   15.450383]  ? kasan_complete_mode_report_info+0x2a/0x200
[   15.450407]  ? copy_to_kernel_nofault+0x99/0x260
[   15.450432]  kasan_report+0x141/0x180
[   15.450466]  ? copy_to_kernel_nofault+0x99/0x260
[   15.450495]  kasan_check_range+0x10c/0x1c0
[   15.450528]  __kasan_check_write+0x18/0x20
[   15.450549]  copy_to_kernel_nofault+0x99/0x260
[   15.450575]  copy_to_kernel_nofault_oob+0x288/0x560
[   15.450611]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   15.450635]  ? finish_task_switch.isra.0+0x153/0x700
[   15.450660]  ? __schedule+0x10cc/0x2b60
[   15.450684]  ? trace_hardirqs_on+0x37/0xe0
[   15.450714]  ? __pfx_read_tsc+0x10/0x10
[   15.450736]  ? ktime_get_ts64+0x86/0x230
[   15.450761]  kunit_try_run_case+0x1a5/0x480
[   15.450784]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.450805]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.450831]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.450856]  ? __kthread_parkme+0x82/0x180
[   15.450885]  ? preempt_count_sub+0x50/0x80
[   15.450919]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.450969]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.450996]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.451062]  kthread+0x337/0x6f0
[   15.451095]  ? trace_preempt_on+0x20/0xc0
[   15.451118]  ? __pfx_kthread+0x10/0x10
[   15.451140]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.451164]  ? calculate_sigpending+0x7b/0xa0
[   15.451190]  ? __pfx_kthread+0x10/0x10
[   15.451213]  ret_from_fork+0x116/0x1d0
[   15.451241]  ? __pfx_kthread+0x10/0x10
[   15.451263]  ret_from_fork_asm+0x1a/0x30
[   15.451304]  </TASK>
[   15.451316] 
[   15.460370] Allocated by task 298:
[   15.460558]  kasan_save_stack+0x45/0x70
[   15.460769]  kasan_save_track+0x18/0x40
[   15.461136]  kasan_save_alloc_info+0x3b/0x50
[   15.461337]  __kasan_kmalloc+0xb7/0xc0
[   15.461525]  __kmalloc_cache_noprof+0x189/0x420
[   15.461903]  copy_to_kernel_nofault_oob+0x12f/0x560
[   15.462199]  kunit_try_run_case+0x1a5/0x480
[   15.462407]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.462693]  kthread+0x337/0x6f0
[   15.462864]  ret_from_fork+0x116/0x1d0
[   15.463096]  ret_from_fork_asm+0x1a/0x30
[   15.463303] 
[   15.463396] The buggy address belongs to the object at ffff888102b2db00
[   15.463396]  which belongs to the cache kmalloc-128 of size 128
[   15.463797] The buggy address is located 0 bytes to the right of
[   15.463797]  allocated 120-byte region [ffff888102b2db00, ffff888102b2db78)
[   15.464267] 
[   15.464437] The buggy address belongs to the physical page:
[   15.464756] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b2d
[   15.465361] flags: 0x200000000000000(node=0|zone=2)
[   15.465702] page_type: f5(slab)
[   15.465852] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   15.466231] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.466508] page dumped because: kasan: bad access detected
[   15.466758] 
[   15.466877] Memory state around the buggy address:
[   15.467343]  ffff888102b2da00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.467603]  ffff888102b2da80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.468285] >ffff888102b2db00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   15.468635]                                                                 ^
[   15.468854]  ffff888102b2db80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.469088]  ffff888102b2dc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.469930] ==================================================================
[   15.427102] ==================================================================
[   15.427690] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260
[   15.427958] Read of size 8 at addr ffff888102b2db78 by task kunit_try_catch/298
[   15.428292] 
[   15.428404] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   15.428451] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.428464] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.428487] Call Trace:
[   15.428499]  <TASK>
[   15.428516]  dump_stack_lvl+0x73/0xb0
[   15.428544]  print_report+0xd1/0x650
[   15.428568]  ? __virt_addr_valid+0x1db/0x2d0
[   15.428593]  ? copy_to_kernel_nofault+0x225/0x260
[   15.428617]  ? kasan_complete_mode_report_info+0x2a/0x200
[   15.428640]  ? copy_to_kernel_nofault+0x225/0x260
[   15.428665]  kasan_report+0x141/0x180
[   15.428688]  ? copy_to_kernel_nofault+0x225/0x260
[   15.428817]  __asan_report_load8_noabort+0x18/0x20
[   15.428843]  copy_to_kernel_nofault+0x225/0x260
[   15.428871]  copy_to_kernel_nofault_oob+0x1ed/0x560
[   15.428905]  ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10
[   15.428930]  ? finish_task_switch.isra.0+0x153/0x700
[   15.428955]  ? __schedule+0x10cc/0x2b60
[   15.428979]  ? trace_hardirqs_on+0x37/0xe0
[   15.429010]  ? __pfx_read_tsc+0x10/0x10
[   15.429033]  ? ktime_get_ts64+0x86/0x230
[   15.429300]  kunit_try_run_case+0x1a5/0x480
[   15.429337]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.429358]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.429385]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.429411]  ? __kthread_parkme+0x82/0x180
[   15.429433]  ? preempt_count_sub+0x50/0x80
[   15.429458]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.429480]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.429506]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.429532]  kthread+0x337/0x6f0
[   15.429552]  ? trace_preempt_on+0x20/0xc0
[   15.429577]  ? __pfx_kthread+0x10/0x10
[   15.429601]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.429627]  ? calculate_sigpending+0x7b/0xa0
[   15.429654]  ? __pfx_kthread+0x10/0x10
[   15.429678]  ret_from_fork+0x116/0x1d0
[   15.429698]  ? __pfx_kthread+0x10/0x10
[   15.429720]  ret_from_fork_asm+0x1a/0x30
[   15.429752]  </TASK>
[   15.429766] 
[   15.438507] Allocated by task 298:
[   15.438640]  kasan_save_stack+0x45/0x70
[   15.438787]  kasan_save_track+0x18/0x40
[   15.439120]  kasan_save_alloc_info+0x3b/0x50
[   15.439416]  __kasan_kmalloc+0xb7/0xc0
[   15.439627]  __kmalloc_cache_noprof+0x189/0x420
[   15.439924]  copy_to_kernel_nofault_oob+0x12f/0x560
[   15.440194]  kunit_try_run_case+0x1a5/0x480
[   15.440499]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.440824]  kthread+0x337/0x6f0
[   15.440996]  ret_from_fork+0x116/0x1d0
[   15.441332]  ret_from_fork_asm+0x1a/0x30
[   15.441645] 
[   15.441733] The buggy address belongs to the object at ffff888102b2db00
[   15.441733]  which belongs to the cache kmalloc-128 of size 128
[   15.442263] The buggy address is located 0 bytes to the right of
[   15.442263]  allocated 120-byte region [ffff888102b2db00, ffff888102b2db78)
[   15.442751] 
[   15.442852] The buggy address belongs to the physical page:
[   15.443116] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b2d
[   15.443648] flags: 0x200000000000000(node=0|zone=2)
[   15.443843] page_type: f5(slab)
[   15.444118] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   15.444433] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   15.444668] page dumped because: kasan: bad access detected
[   15.444931] 
[   15.445061] Memory state around the buggy address:
[   15.445506]  ffff888102b2da00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   15.445952]  ffff888102b2da80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.446388] >ffff888102b2db00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   15.446609]                                                                 ^
[   15.446934]  ffff888102b2db80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.447323]  ffff888102b2dc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.447543] ==================================================================