Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.042480] ================================================================== [ 21.042551] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 21.042986] Read of size 8 at addr fff00000c6f35178 by task kunit_try_catch/281 [ 21.043102] [ 21.043165] CPU: 1 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 21.043408] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.043465] Hardware name: linux,dummy-virt (DT) [ 21.043501] Call trace: [ 21.043656] show_stack+0x20/0x38 (C) [ 21.043719] dump_stack_lvl+0x8c/0xd0 [ 21.043996] print_report+0x118/0x608 [ 21.044437] kasan_report+0xdc/0x128 [ 21.044534] __asan_report_load8_noabort+0x20/0x30 [ 21.044656] copy_to_kernel_nofault+0x204/0x250 [ 21.044774] copy_to_kernel_nofault_oob+0x158/0x418 [ 21.045204] kunit_try_run_case+0x170/0x3f0 [ 21.045327] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.045450] kthread+0x328/0x630 [ 21.045613] ret_from_fork+0x10/0x20 [ 21.045786] [ 21.045819] Allocated by task 281: [ 21.045859] kasan_save_stack+0x3c/0x68 [ 21.046063] kasan_save_track+0x20/0x40 [ 21.046240] kasan_save_alloc_info+0x40/0x58 [ 21.046378] __kasan_kmalloc+0xd4/0xd8 [ 21.046551] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.046647] copy_to_kernel_nofault_oob+0xc8/0x418 [ 21.046870] kunit_try_run_case+0x170/0x3f0 [ 21.046921] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.047138] kthread+0x328/0x630 [ 21.047183] ret_from_fork+0x10/0x20 [ 21.047240] [ 21.047270] The buggy address belongs to the object at fff00000c6f35100 [ 21.047270] which belongs to the cache kmalloc-128 of size 128 [ 21.047721] The buggy address is located 0 bytes to the right of [ 21.047721] allocated 120-byte region [fff00000c6f35100, fff00000c6f35178) [ 21.047932] [ 21.048046] The buggy address belongs to the physical page: [ 21.048131] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106f35 [ 21.048241] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.048314] page_type: f5(slab) [ 21.048539] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.048790] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.048918] page dumped because: kasan: bad access detected [ 21.049019] [ 21.049146] Memory state around the buggy address: [ 21.049227] fff00000c6f35000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.049292] fff00000c6f35080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.049669] >fff00000c6f35100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.049737] ^ [ 21.049865] fff00000c6f35180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.049930] fff00000c6f35200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.050017] ================================================================== [ 21.052094] ================================================================== [ 21.052251] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 21.052315] Write of size 8 at addr fff00000c6f35178 by task kunit_try_catch/281 [ 21.052367] [ 21.052541] CPU: 1 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 21.052634] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.052664] Hardware name: linux,dummy-virt (DT) [ 21.052698] Call trace: [ 21.052721] show_stack+0x20/0x38 (C) [ 21.052775] dump_stack_lvl+0x8c/0xd0 [ 21.052841] print_report+0x118/0x608 [ 21.052890] kasan_report+0xdc/0x128 [ 21.052936] kasan_check_range+0x100/0x1a8 [ 21.052994] __kasan_check_write+0x20/0x30 [ 21.053042] copy_to_kernel_nofault+0x8c/0x250 [ 21.053091] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 21.053142] kunit_try_run_case+0x170/0x3f0 [ 21.053200] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.053262] kthread+0x328/0x630 [ 21.053317] ret_from_fork+0x10/0x20 [ 21.053367] [ 21.053387] Allocated by task 281: [ 21.053416] kasan_save_stack+0x3c/0x68 [ 21.053458] kasan_save_track+0x20/0x40 [ 21.053496] kasan_save_alloc_info+0x40/0x58 [ 21.053538] __kasan_kmalloc+0xd4/0xd8 [ 21.053575] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.053616] copy_to_kernel_nofault_oob+0xc8/0x418 [ 21.053664] kunit_try_run_case+0x170/0x3f0 [ 21.053705] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.053752] kthread+0x328/0x630 [ 21.053785] ret_from_fork+0x10/0x20 [ 21.054069] [ 21.054125] The buggy address belongs to the object at fff00000c6f35100 [ 21.054125] which belongs to the cache kmalloc-128 of size 128 [ 21.054426] The buggy address is located 0 bytes to the right of [ 21.054426] allocated 120-byte region [fff00000c6f35100, fff00000c6f35178) [ 21.054536] [ 21.054561] The buggy address belongs to the physical page: [ 21.054601] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106f35 [ 21.054667] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.054918] page_type: f5(slab) [ 21.054976] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.055366] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.055599] page dumped because: kasan: bad access detected [ 21.055765] [ 21.055950] Memory state around the buggy address: [ 21.056023] fff00000c6f35000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.056238] fff00000c6f35080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.056297] >fff00000c6f35100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.056339] ^ [ 21.056486] fff00000c6f35180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.056763] fff00000c6f35200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.057156] ==================================================================
[ 16.059915] ================================================================== [ 16.060860] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 16.061571] Write of size 8 at addr ffff888103980e78 by task kunit_try_catch/298 [ 16.062155] [ 16.062419] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 16.062487] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.062501] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.062524] Call Trace: [ 16.062546] <TASK> [ 16.062568] dump_stack_lvl+0x73/0xb0 [ 16.062600] print_report+0xd1/0x650 [ 16.062625] ? __virt_addr_valid+0x1db/0x2d0 [ 16.062659] ? copy_to_kernel_nofault+0x99/0x260 [ 16.062683] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.062717] ? copy_to_kernel_nofault+0x99/0x260 [ 16.062742] kasan_report+0x141/0x180 [ 16.062764] ? copy_to_kernel_nofault+0x99/0x260 [ 16.062793] kasan_check_range+0x10c/0x1c0 [ 16.062816] __kasan_check_write+0x18/0x20 [ 16.062836] copy_to_kernel_nofault+0x99/0x260 [ 16.062860] copy_to_kernel_nofault_oob+0x288/0x560 [ 16.062885] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.062907] ? finish_task_switch.isra.0+0x153/0x700 [ 16.062930] ? __schedule+0x10cc/0x2b60 [ 16.062952] ? trace_hardirqs_on+0x37/0xe0 [ 16.062983] ? __pfx_read_tsc+0x10/0x10 [ 16.063005] ? ktime_get_ts64+0x86/0x230 [ 16.063029] kunit_try_run_case+0x1a5/0x480 [ 16.063055] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.063078] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.063101] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.063125] ? __kthread_parkme+0x82/0x180 [ 16.063147] ? preempt_count_sub+0x50/0x80 [ 16.063173] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.063211] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.063244] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.063293] kthread+0x337/0x6f0 [ 16.063326] ? trace_preempt_on+0x20/0xc0 [ 16.063347] ? __pfx_kthread+0x10/0x10 [ 16.063368] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.063390] ? calculate_sigpending+0x7b/0xa0 [ 16.063415] ? __pfx_kthread+0x10/0x10 [ 16.063436] ret_from_fork+0x116/0x1d0 [ 16.063455] ? __pfx_kthread+0x10/0x10 [ 16.063476] ret_from_fork_asm+0x1a/0x30 [ 16.063508] </TASK> [ 16.063521] [ 16.073932] Allocated by task 298: [ 16.074617] kasan_save_stack+0x45/0x70 [ 16.074938] kasan_save_track+0x18/0x40 [ 16.075136] kasan_save_alloc_info+0x3b/0x50 [ 16.075765] __kasan_kmalloc+0xb7/0xc0 [ 16.075950] __kmalloc_cache_noprof+0x189/0x420 [ 16.076287] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.076722] kunit_try_run_case+0x1a5/0x480 [ 16.077280] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.077739] kthread+0x337/0x6f0 [ 16.077926] ret_from_fork+0x116/0x1d0 [ 16.078504] ret_from_fork_asm+0x1a/0x30 [ 16.078679] [ 16.078781] The buggy address belongs to the object at ffff888103980e00 [ 16.078781] which belongs to the cache kmalloc-128 of size 128 [ 16.079819] The buggy address is located 0 bytes to the right of [ 16.079819] allocated 120-byte region [ffff888103980e00, ffff888103980e78) [ 16.080740] [ 16.080844] The buggy address belongs to the physical page: [ 16.081199] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103980 [ 16.081892] flags: 0x200000000000000(node=0|zone=2) [ 16.082162] page_type: f5(slab) [ 16.082305] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.082994] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.083528] page dumped because: kasan: bad access detected [ 16.083768] [ 16.083866] Memory state around the buggy address: [ 16.084323] ffff888103980d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.084820] ffff888103980d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.085126] >ffff888103980e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.085659] ^ [ 16.085930] ffff888103980e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.086509] ffff888103980f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.086930] ================================================================== [ 16.025515] ================================================================== [ 16.026054] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 16.026975] Read of size 8 at addr ffff888103980e78 by task kunit_try_catch/298 [ 16.027872] [ 16.028071] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 16.028129] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.028143] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.028170] Call Trace: [ 16.028350] <TASK> [ 16.028375] dump_stack_lvl+0x73/0xb0 [ 16.028421] print_report+0xd1/0x650 [ 16.028449] ? __virt_addr_valid+0x1db/0x2d0 [ 16.028474] ? copy_to_kernel_nofault+0x225/0x260 [ 16.028500] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.028523] ? copy_to_kernel_nofault+0x225/0x260 [ 16.028547] kasan_report+0x141/0x180 [ 16.028569] ? copy_to_kernel_nofault+0x225/0x260 [ 16.028598] __asan_report_load8_noabort+0x18/0x20 [ 16.028622] copy_to_kernel_nofault+0x225/0x260 [ 16.028647] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 16.028672] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.028695] ? finish_task_switch.isra.0+0x153/0x700 [ 16.028719] ? __schedule+0x10cc/0x2b60 [ 16.028767] ? trace_hardirqs_on+0x37/0xe0 [ 16.028808] ? __pfx_read_tsc+0x10/0x10 [ 16.028830] ? ktime_get_ts64+0x86/0x230 [ 16.028855] kunit_try_run_case+0x1a5/0x480 [ 16.028883] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.028905] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.028930] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.028954] ? __kthread_parkme+0x82/0x180 [ 16.028976] ? preempt_count_sub+0x50/0x80 [ 16.028999] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.029022] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.029045] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.029069] kthread+0x337/0x6f0 [ 16.029088] ? trace_preempt_on+0x20/0xc0 [ 16.029110] ? __pfx_kthread+0x10/0x10 [ 16.029131] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.029153] ? calculate_sigpending+0x7b/0xa0 [ 16.029178] ? __pfx_kthread+0x10/0x10 [ 16.029212] ret_from_fork+0x116/0x1d0 [ 16.029242] ? __pfx_kthread+0x10/0x10 [ 16.029262] ret_from_fork_asm+0x1a/0x30 [ 16.029294] </TASK> [ 16.029307] [ 16.042880] Allocated by task 298: [ 16.043059] kasan_save_stack+0x45/0x70 [ 16.043241] kasan_save_track+0x18/0x40 [ 16.043986] kasan_save_alloc_info+0x3b/0x50 [ 16.044412] __kasan_kmalloc+0xb7/0xc0 [ 16.044877] __kmalloc_cache_noprof+0x189/0x420 [ 16.045372] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.045875] kunit_try_run_case+0x1a5/0x480 [ 16.046344] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.046829] kthread+0x337/0x6f0 [ 16.047151] ret_from_fork+0x116/0x1d0 [ 16.047928] ret_from_fork_asm+0x1a/0x30 [ 16.048414] [ 16.048580] The buggy address belongs to the object at ffff888103980e00 [ 16.048580] which belongs to the cache kmalloc-128 of size 128 [ 16.049685] The buggy address is located 0 bytes to the right of [ 16.049685] allocated 120-byte region [ffff888103980e00, ffff888103980e78) [ 16.050641] [ 16.050782] The buggy address belongs to the physical page: [ 16.051244] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103980 [ 16.051549] flags: 0x200000000000000(node=0|zone=2) [ 16.051731] page_type: f5(slab) [ 16.051997] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.052912] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.053678] page dumped because: kasan: bad access detected [ 16.054298] [ 16.054457] Memory state around the buggy address: [ 16.055008] ffff888103980d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.055723] ffff888103980d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.056825] >ffff888103980e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.057282] ^ [ 16.057870] ffff888103980e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.058738] ffff888103980f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.059269] ==================================================================