Date
May 29, 2025, 7:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.891904] ================================================================== [ 25.892325] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 25.892510] Read of size 8 at addr fff00000c7883278 by task kunit_try_catch/281 [ 25.892642] [ 25.892742] CPU: 1 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 25.892969] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.893039] Hardware name: linux,dummy-virt (DT) [ 25.893129] Call trace: [ 25.893192] show_stack+0x20/0x38 (C) [ 25.893327] dump_stack_lvl+0x8c/0xd0 [ 25.893473] print_report+0x118/0x608 [ 25.893602] kasan_report+0xdc/0x128 [ 25.893721] __asan_report_load8_noabort+0x20/0x30 [ 25.893848] copy_to_kernel_nofault+0x204/0x250 [ 25.893976] copy_to_kernel_nofault_oob+0x158/0x418 [ 25.894112] kunit_try_run_case+0x170/0x3f0 [ 25.894237] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.894587] kthread+0x328/0x630 [ 25.894755] ret_from_fork+0x10/0x20 [ 25.894929] [ 25.894978] Allocated by task 281: [ 25.895160] kasan_save_stack+0x3c/0x68 [ 25.895280] kasan_save_track+0x20/0x40 [ 25.895371] kasan_save_alloc_info+0x40/0x58 [ 25.895474] __kasan_kmalloc+0xd4/0xd8 [ 25.895577] __kmalloc_cache_noprof+0x15c/0x3c0 [ 25.895766] copy_to_kernel_nofault_oob+0xc8/0x418 [ 25.895892] kunit_try_run_case+0x170/0x3f0 [ 25.895993] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.896087] kthread+0x328/0x630 [ 25.896592] ret_from_fork+0x10/0x20 [ 25.896909] [ 25.896997] The buggy address belongs to the object at fff00000c7883200 [ 25.896997] which belongs to the cache kmalloc-128 of size 128 [ 25.897413] The buggy address is located 0 bytes to the right of [ 25.897413] allocated 120-byte region [fff00000c7883200, fff00000c7883278) [ 25.898022] [ 25.898382] The buggy address belongs to the physical page: [ 25.898484] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107883 [ 25.898610] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.899099] page_type: f5(slab) [ 25.899235] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 25.899352] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.900167] page dumped because: kasan: bad access detected [ 25.900583] [ 25.901011] Memory state around the buggy address: [ 25.901558] fff00000c7883100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.902067] fff00000c7883180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.902436] >fff00000c7883200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.902557] ^ [ 25.902675] fff00000c7883280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.902788] fff00000c7883300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.902938] ================================================================== [ 25.903922] ================================================================== [ 25.904057] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 25.904203] Write of size 8 at addr fff00000c7883278 by task kunit_try_catch/281 [ 25.904336] [ 25.904435] CPU: 1 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 25.904655] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.904729] Hardware name: linux,dummy-virt (DT) [ 25.904818] Call trace: [ 25.904879] show_stack+0x20/0x38 (C) [ 25.905014] dump_stack_lvl+0x8c/0xd0 [ 25.905144] print_report+0x118/0x608 [ 25.905270] kasan_report+0xdc/0x128 [ 25.905388] kasan_check_range+0x100/0x1a8 [ 25.907283] __kasan_check_write+0x20/0x30 [ 25.907454] copy_to_kernel_nofault+0x8c/0x250 [ 25.907592] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 25.907712] kunit_try_run_case+0x170/0x3f0 [ 25.907933] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.908141] kthread+0x328/0x630 [ 25.908267] ret_from_fork+0x10/0x20 [ 25.908414] [ 25.908491] Allocated by task 281: [ 25.908570] kasan_save_stack+0x3c/0x68 [ 25.908682] kasan_save_track+0x20/0x40 [ 25.908778] kasan_save_alloc_info+0x40/0x58 [ 25.908878] __kasan_kmalloc+0xd4/0xd8 [ 25.908980] __kmalloc_cache_noprof+0x15c/0x3c0 [ 25.909081] copy_to_kernel_nofault_oob+0xc8/0x418 [ 25.909189] kunit_try_run_case+0x170/0x3f0 [ 25.909326] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.909444] kthread+0x328/0x630 [ 25.909530] ret_from_fork+0x10/0x20 [ 25.909656] [ 25.909745] The buggy address belongs to the object at fff00000c7883200 [ 25.909745] which belongs to the cache kmalloc-128 of size 128 [ 25.909922] The buggy address is located 0 bytes to the right of [ 25.909922] allocated 120-byte region [fff00000c7883200, fff00000c7883278) [ 25.910102] [ 25.910170] The buggy address belongs to the physical page: [ 25.910258] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107883 [ 25.910442] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.910665] page_type: f5(slab) [ 25.910846] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 25.911082] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.911179] page dumped because: kasan: bad access detected [ 25.911248] [ 25.911543] Memory state around the buggy address: [ 25.911654] fff00000c7883100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.911776] fff00000c7883180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.912798] >fff00000c7883200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.912946] ^ [ 25.913062] fff00000c7883280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.913182] fff00000c7883300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.913282] ==================================================================
[ 14.749271] ================================================================== [ 14.750867] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 14.751821] Read of size 8 at addr ffff8881028b1a78 by task kunit_try_catch/298 [ 14.752650] [ 14.752769] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 14.752822] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.752837] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.752861] Call Trace: [ 14.752875] <TASK> [ 14.752894] dump_stack_lvl+0x73/0xb0 [ 14.752924] print_report+0xd1/0x650 [ 14.752949] ? __virt_addr_valid+0x1db/0x2d0 [ 14.752974] ? copy_to_kernel_nofault+0x225/0x260 [ 14.753000] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.753024] ? copy_to_kernel_nofault+0x225/0x260 [ 14.753052] kasan_report+0x141/0x180 [ 14.753076] ? copy_to_kernel_nofault+0x225/0x260 [ 14.753107] __asan_report_load8_noabort+0x18/0x20 [ 14.753129] copy_to_kernel_nofault+0x225/0x260 [ 14.753157] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 14.753182] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 14.753208] ? finish_task_switch.isra.0+0x153/0x700 [ 14.753233] ? __schedule+0x10cc/0x2b60 [ 14.753258] ? trace_hardirqs_on+0x37/0xe0 [ 14.753290] ? __pfx_read_tsc+0x10/0x10 [ 14.753312] ? ktime_get_ts64+0x86/0x230 [ 14.753338] kunit_try_run_case+0x1a5/0x480 [ 14.753361] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.753381] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.753407] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.753432] ? __kthread_parkme+0x82/0x180 [ 14.753453] ? preempt_count_sub+0x50/0x80 [ 14.753478] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.753500] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.753525] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.753551] kthread+0x337/0x6f0 [ 14.753572] ? trace_preempt_on+0x20/0xc0 [ 14.753595] ? __pfx_kthread+0x10/0x10 [ 14.753626] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.753650] ? calculate_sigpending+0x7b/0xa0 [ 14.753676] ? __pfx_kthread+0x10/0x10 [ 14.753698] ret_from_fork+0x116/0x1d0 [ 14.753718] ? __pfx_kthread+0x10/0x10 [ 14.753740] ret_from_fork_asm+0x1a/0x30 [ 14.753771] </TASK> [ 14.753784] [ 14.766411] Allocated by task 298: [ 14.766559] kasan_save_stack+0x45/0x70 [ 14.766924] kasan_save_track+0x18/0x40 [ 14.767272] kasan_save_alloc_info+0x3b/0x50 [ 14.767847] __kasan_kmalloc+0xb7/0xc0 [ 14.768191] __kmalloc_cache_noprof+0x189/0x420 [ 14.768635] copy_to_kernel_nofault_oob+0x12f/0x560 [ 14.769259] kunit_try_run_case+0x1a5/0x480 [ 14.769896] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.770400] kthread+0x337/0x6f0 [ 14.770740] ret_from_fork+0x116/0x1d0 [ 14.771176] ret_from_fork_asm+0x1a/0x30 [ 14.771558] [ 14.771754] The buggy address belongs to the object at ffff8881028b1a00 [ 14.771754] which belongs to the cache kmalloc-128 of size 128 [ 14.773147] The buggy address is located 0 bytes to the right of [ 14.773147] allocated 120-byte region [ffff8881028b1a00, ffff8881028b1a78) [ 14.774359] [ 14.774564] The buggy address belongs to the physical page: [ 14.775220] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028b1 [ 14.776168] flags: 0x200000000000000(node=0|zone=2) [ 14.776648] page_type: f5(slab) [ 14.777045] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 14.777879] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 14.778563] page dumped because: kasan: bad access detected [ 14.779133] [ 14.779323] Memory state around the buggy address: [ 14.779794] ffff8881028b1900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.780588] ffff8881028b1980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.781348] >ffff8881028b1a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 14.781874] ^ [ 14.782231] ffff8881028b1a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.782459] ffff8881028b1b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.782718] ================================================================== [ 14.784049] ================================================================== [ 14.784717] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 14.785348] Write of size 8 at addr ffff8881028b1a78 by task kunit_try_catch/298 [ 14.785995] [ 14.786227] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 14.786285] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.786299] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.786321] Call Trace: [ 14.786473] <TASK> [ 14.786489] dump_stack_lvl+0x73/0xb0 [ 14.786517] print_report+0xd1/0x650 [ 14.786545] ? __virt_addr_valid+0x1db/0x2d0 [ 14.786569] ? copy_to_kernel_nofault+0x99/0x260 [ 14.786595] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.786629] ? copy_to_kernel_nofault+0x99/0x260 [ 14.786656] kasan_report+0x141/0x180 [ 14.786680] ? copy_to_kernel_nofault+0x99/0x260 [ 14.786711] kasan_check_range+0x10c/0x1c0 [ 14.786737] __kasan_check_write+0x18/0x20 [ 14.786759] copy_to_kernel_nofault+0x99/0x260 [ 14.786787] copy_to_kernel_nofault_oob+0x288/0x560 [ 14.786824] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 14.786864] ? finish_task_switch.isra.0+0x153/0x700 [ 14.786889] ? __schedule+0x10cc/0x2b60 [ 14.786913] ? trace_hardirqs_on+0x37/0xe0 [ 14.786945] ? __pfx_read_tsc+0x10/0x10 [ 14.786967] ? ktime_get_ts64+0x86/0x230 [ 14.786992] kunit_try_run_case+0x1a5/0x480 [ 14.787015] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.787035] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.787061] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.787087] ? __kthread_parkme+0x82/0x180 [ 14.787108] ? preempt_count_sub+0x50/0x80 [ 14.787132] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.787154] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.787179] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.787205] kthread+0x337/0x6f0 [ 14.787226] ? trace_preempt_on+0x20/0xc0 [ 14.787249] ? __pfx_kthread+0x10/0x10 [ 14.787271] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.787294] ? calculate_sigpending+0x7b/0xa0 [ 14.787319] ? __pfx_kthread+0x10/0x10 [ 14.787342] ret_from_fork+0x116/0x1d0 [ 14.787361] ? __pfx_kthread+0x10/0x10 [ 14.787383] ret_from_fork_asm+0x1a/0x30 [ 14.787414] </TASK> [ 14.787425] [ 14.800468] Allocated by task 298: [ 14.800679] kasan_save_stack+0x45/0x70 [ 14.800997] kasan_save_track+0x18/0x40 [ 14.801207] kasan_save_alloc_info+0x3b/0x50 [ 14.801408] __kasan_kmalloc+0xb7/0xc0 [ 14.801579] __kmalloc_cache_noprof+0x189/0x420 [ 14.801750] copy_to_kernel_nofault_oob+0x12f/0x560 [ 14.801981] kunit_try_run_case+0x1a5/0x480 [ 14.802304] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.802503] kthread+0x337/0x6f0 [ 14.802694] ret_from_fork+0x116/0x1d0 [ 14.803145] ret_from_fork_asm+0x1a/0x30 [ 14.803330] [ 14.803427] The buggy address belongs to the object at ffff8881028b1a00 [ 14.803427] which belongs to the cache kmalloc-128 of size 128 [ 14.803838] The buggy address is located 0 bytes to the right of [ 14.803838] allocated 120-byte region [ffff8881028b1a00, ffff8881028b1a78) [ 14.804470] [ 14.804550] The buggy address belongs to the physical page: [ 14.805012] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028b1 [ 14.805308] flags: 0x200000000000000(node=0|zone=2) [ 14.805533] page_type: f5(slab) [ 14.805724] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 14.806149] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 14.806410] page dumped because: kasan: bad access detected [ 14.806709] [ 14.806918] Memory state around the buggy address: [ 14.807237] ffff8881028b1900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.807527] ffff8881028b1980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.807966] >ffff8881028b1a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 14.808257] ^ [ 14.808543] ffff8881028b1a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.808978] ffff8881028b1b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.809232] ==================================================================