Date
March 19, 2025, 10:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 39.648123] ================================================================== [ 39.648300] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 39.648733] Read of size 8 at addr fff00000c5da6f78 by task kunit_try_catch/283 [ 39.648995] [ 39.649194] CPU: 1 UID: 0 PID: 283 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT [ 39.649507] Tainted: [B]=BAD_PAGE, [N]=TEST [ 39.649608] Hardware name: linux,dummy-virt (DT) [ 39.649717] Call trace: [ 39.649799] show_stack+0x20/0x38 (C) [ 39.649950] dump_stack_lvl+0x8c/0xd0 [ 39.650544] print_report+0x118/0x5f0 [ 39.650716] kasan_report+0xc8/0x118 [ 39.650882] __asan_report_load8_noabort+0x20/0x30 [ 39.651089] copy_to_kernel_nofault+0x204/0x250 [ 39.651255] copy_to_kernel_nofault_oob+0x158/0x418 [ 39.651431] kunit_try_run_case+0x14c/0x3d0 [ 39.651605] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 39.651880] kthread+0x318/0x618 [ 39.652043] ret_from_fork+0x10/0x20 [ 39.652228] [ 39.652460] Allocated by task 283: [ 39.652779] kasan_save_stack+0x3c/0x68 [ 39.652915] kasan_save_track+0x20/0x40 [ 39.653033] kasan_save_alloc_info+0x40/0x58 [ 39.653626] __kasan_kmalloc+0xd4/0xd8 [ 39.653781] __kmalloc_cache_noprof+0x15c/0x3c0 [ 39.653954] copy_to_kernel_nofault_oob+0xc8/0x418 [ 39.654108] kunit_try_run_case+0x14c/0x3d0 [ 39.654245] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 39.654832] kthread+0x318/0x618 [ 39.654966] ret_from_fork+0x10/0x20 [ 39.655525] [ 39.655608] The buggy address belongs to the object at fff00000c5da6f00 [ 39.655608] which belongs to the cache kmalloc-128 of size 128 [ 39.655802] The buggy address is located 0 bytes to the right of [ 39.655802] allocated 120-byte region [fff00000c5da6f00, fff00000c5da6f78) [ 39.656622] [ 39.656706] The buggy address belongs to the physical page: [ 39.656827] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105da6 [ 39.657010] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 39.657207] page_type: f5(slab) [ 39.657420] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 39.657695] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 39.657926] page dumped because: kasan: bad access detected [ 39.658101] [ 39.658179] Memory state around the buggy address: [ 39.658695] fff00000c5da6e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.658941] fff00000c5da6e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.659163] >fff00000c5da6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 39.659316] ^ [ 39.659523] fff00000c5da6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.659742] fff00000c5da7000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 39.659919] ================================================================== [ 39.661982] ================================================================== [ 39.662154] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 39.662298] Write of size 8 at addr fff00000c5da6f78 by task kunit_try_catch/283 [ 39.662468] [ 39.662568] CPU: 1 UID: 0 PID: 283 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT [ 39.662846] Tainted: [B]=BAD_PAGE, [N]=TEST [ 39.662950] Hardware name: linux,dummy-virt (DT) [ 39.663553] Call trace: [ 39.663961] show_stack+0x20/0x38 (C) [ 39.664565] dump_stack_lvl+0x8c/0xd0 [ 39.665006] print_report+0x118/0x5f0 [ 39.665179] kasan_report+0xc8/0x118 [ 39.665334] kasan_check_range+0x100/0x1a8 [ 39.665724] __kasan_check_write+0x20/0x30 [ 39.665945] copy_to_kernel_nofault+0x8c/0x250 [ 39.666150] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 39.666337] kunit_try_run_case+0x14c/0x3d0 [ 39.666612] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 39.666820] kthread+0x318/0x618 [ 39.666975] ret_from_fork+0x10/0x20 [ 39.667196] [ 39.667268] Allocated by task 283: [ 39.667368] kasan_save_stack+0x3c/0x68 [ 39.667555] kasan_save_track+0x20/0x40 [ 39.668027] kasan_save_alloc_info+0x40/0x58 [ 39.668217] __kasan_kmalloc+0xd4/0xd8 [ 39.668341] __kmalloc_cache_noprof+0x15c/0x3c0 [ 39.668491] copy_to_kernel_nofault_oob+0xc8/0x418 [ 39.668636] kunit_try_run_case+0x14c/0x3d0 [ 39.669894] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 39.670140] kthread+0x318/0x618 [ 39.670382] ret_from_fork+0x10/0x20 [ 39.670793] [ 39.670888] The buggy address belongs to the object at fff00000c5da6f00 [ 39.670888] which belongs to the cache kmalloc-128 of size 128 [ 39.671125] The buggy address is located 0 bytes to the right of [ 39.671125] allocated 120-byte region [fff00000c5da6f00, fff00000c5da6f78) [ 39.671355] [ 39.672101] The buggy address belongs to the physical page: [ 39.672391] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105da6 [ 39.672586] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 39.672746] page_type: f5(slab) [ 39.672866] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 39.673128] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 39.673484] page dumped because: kasan: bad access detected [ 39.673642] [ 39.673764] Memory state around the buggy address: [ 39.673881] fff00000c5da6e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.674037] fff00000c5da6e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.674624] >fff00000c5da6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 39.675033] ^ [ 39.675211] fff00000c5da6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.675912] fff00000c5da7000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 39.676486] ==================================================================
[ 28.778915] ================================================================== [ 28.779957] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 28.780791] Write of size 8 at addr ffff88810323a078 by task kunit_try_catch/302 [ 28.781360] [ 28.781631] CPU: 1 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) [ 28.781869] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.781912] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.781978] Call Trace: [ 28.782017] <TASK> [ 28.782058] dump_stack_lvl+0x73/0xb0 [ 28.782208] print_report+0xd1/0x660 [ 28.782285] ? __virt_addr_valid+0x1db/0x2d0 [ 28.782405] ? kasan_complete_mode_report_info+0x2a/0x200 [ 28.782479] kasan_report+0x104/0x140 [ 28.782539] ? copy_to_kernel_nofault+0x99/0x260 [ 28.782614] ? copy_to_kernel_nofault+0x99/0x260 [ 28.782717] kasan_check_range+0x10c/0x1c0 [ 28.782793] __kasan_check_write+0x18/0x20 [ 28.782852] copy_to_kernel_nofault+0x99/0x260 [ 28.782930] copy_to_kernel_nofault_oob+0x213/0x4e0 [ 28.783000] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 28.783061] ? finish_task_switch.isra.0+0x153/0x730 [ 28.783155] ? __schedule+0xd46/0x29c0 [ 28.783292] ? trace_hardirqs_on+0x37/0xe0 [ 28.783484] ? __pfx_read_tsc+0x10/0x10 [ 28.783621] ? ktime_get_ts64+0x86/0x240 [ 28.783751] kunit_try_run_case+0x1b2/0x490 [ 28.783838] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.783910] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 28.784045] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.784173] ? __kthread_parkme+0x82/0x160 [ 28.784248] ? preempt_count_sub+0x50/0x80 [ 28.784362] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.784446] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.784515] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.784580] kthread+0x323/0x710 [ 28.784645] ? trace_preempt_on+0x20/0xc0 [ 28.784725] ? __pfx_kthread+0x10/0x10 [ 28.784788] ? _raw_spin_unlock_irq+0x47/0x80 [ 28.784849] ? calculate_sigpending+0x7b/0xa0 [ 28.785040] ? __pfx_kthread+0x10/0x10 [ 28.785147] ret_from_fork+0x41/0x80 [ 28.785219] ? __pfx_kthread+0x10/0x10 [ 28.785334] ret_from_fork_asm+0x1a/0x30 [ 28.785481] </TASK> [ 28.785547] [ 28.801462] Allocated by task 302: [ 28.801897] kasan_save_stack+0x3d/0x60 [ 28.802201] kasan_save_track+0x18/0x40 [ 28.802757] kasan_save_alloc_info+0x3b/0x50 [ 28.803326] __kasan_kmalloc+0xb7/0xc0 [ 28.803783] __kmalloc_cache_noprof+0x183/0x410 [ 28.804272] copy_to_kernel_nofault_oob+0xc4/0x4e0 [ 28.804881] kunit_try_run_case+0x1b2/0x490 [ 28.805314] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.805657] kthread+0x323/0x710 [ 28.805938] ret_from_fork+0x41/0x80 [ 28.806307] ret_from_fork_asm+0x1a/0x30 [ 28.806747] [ 28.806975] The buggy address belongs to the object at ffff88810323a000 [ 28.806975] which belongs to the cache kmalloc-128 of size 128 [ 28.808523] The buggy address is located 0 bytes to the right of [ 28.808523] allocated 120-byte region [ffff88810323a000, ffff88810323a078) [ 28.809443] [ 28.809608] The buggy address belongs to the physical page: [ 28.809909] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10323a [ 28.810396] flags: 0x200000000000000(node=0|zone=2) [ 28.810740] page_type: f5(slab) [ 28.811278] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 28.812293] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 28.812980] page dumped because: kasan: bad access detected [ 28.813868] [ 28.814096] Memory state around the buggy address: [ 28.814770] ffff888103239f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.815433] ffff888103239f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.816471] >ffff88810323a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 28.817339] ^ [ 28.817931] ffff88810323a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.818454] ffff88810323a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.818886] ================================================================== [ 28.722322] ================================================================== [ 28.723338] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 28.723960] Read of size 8 at addr ffff88810323a078 by task kunit_try_catch/302 [ 28.725662] [ 28.726025] CPU: 1 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) [ 28.726180] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.726205] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.726239] Call Trace: [ 28.726259] <TASK> [ 28.726284] dump_stack_lvl+0x73/0xb0 [ 28.726349] print_report+0xd1/0x660 [ 28.726396] ? __virt_addr_valid+0x1db/0x2d0 [ 28.726466] ? kasan_complete_mode_report_info+0x2a/0x200 [ 28.726505] kasan_report+0x104/0x140 [ 28.726537] ? copy_to_kernel_nofault+0x225/0x260 [ 28.726577] ? copy_to_kernel_nofault+0x225/0x260 [ 28.726621] __asan_report_load8_noabort+0x18/0x20 [ 28.726654] copy_to_kernel_nofault+0x225/0x260 [ 28.726694] copy_to_kernel_nofault_oob+0x178/0x4e0 [ 28.727137] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 28.727195] ? finish_task_switch.isra.0+0x153/0x730 [ 28.727236] ? __schedule+0xd46/0x29c0 [ 28.727269] ? trace_hardirqs_on+0x37/0xe0 [ 28.727321] ? __pfx_read_tsc+0x10/0x10 [ 28.727354] ? ktime_get_ts64+0x86/0x240 [ 28.727394] kunit_try_run_case+0x1b2/0x490 [ 28.727436] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.727471] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 28.727504] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.727538] ? __kthread_parkme+0x82/0x160 [ 28.727570] ? preempt_count_sub+0x50/0x80 [ 28.727635] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.727673] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.727766] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.727807] kthread+0x323/0x710 [ 28.727840] ? trace_preempt_on+0x20/0xc0 [ 28.727875] ? __pfx_kthread+0x10/0x10 [ 28.727910] ? _raw_spin_unlock_irq+0x47/0x80 [ 28.727953] ? calculate_sigpending+0x7b/0xa0 [ 28.727986] ? __pfx_kthread+0x10/0x10 [ 28.728021] ret_from_fork+0x41/0x80 [ 28.728055] ? __pfx_kthread+0x10/0x10 [ 28.728088] ret_from_fork_asm+0x1a/0x30 [ 28.728158] </TASK> [ 28.728178] [ 28.752526] Allocated by task 302: [ 28.752887] kasan_save_stack+0x3d/0x60 [ 28.756172] kasan_save_track+0x18/0x40 [ 28.757136] kasan_save_alloc_info+0x3b/0x50 [ 28.758021] __kasan_kmalloc+0xb7/0xc0 [ 28.758524] __kmalloc_cache_noprof+0x183/0x410 [ 28.759622] copy_to_kernel_nofault_oob+0xc4/0x4e0 [ 28.760550] kunit_try_run_case+0x1b2/0x490 [ 28.761233] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.762091] kthread+0x323/0x710 [ 28.762634] ret_from_fork+0x41/0x80 [ 28.763414] ret_from_fork_asm+0x1a/0x30 [ 28.764142] [ 28.764380] The buggy address belongs to the object at ffff88810323a000 [ 28.764380] which belongs to the cache kmalloc-128 of size 128 [ 28.765999] The buggy address is located 0 bytes to the right of [ 28.765999] allocated 120-byte region [ffff88810323a000, ffff88810323a078) [ 28.766922] [ 28.767849] The buggy address belongs to the physical page: [ 28.768618] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10323a [ 28.769216] flags: 0x200000000000000(node=0|zone=2) [ 28.769614] page_type: f5(slab) [ 28.769987] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 28.770624] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 28.771680] page dumped because: kasan: bad access detected [ 28.772471] [ 28.772743] Memory state around the buggy address: [ 28.773163] ffff888103239f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.773983] ffff888103239f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.774594] >ffff88810323a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 28.775207] ^ [ 28.775973] ffff88810323a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.776748] ffff88810323a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.777456] ==================================================================