Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.052406] ================================================================== [ 20.052479] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 20.052556] Read of size 8 at addr fff00000c4fd8f78 by task kunit_try_catch/290 [ 20.052610] [ 20.052652] CPU: 1 UID: 0 PID: 290 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 20.052764] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.052796] Hardware name: linux,dummy-virt (DT) [ 20.052831] Call trace: [ 20.052857] show_stack+0x20/0x38 (C) [ 20.052912] dump_stack_lvl+0x8c/0xd0 [ 20.052985] print_report+0x118/0x608 [ 20.053039] kasan_report+0xdc/0x128 [ 20.053085] __asan_report_load8_noabort+0x20/0x30 [ 20.053136] copy_to_kernel_nofault+0x204/0x250 [ 20.053186] copy_to_kernel_nofault_oob+0x158/0x418 [ 20.053246] kunit_try_run_case+0x170/0x3f0 [ 20.053298] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.053353] kthread+0x328/0x630 [ 20.053396] ret_from_fork+0x10/0x20 [ 20.053447] [ 20.053467] Allocated by task 290: [ 20.053499] kasan_save_stack+0x3c/0x68 [ 20.053542] kasan_save_track+0x20/0x40 [ 20.053587] kasan_save_alloc_info+0x40/0x58 [ 20.053627] __kasan_kmalloc+0xd4/0xd8 [ 20.053667] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.053710] copy_to_kernel_nofault_oob+0xc8/0x418 [ 20.053751] kunit_try_run_case+0x170/0x3f0 [ 20.053791] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.053837] kthread+0x328/0x630 [ 20.053872] ret_from_fork+0x10/0x20 [ 20.053909] [ 20.054819] The buggy address belongs to the object at fff00000c4fd8f00 [ 20.054819] which belongs to the cache kmalloc-128 of size 128 [ 20.054901] The buggy address is located 0 bytes to the right of [ 20.054901] allocated 120-byte region [fff00000c4fd8f00, fff00000c4fd8f78) [ 20.055372] [ 20.055823] The buggy address belongs to the physical page: [ 20.055896] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104fd8 [ 20.056442] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.056517] page_type: f5(slab) [ 20.057028] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 20.057137] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 20.057485] page dumped because: kasan: bad access detected [ 20.057550] [ 20.057729] Memory state around the buggy address: [ 20.057811] fff00000c4fd8e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.057979] fff00000c4fd8e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.058176] >fff00000c4fd8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 20.058343] ^ [ 20.058474] fff00000c4fd8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.058782] fff00000c4fd9000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.058858] ================================================================== [ 20.060226] ================================================================== [ 20.060530] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 20.060715] Write of size 8 at addr fff00000c4fd8f78 by task kunit_try_catch/290 [ 20.060826] [ 20.061196] CPU: 1 UID: 0 PID: 290 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 20.061363] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.061398] Hardware name: linux,dummy-virt (DT) [ 20.061432] Call trace: [ 20.061456] show_stack+0x20/0x38 (C) [ 20.061790] dump_stack_lvl+0x8c/0xd0 [ 20.061863] print_report+0x118/0x608 [ 20.061917] kasan_report+0xdc/0x128 [ 20.062019] kasan_check_range+0x100/0x1a8 [ 20.062107] __kasan_check_write+0x20/0x30 [ 20.062156] copy_to_kernel_nofault+0x8c/0x250 [ 20.062451] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 20.062672] kunit_try_run_case+0x170/0x3f0 [ 20.062746] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.063052] kthread+0x328/0x630 [ 20.063474] ret_from_fork+0x10/0x20 [ 20.063704] [ 20.063893] Allocated by task 290: [ 20.063958] kasan_save_stack+0x3c/0x68 [ 20.064129] kasan_save_track+0x20/0x40 [ 20.064320] kasan_save_alloc_info+0x40/0x58 [ 20.064402] __kasan_kmalloc+0xd4/0xd8 [ 20.064484] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.064751] copy_to_kernel_nofault_oob+0xc8/0x418 [ 20.064919] kunit_try_run_case+0x170/0x3f0 [ 20.065008] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.065423] kthread+0x328/0x630 [ 20.065532] ret_from_fork+0x10/0x20 [ 20.065616] [ 20.065638] The buggy address belongs to the object at fff00000c4fd8f00 [ 20.065638] which belongs to the cache kmalloc-128 of size 128 [ 20.066004] The buggy address is located 0 bytes to the right of [ 20.066004] allocated 120-byte region [fff00000c4fd8f00, fff00000c4fd8f78) [ 20.066125] [ 20.066257] The buggy address belongs to the physical page: [ 20.066296] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104fd8 [ 20.066403] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.066648] page_type: f5(slab) [ 20.066736] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 20.066842] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 20.066890] page dumped because: kasan: bad access detected [ 20.066950] [ 20.067004] Memory state around the buggy address: [ 20.067419] fff00000c4fd8e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.067473] fff00000c4fd8e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.067789] >fff00000c4fd8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 20.067923] ^ [ 20.067994] fff00000c4fd8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.068193] fff00000c4fd9000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.068361] ==================================================================
[ 24.623752] ================================================================== [ 24.624265] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 24.625666] Write of size 8 at addr ffff888100ab0378 by task kunit_try_catch/308 [ 24.626618] [ 24.626824] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 24.626970] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.627011] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.627074] Call Trace: [ 24.627114] <TASK> [ 24.627165] dump_stack_lvl+0x73/0xb0 [ 24.627266] print_report+0xd1/0x650 [ 24.627347] ? __virt_addr_valid+0x1db/0x2d0 [ 24.627422] ? copy_to_kernel_nofault+0x99/0x260 [ 24.627502] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.627584] ? copy_to_kernel_nofault+0x99/0x260 [ 24.627659] kasan_report+0x141/0x180 [ 24.627732] ? copy_to_kernel_nofault+0x99/0x260 [ 24.627818] kasan_check_range+0x10c/0x1c0 [ 24.627920] __kasan_check_write+0x18/0x20 [ 24.627992] copy_to_kernel_nofault+0x99/0x260 [ 24.628077] copy_to_kernel_nofault_oob+0x288/0x560 [ 24.628167] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 24.628252] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 24.628334] ? trace_hardirqs_on+0x37/0xe0 [ 24.628430] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 24.628477] kunit_try_run_case+0x1a5/0x480 [ 24.628517] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.628551] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.628582] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.628622] ? __kthread_parkme+0x82/0x180 [ 24.628652] ? preempt_count_sub+0x50/0x80 [ 24.628689] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.628724] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.628759] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.628794] kthread+0x337/0x6f0 [ 24.628823] ? trace_preempt_on+0x20/0xc0 [ 24.628885] ? __pfx_kthread+0x10/0x10 [ 24.628917] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.628953] ? calculate_sigpending+0x7b/0xa0 [ 24.628987] ? __pfx_kthread+0x10/0x10 [ 24.629019] ret_from_fork+0x116/0x1d0 [ 24.629048] ? __pfx_kthread+0x10/0x10 [ 24.629079] ret_from_fork_asm+0x1a/0x30 [ 24.629123] </TASK> [ 24.629140] [ 24.645170] Allocated by task 308: [ 24.646036] kasan_save_stack+0x45/0x70 [ 24.647656] kasan_save_track+0x18/0x40 [ 24.649059] kasan_save_alloc_info+0x3b/0x50 [ 24.649994] __kasan_kmalloc+0xb7/0xc0 [ 24.650733] __kmalloc_cache_noprof+0x189/0x420 [ 24.651206] copy_to_kernel_nofault_oob+0x12f/0x560 [ 24.651763] kunit_try_run_case+0x1a5/0x480 [ 24.652505] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.653691] kthread+0x337/0x6f0 [ 24.654415] ret_from_fork+0x116/0x1d0 [ 24.655094] ret_from_fork_asm+0x1a/0x30 [ 24.655623] [ 24.655784] The buggy address belongs to the object at ffff888100ab0300 [ 24.655784] which belongs to the cache kmalloc-128 of size 128 [ 24.656543] The buggy address is located 0 bytes to the right of [ 24.656543] allocated 120-byte region [ffff888100ab0300, ffff888100ab0378) [ 24.657472] [ 24.657680] The buggy address belongs to the physical page: [ 24.658498] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100ab0 [ 24.658945] flags: 0x200000000000000(node=0|zone=2) [ 24.659391] page_type: f5(slab) [ 24.659652] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.660110] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.663373] page dumped because: kasan: bad access detected [ 24.664376] [ 24.664899] Memory state around the buggy address: [ 24.666314] ffff888100ab0200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.668642] ffff888100ab0280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.670723] >ffff888100ab0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.672122] ^ [ 24.673745] ffff888100ab0380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.675156] ffff888100ab0400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.675987] ================================================================== [ 24.577667] ================================================================== [ 24.578818] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 24.580483] Read of size 8 at addr ffff888100ab0378 by task kunit_try_catch/308 [ 24.581133] [ 24.581716] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 24.581902] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.581947] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.582009] Call Trace: [ 24.582052] <TASK> [ 24.582094] dump_stack_lvl+0x73/0xb0 [ 24.582144] print_report+0xd1/0x650 [ 24.582179] ? __virt_addr_valid+0x1db/0x2d0 [ 24.582216] ? copy_to_kernel_nofault+0x225/0x260 [ 24.582292] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.582373] ? copy_to_kernel_nofault+0x225/0x260 [ 24.582431] kasan_report+0x141/0x180 [ 24.582466] ? copy_to_kernel_nofault+0x225/0x260 [ 24.582506] __asan_report_load8_noabort+0x18/0x20 [ 24.582544] copy_to_kernel_nofault+0x225/0x260 [ 24.582580] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 24.582614] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 24.582647] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 24.582683] ? trace_hardirqs_on+0x37/0xe0 [ 24.582725] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 24.582763] kunit_try_run_case+0x1a5/0x480 [ 24.582801] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.582859] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.582894] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.582933] ? __kthread_parkme+0x82/0x180 [ 24.582963] ? preempt_count_sub+0x50/0x80 [ 24.582996] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.583031] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.583064] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.583096] kthread+0x337/0x6f0 [ 24.583126] ? trace_preempt_on+0x20/0xc0 [ 24.583158] ? __pfx_kthread+0x10/0x10 [ 24.583186] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.583233] ? calculate_sigpending+0x7b/0xa0 [ 24.583319] ? __pfx_kthread+0x10/0x10 [ 24.583367] ret_from_fork+0x116/0x1d0 [ 24.583396] ? __pfx_kthread+0x10/0x10 [ 24.583427] ret_from_fork_asm+0x1a/0x30 [ 24.583471] </TASK> [ 24.583489] [ 24.602067] Allocated by task 308: [ 24.602393] kasan_save_stack+0x45/0x70 [ 24.602810] kasan_save_track+0x18/0x40 [ 24.603561] kasan_save_alloc_info+0x3b/0x50 [ 24.604664] __kasan_kmalloc+0xb7/0xc0 [ 24.604999] __kmalloc_cache_noprof+0x189/0x420 [ 24.605611] copy_to_kernel_nofault_oob+0x12f/0x560 [ 24.606245] kunit_try_run_case+0x1a5/0x480 [ 24.606634] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.607385] kthread+0x337/0x6f0 [ 24.607760] ret_from_fork+0x116/0x1d0 [ 24.608312] ret_from_fork_asm+0x1a/0x30 [ 24.608778] [ 24.609197] The buggy address belongs to the object at ffff888100ab0300 [ 24.609197] which belongs to the cache kmalloc-128 of size 128 [ 24.610431] The buggy address is located 0 bytes to the right of [ 24.610431] allocated 120-byte region [ffff888100ab0300, ffff888100ab0378) [ 24.611656] [ 24.611882] The buggy address belongs to the physical page: [ 24.612647] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100ab0 [ 24.613136] flags: 0x200000000000000(node=0|zone=2) [ 24.613514] page_type: f5(slab) [ 24.613895] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.614972] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.616037] page dumped because: kasan: bad access detected [ 24.616569] [ 24.616782] Memory state around the buggy address: [ 24.617164] ffff888100ab0200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.618056] ffff888100ab0280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.618851] >ffff888100ab0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.619864] ^ [ 24.620689] ffff888100ab0380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.621287] ffff888100ab0400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.622107] ==================================================================