Date
July 5, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.209079] ================================================================== [ 21.209215] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 21.209298] Write of size 8 at addr fff00000c78d3a78 by task kunit_try_catch/281 [ 21.209360] [ 21.209395] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 21.209539] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.209579] Hardware name: linux,dummy-virt (DT) [ 21.209613] Call trace: [ 21.209637] show_stack+0x20/0x38 (C) [ 21.209691] dump_stack_lvl+0x8c/0xd0 [ 21.209748] print_report+0x118/0x608 [ 21.209795] kasan_report+0xdc/0x128 [ 21.209851] kasan_check_range+0x100/0x1a8 [ 21.209903] __kasan_check_write+0x20/0x30 [ 21.209948] copy_to_kernel_nofault+0x8c/0x250 [ 21.210001] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 21.210052] kunit_try_run_case+0x170/0x3f0 [ 21.210099] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.210487] kthread+0x328/0x630 [ 21.210567] ret_from_fork+0x10/0x20 [ 21.210724] [ 21.210775] Allocated by task 281: [ 21.211021] kasan_save_stack+0x3c/0x68 [ 21.211086] kasan_save_track+0x20/0x40 [ 21.211132] kasan_save_alloc_info+0x40/0x58 [ 21.211234] __kasan_kmalloc+0xd4/0xd8 [ 21.211353] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.211428] copy_to_kernel_nofault_oob+0xc8/0x418 [ 21.211614] kunit_try_run_case+0x170/0x3f0 [ 21.211659] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.211798] kthread+0x328/0x630 [ 21.211887] ret_from_fork+0x10/0x20 [ 21.211946] [ 21.211967] The buggy address belongs to the object at fff00000c78d3a00 [ 21.211967] which belongs to the cache kmalloc-128 of size 128 [ 21.212027] The buggy address is located 0 bytes to the right of [ 21.212027] allocated 120-byte region [fff00000c78d3a00, fff00000c78d3a78) [ 21.212091] [ 21.212321] The buggy address belongs to the physical page: [ 21.212474] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d3 [ 21.212580] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.212984] page_type: f5(slab) [ 21.213049] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.213125] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.213327] page dumped because: kasan: bad access detected [ 21.213459] [ 21.213531] Memory state around the buggy address: [ 21.213623] fff00000c78d3900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.213670] fff00000c78d3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.214343] >fff00000c78d3a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.214657] ^ [ 21.214873] fff00000c78d3a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.215017] fff00000c78d3b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.215106] ================================================================== [ 21.202330] ================================================================== [ 21.202437] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 21.202528] Read of size 8 at addr fff00000c78d3a78 by task kunit_try_catch/281 [ 21.202598] [ 21.202664] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 21.202750] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.202817] Hardware name: linux,dummy-virt (DT) [ 21.202852] Call trace: [ 21.202878] show_stack+0x20/0x38 (C) [ 21.202945] dump_stack_lvl+0x8c/0xd0 [ 21.203003] print_report+0x118/0x608 [ 21.203071] kasan_report+0xdc/0x128 [ 21.203196] __asan_report_load8_noabort+0x20/0x30 [ 21.203318] copy_to_kernel_nofault+0x204/0x250 [ 21.203414] copy_to_kernel_nofault_oob+0x158/0x418 [ 21.203506] kunit_try_run_case+0x170/0x3f0 [ 21.203558] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.203761] kthread+0x328/0x630 [ 21.203829] ret_from_fork+0x10/0x20 [ 21.203888] [ 21.203927] Allocated by task 281: [ 21.204054] kasan_save_stack+0x3c/0x68 [ 21.204205] kasan_save_track+0x20/0x40 [ 21.204313] kasan_save_alloc_info+0x40/0x58 [ 21.204406] __kasan_kmalloc+0xd4/0xd8 [ 21.204548] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.204724] copy_to_kernel_nofault_oob+0xc8/0x418 [ 21.204787] kunit_try_run_case+0x170/0x3f0 [ 21.204828] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.204896] kthread+0x328/0x630 [ 21.204930] ret_from_fork+0x10/0x20 [ 21.205142] [ 21.205285] The buggy address belongs to the object at fff00000c78d3a00 [ 21.205285] which belongs to the cache kmalloc-128 of size 128 [ 21.205387] The buggy address is located 0 bytes to the right of [ 21.205387] allocated 120-byte region [fff00000c78d3a00, fff00000c78d3a78) [ 21.205594] [ 21.205691] The buggy address belongs to the physical page: [ 21.205769] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d3 [ 21.206050] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.206203] page_type: f5(slab) [ 21.206280] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.206452] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.206561] page dumped because: kasan: bad access detected [ 21.206646] [ 21.206760] Memory state around the buggy address: [ 21.206886] fff00000c78d3900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.206950] fff00000c78d3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.207000] >fff00000c78d3a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.207780] ^ [ 21.207828] fff00000c78d3a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.207872] fff00000c78d3b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.207912] ==================================================================
[ 18.006326] ================================================================== [ 18.007002] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 18.007693] Write of size 8 at addr ffff888103929678 by task kunit_try_catch/299 [ 18.008078] [ 18.008211] CPU: 0 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 18.008282] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.008301] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.008343] Call Trace: [ 18.008361] <TASK> [ 18.008383] dump_stack_lvl+0x73/0xb0 [ 18.008422] print_report+0xd1/0x650 [ 18.008452] ? __virt_addr_valid+0x1db/0x2d0 [ 18.008484] ? copy_to_kernel_nofault+0x99/0x260 [ 18.008517] ? kasan_complete_mode_report_info+0x2a/0x200 [ 18.008549] ? copy_to_kernel_nofault+0x99/0x260 [ 18.008582] kasan_report+0x141/0x180 [ 18.008611] ? copy_to_kernel_nofault+0x99/0x260 [ 18.008649] kasan_check_range+0x10c/0x1c0 [ 18.008680] __kasan_check_write+0x18/0x20 [ 18.008707] copy_to_kernel_nofault+0x99/0x260 [ 18.008741] copy_to_kernel_nofault_oob+0x288/0x560 [ 18.008774] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 18.009062] ? finish_task_switch.isra.0+0x153/0x700 [ 18.009116] ? __schedule+0x10cc/0x2b60 [ 18.009152] ? trace_hardirqs_on+0x37/0xe0 [ 18.009401] ? __pfx_read_tsc+0x10/0x10 [ 18.009450] ? ktime_get_ts64+0x86/0x230 [ 18.009483] kunit_try_run_case+0x1a5/0x480 [ 18.009517] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.009549] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.009584] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.009619] ? __kthread_parkme+0x82/0x180 [ 18.009648] ? preempt_count_sub+0x50/0x80 [ 18.009680] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.009713] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.009747] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.009783] kthread+0x337/0x6f0 [ 18.009820] ? trace_preempt_on+0x20/0xc0 [ 18.009849] ? __pfx_kthread+0x10/0x10 [ 18.009878] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.009908] ? calculate_sigpending+0x7b/0xa0 [ 18.009941] ? __pfx_kthread+0x10/0x10 [ 18.009970] ret_from_fork+0x116/0x1d0 [ 18.009997] ? __pfx_kthread+0x10/0x10 [ 18.010024] ret_from_fork_asm+0x1a/0x30 [ 18.010064] </TASK> [ 18.010081] [ 18.028124] Allocated by task 299: [ 18.028774] kasan_save_stack+0x45/0x70 [ 18.029049] kasan_save_track+0x18/0x40 [ 18.029508] kasan_save_alloc_info+0x3b/0x50 [ 18.029753] __kasan_kmalloc+0xb7/0xc0 [ 18.029971] __kmalloc_cache_noprof+0x189/0x420 [ 18.030659] copy_to_kernel_nofault_oob+0x12f/0x560 [ 18.031085] kunit_try_run_case+0x1a5/0x480 [ 18.031567] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.032084] kthread+0x337/0x6f0 [ 18.032572] ret_from_fork+0x116/0x1d0 [ 18.032858] ret_from_fork_asm+0x1a/0x30 [ 18.033068] [ 18.033464] The buggy address belongs to the object at ffff888103929600 [ 18.033464] which belongs to the cache kmalloc-128 of size 128 [ 18.034360] The buggy address is located 0 bytes to the right of [ 18.034360] allocated 120-byte region [ffff888103929600, ffff888103929678) [ 18.034983] [ 18.035388] The buggy address belongs to the physical page: [ 18.035727] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103929 [ 18.036562] flags: 0x200000000000000(node=0|zone=2) [ 18.036852] page_type: f5(slab) [ 18.037040] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 18.037712] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.038695] page dumped because: kasan: bad access detected [ 18.038921] [ 18.039007] Memory state around the buggy address: [ 18.039333] ffff888103929500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.039736] ffff888103929580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.040009] >ffff888103929600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.040395] ^ [ 18.040684] ffff888103929680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.041269] ffff888103929700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.041601] ================================================================== [ 17.973357] ================================================================== [ 17.973914] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 17.974377] Read of size 8 at addr ffff888103929678 by task kunit_try_catch/299 [ 17.974752] [ 17.974914] CPU: 0 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 17.974975] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.974992] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.975021] Call Trace: [ 17.975039] <TASK> [ 17.975065] dump_stack_lvl+0x73/0xb0 [ 17.975109] print_report+0xd1/0x650 [ 17.975140] ? __virt_addr_valid+0x1db/0x2d0 [ 17.975171] ? copy_to_kernel_nofault+0x225/0x260 [ 17.975200] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.975227] ? copy_to_kernel_nofault+0x225/0x260 [ 17.975285] kasan_report+0x141/0x180 [ 17.975313] ? copy_to_kernel_nofault+0x225/0x260 [ 17.975347] __asan_report_load8_noabort+0x18/0x20 [ 17.975392] copy_to_kernel_nofault+0x225/0x260 [ 17.975422] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 17.975451] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 17.975479] ? finish_task_switch.isra.0+0x153/0x700 [ 17.975508] ? __schedule+0x10cc/0x2b60 [ 17.975536] ? trace_hardirqs_on+0x37/0xe0 [ 17.975574] ? __pfx_read_tsc+0x10/0x10 [ 17.975602] ? ktime_get_ts64+0x86/0x230 [ 17.975632] kunit_try_run_case+0x1a5/0x480 [ 17.975663] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.975690] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.975722] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.975750] ? __kthread_parkme+0x82/0x180 [ 17.975778] ? preempt_count_sub+0x50/0x80 [ 17.975818] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.975847] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.975874] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.975902] kthread+0x337/0x6f0 [ 17.975926] ? trace_preempt_on+0x20/0xc0 [ 17.975953] ? __pfx_kthread+0x10/0x10 [ 17.975992] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.976017] ? calculate_sigpending+0x7b/0xa0 [ 17.976048] ? __pfx_kthread+0x10/0x10 [ 17.976106] ret_from_fork+0x116/0x1d0 [ 17.976130] ? __pfx_kthread+0x10/0x10 [ 17.976166] ret_from_fork_asm+0x1a/0x30 [ 17.976204] </TASK> [ 17.976221] [ 17.988882] Allocated by task 299: [ 17.989350] kasan_save_stack+0x45/0x70 [ 17.989736] kasan_save_track+0x18/0x40 [ 17.990111] kasan_save_alloc_info+0x3b/0x50 [ 17.990525] __kasan_kmalloc+0xb7/0xc0 [ 17.990731] __kmalloc_cache_noprof+0x189/0x420 [ 17.990980] copy_to_kernel_nofault_oob+0x12f/0x560 [ 17.991483] kunit_try_run_case+0x1a5/0x480 [ 17.991884] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.992409] kthread+0x337/0x6f0 [ 17.992759] ret_from_fork+0x116/0x1d0 [ 17.992986] ret_from_fork_asm+0x1a/0x30 [ 17.993543] [ 17.993672] The buggy address belongs to the object at ffff888103929600 [ 17.993672] which belongs to the cache kmalloc-128 of size 128 [ 17.994695] The buggy address is located 0 bytes to the right of [ 17.994695] allocated 120-byte region [ffff888103929600, ffff888103929678) [ 17.995831] [ 17.995953] The buggy address belongs to the physical page: [ 17.996574] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103929 [ 17.997359] flags: 0x200000000000000(node=0|zone=2) [ 17.997855] page_type: f5(slab) [ 17.998052] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 17.998899] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.999496] page dumped because: kasan: bad access detected [ 18.000025] [ 18.000452] Memory state around the buggy address: [ 18.000957] ffff888103929500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.001560] ffff888103929580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.002399] >ffff888103929600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.002948] ^ [ 18.003645] ffff888103929680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.004411] ffff888103929700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.004796] ==================================================================