Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.428091] ================================================================== [ 18.428156] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 18.428219] Read of size 8 at addr fff00000c77d3478 by task kunit_try_catch/282 [ 18.428272] [ 18.428311] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.428399] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.428428] Hardware name: linux,dummy-virt (DT) [ 18.428464] Call trace: [ 18.428494] show_stack+0x20/0x38 (C) [ 18.428566] dump_stack_lvl+0x8c/0xd0 [ 18.428616] print_report+0x118/0x5d0 [ 18.428664] kasan_report+0xdc/0x128 [ 18.428712] __asan_report_load8_noabort+0x20/0x30 [ 18.428765] copy_to_kernel_nofault+0x204/0x250 [ 18.428815] copy_to_kernel_nofault_oob+0x158/0x418 [ 18.428864] kunit_try_run_case+0x170/0x3f0 [ 18.428914] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.428966] kthread+0x328/0x630 [ 18.429009] ret_from_fork+0x10/0x20 [ 18.429060] [ 18.429080] Allocated by task 282: [ 18.429112] kasan_save_stack+0x3c/0x68 [ 18.429153] kasan_save_track+0x20/0x40 [ 18.429192] kasan_save_alloc_info+0x40/0x58 [ 18.429234] __kasan_kmalloc+0xd4/0xd8 [ 18.429273] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.429315] copy_to_kernel_nofault_oob+0xc8/0x418 [ 18.429354] kunit_try_run_case+0x170/0x3f0 [ 18.429394] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.429439] kthread+0x328/0x630 [ 18.429472] ret_from_fork+0x10/0x20 [ 18.429510] [ 18.432844] The buggy address belongs to the object at fff00000c77d3400 [ 18.432844] which belongs to the cache kmalloc-128 of size 128 [ 18.432926] The buggy address is located 0 bytes to the right of [ 18.432926] allocated 120-byte region [fff00000c77d3400, fff00000c77d3478) [ 18.432992] [ 18.433016] The buggy address belongs to the physical page: [ 18.433050] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d3 [ 18.433110] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.433161] page_type: f5(slab) [ 18.433205] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.433257] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.433299] page dumped because: kasan: bad access detected [ 18.433333] [ 18.433353] Memory state around the buggy address: [ 18.433389] fff00000c77d3300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.433432] fff00000c77d3380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.433478] >fff00000c77d3400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.433519] ^ [ 18.433726] fff00000c77d3480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.433877] fff00000c77d3500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.433959] ================================================================== [ 18.436173] ================================================================== [ 18.436547] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 18.436645] Write of size 8 at addr fff00000c77d3478 by task kunit_try_catch/282 [ 18.436708] [ 18.436743] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.436824] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.437353] Hardware name: linux,dummy-virt (DT) [ 18.437474] Call trace: [ 18.437559] show_stack+0x20/0x38 (C) [ 18.437675] dump_stack_lvl+0x8c/0xd0 [ 18.437835] print_report+0x118/0x5d0 [ 18.437917] kasan_report+0xdc/0x128 [ 18.437969] kasan_check_range+0x100/0x1a8 [ 18.438278] __kasan_check_write+0x20/0x30 [ 18.438365] copy_to_kernel_nofault+0x8c/0x250 [ 18.438581] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 18.438687] kunit_try_run_case+0x170/0x3f0 [ 18.438916] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.439263] kthread+0x328/0x630 [ 18.439413] ret_from_fork+0x10/0x20 [ 18.439603] [ 18.439693] Allocated by task 282: [ 18.439749] kasan_save_stack+0x3c/0x68 [ 18.440189] kasan_save_track+0x20/0x40 [ 18.440284] kasan_save_alloc_info+0x40/0x58 [ 18.440407] __kasan_kmalloc+0xd4/0xd8 [ 18.440518] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.440612] copy_to_kernel_nofault_oob+0xc8/0x418 [ 18.440984] kunit_try_run_case+0x170/0x3f0 [ 18.441186] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.441239] kthread+0x328/0x630 [ 18.441576] ret_from_fork+0x10/0x20 [ 18.441817] [ 18.441934] The buggy address belongs to the object at fff00000c77d3400 [ 18.441934] which belongs to the cache kmalloc-128 of size 128 [ 18.442048] The buggy address is located 0 bytes to the right of [ 18.442048] allocated 120-byte region [fff00000c77d3400, fff00000c77d3478) [ 18.442289] [ 18.442490] The buggy address belongs to the physical page: [ 18.442590] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d3 [ 18.442711] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.442797] page_type: f5(slab) [ 18.442837] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.442891] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.442948] page dumped because: kasan: bad access detected [ 18.442980] [ 18.443011] Memory state around the buggy address: [ 18.443051] fff00000c77d3300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.443111] fff00000c77d3380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.443164] >fff00000c77d3400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.443205] ^ [ 18.443258] fff00000c77d3480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.443303] fff00000c77d3500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.443352] ==================================================================
[ 16.010853] ================================================================== [ 16.012797] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 16.013555] Read of size 8 at addr ffff8881027f9678 by task kunit_try_catch/299 [ 16.014430] [ 16.014966] CPU: 0 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.015036] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.015050] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.015075] Call Trace: [ 16.015090] <TASK> [ 16.015110] dump_stack_lvl+0x73/0xb0 [ 16.015145] print_report+0xd1/0x610 [ 16.015183] ? __virt_addr_valid+0x1db/0x2d0 [ 16.015208] ? copy_to_kernel_nofault+0x225/0x260 [ 16.015233] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.015256] ? copy_to_kernel_nofault+0x225/0x260 [ 16.015281] kasan_report+0x141/0x180 [ 16.015303] ? copy_to_kernel_nofault+0x225/0x260 [ 16.015331] __asan_report_load8_noabort+0x18/0x20 [ 16.015357] copy_to_kernel_nofault+0x225/0x260 [ 16.015382] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 16.015408] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.015433] ? finish_task_switch.isra.0+0x153/0x700 [ 16.015458] ? __schedule+0x10cc/0x2b60 [ 16.015480] ? trace_hardirqs_on+0x37/0xe0 [ 16.015521] ? __pfx_read_tsc+0x10/0x10 [ 16.015544] ? ktime_get_ts64+0x86/0x230 [ 16.015570] kunit_try_run_case+0x1a5/0x480 [ 16.015598] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.015621] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.015646] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.015670] ? __kthread_parkme+0x82/0x180 [ 16.015692] ? preempt_count_sub+0x50/0x80 [ 16.015715] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.015739] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.015764] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.015791] kthread+0x337/0x6f0 [ 16.015812] ? trace_preempt_on+0x20/0xc0 [ 16.015835] ? __pfx_kthread+0x10/0x10 [ 16.015856] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.015878] ? calculate_sigpending+0x7b/0xa0 [ 16.015904] ? __pfx_kthread+0x10/0x10 [ 16.015925] ret_from_fork+0x116/0x1d0 [ 16.015945] ? __pfx_kthread+0x10/0x10 [ 16.015965] ret_from_fork_asm+0x1a/0x30 [ 16.015999] </TASK> [ 16.016011] [ 16.031044] Allocated by task 299: [ 16.031456] kasan_save_stack+0x45/0x70 [ 16.031890] kasan_save_track+0x18/0x40 [ 16.032278] kasan_save_alloc_info+0x3b/0x50 [ 16.032597] __kasan_kmalloc+0xb7/0xc0 [ 16.032918] __kmalloc_cache_noprof+0x189/0x420 [ 16.033395] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.033923] kunit_try_run_case+0x1a5/0x480 [ 16.034075] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.034490] kthread+0x337/0x6f0 [ 16.035006] ret_from_fork+0x116/0x1d0 [ 16.035442] ret_from_fork_asm+0x1a/0x30 [ 16.035879] [ 16.036044] The buggy address belongs to the object at ffff8881027f9600 [ 16.036044] which belongs to the cache kmalloc-128 of size 128 [ 16.036980] The buggy address is located 0 bytes to the right of [ 16.036980] allocated 120-byte region [ffff8881027f9600, ffff8881027f9678) [ 16.037687] [ 16.037762] The buggy address belongs to the physical page: [ 16.037935] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027f9 [ 16.038175] flags: 0x200000000000000(node=0|zone=2) [ 16.038421] page_type: f5(slab) [ 16.038561] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.039043] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.039332] page dumped because: kasan: bad access detected [ 16.039545] [ 16.039719] Memory state around the buggy address: [ 16.040155] ffff8881027f9500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.040915] ffff8881027f9580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.041851] >ffff8881027f9600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.042531] ^ [ 16.043217] ffff8881027f9680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.043996] ffff8881027f9700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.044707] ================================================================== [ 16.046181] ================================================================== [ 16.046820] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 16.047566] Write of size 8 at addr ffff8881027f9678 by task kunit_try_catch/299 [ 16.048334] [ 16.048425] CPU: 0 UID: 0 PID: 299 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.048472] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.048484] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.048515] Call Trace: [ 16.048529] <TASK> [ 16.048546] dump_stack_lvl+0x73/0xb0 [ 16.048575] print_report+0xd1/0x610 [ 16.048598] ? __virt_addr_valid+0x1db/0x2d0 [ 16.048621] ? copy_to_kernel_nofault+0x99/0x260 [ 16.048645] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.048668] ? copy_to_kernel_nofault+0x99/0x260 [ 16.048692] kasan_report+0x141/0x180 [ 16.048714] ? copy_to_kernel_nofault+0x99/0x260 [ 16.048742] kasan_check_range+0x10c/0x1c0 [ 16.048766] __kasan_check_write+0x18/0x20 [ 16.048786] copy_to_kernel_nofault+0x99/0x260 [ 16.048812] copy_to_kernel_nofault_oob+0x288/0x560 [ 16.048837] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.048861] ? finish_task_switch.isra.0+0x153/0x700 [ 16.048884] ? __schedule+0x10cc/0x2b60 [ 16.048907] ? trace_hardirqs_on+0x37/0xe0 [ 16.048938] ? __pfx_read_tsc+0x10/0x10 [ 16.048959] ? ktime_get_ts64+0x86/0x230 [ 16.048984] kunit_try_run_case+0x1a5/0x480 [ 16.049009] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.049031] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.049074] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.049099] ? __kthread_parkme+0x82/0x180 [ 16.049121] ? preempt_count_sub+0x50/0x80 [ 16.049144] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.049169] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.049193] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.049218] kthread+0x337/0x6f0 [ 16.049238] ? trace_preempt_on+0x20/0xc0 [ 16.049261] ? __pfx_kthread+0x10/0x10 [ 16.049282] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.049304] ? calculate_sigpending+0x7b/0xa0 [ 16.049329] ? __pfx_kthread+0x10/0x10 [ 16.049362] ret_from_fork+0x116/0x1d0 [ 16.049381] ? __pfx_kthread+0x10/0x10 [ 16.049401] ret_from_fork_asm+0x1a/0x30 [ 16.049444] </TASK> [ 16.049455] [ 16.065209] Allocated by task 299: [ 16.065570] kasan_save_stack+0x45/0x70 [ 16.065842] kasan_save_track+0x18/0x40 [ 16.065978] kasan_save_alloc_info+0x3b/0x50 [ 16.066438] __kasan_kmalloc+0xb7/0xc0 [ 16.066582] __kmalloc_cache_noprof+0x189/0x420 [ 16.066739] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.066903] kunit_try_run_case+0x1a5/0x480 [ 16.067048] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.067686] kthread+0x337/0x6f0 [ 16.068057] ret_from_fork+0x116/0x1d0 [ 16.068418] ret_from_fork_asm+0x1a/0x30 [ 16.068797] [ 16.068951] The buggy address belongs to the object at ffff8881027f9600 [ 16.068951] which belongs to the cache kmalloc-128 of size 128 [ 16.070180] The buggy address is located 0 bytes to the right of [ 16.070180] allocated 120-byte region [ffff8881027f9600, ffff8881027f9678) [ 16.071406] [ 16.071589] The buggy address belongs to the physical page: [ 16.072100] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027f9 [ 16.072971] flags: 0x200000000000000(node=0|zone=2) [ 16.073509] page_type: f5(slab) [ 16.073920] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.074182] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.074864] page dumped because: kasan: bad access detected [ 16.075101] [ 16.075279] Memory state around the buggy address: [ 16.075763] ffff8881027f9500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.076424] ffff8881027f9580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.076978] >ffff8881027f9600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.077665] ^ [ 16.078211] ffff8881027f9680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.078724] ffff8881027f9700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.078940] ==================================================================