Date
Nov. 22, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 38.797727] ================================================================== [ 38.799363] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 38.800196] Read of size 8 at addr fff00000c6317a78 by task kunit_try_catch/270 [ 38.801310] [ 38.802343] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 38.803645] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.804279] Hardware name: linux,dummy-virt (DT) [ 38.805647] Call trace: [ 38.806100] show_stack+0x20/0x38 (C) [ 38.806805] dump_stack_lvl+0x8c/0xd0 [ 38.807717] print_report+0x118/0x5e0 [ 38.808331] kasan_report+0xc8/0x118 [ 38.809359] __asan_report_load8_noabort+0x20/0x30 [ 38.810065] copy_to_kernel_nofault+0x204/0x250 [ 38.810861] copy_to_kernel_nofault_oob+0x158/0x418 [ 38.811607] kunit_try_run_case+0x14c/0x3d0 [ 38.812317] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.813172] kthread+0x24c/0x2d0 [ 38.813733] ret_from_fork+0x10/0x20 [ 38.814308] [ 38.815313] Allocated by task 270: [ 38.815909] kasan_save_stack+0x3c/0x68 [ 38.816802] kasan_save_track+0x20/0x40 [ 38.817519] kasan_save_alloc_info+0x40/0x58 [ 38.818191] __kasan_kmalloc+0xd4/0xd8 [ 38.818747] __kmalloc_cache_noprof+0x15c/0x3c8 [ 38.819395] copy_to_kernel_nofault_oob+0xc8/0x418 [ 38.820042] kunit_try_run_case+0x14c/0x3d0 [ 38.820786] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.822056] kthread+0x24c/0x2d0 [ 38.823009] ret_from_fork+0x10/0x20 [ 38.824110] [ 38.824809] The buggy address belongs to the object at fff00000c6317a00 [ 38.824809] which belongs to the cache kmalloc-128 of size 128 [ 38.826289] The buggy address is located 0 bytes to the right of [ 38.826289] allocated 120-byte region [fff00000c6317a00, fff00000c6317a78) [ 38.827634] [ 38.828025] The buggy address belongs to the physical page: [ 38.828812] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106317 [ 38.829787] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 38.830703] page_type: f5(slab) [ 38.831356] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 38.832230] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 38.833470] page dumped because: kasan: bad access detected [ 38.834489] [ 38.834763] Memory state around the buggy address: [ 38.835395] fff00000c6317900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 38.837204] fff00000c6317980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.838497] >fff00000c6317a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 38.839598] ^ [ 38.840501] fff00000c6317a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.842113] fff00000c6317b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.843431] ================================================================== [ 38.846974] ================================================================== [ 38.847924] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 38.848880] Write of size 8 at addr fff00000c6317a78 by task kunit_try_catch/270 [ 38.849838] [ 38.850650] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 38.851793] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.852332] Hardware name: linux,dummy-virt (DT) [ 38.853468] Call trace: [ 38.853917] show_stack+0x20/0x38 (C) [ 38.854356] dump_stack_lvl+0x8c/0xd0 [ 38.855143] print_report+0x118/0x5e0 [ 38.855774] kasan_report+0xc8/0x118 [ 38.856519] kasan_check_range+0x100/0x1a8 [ 38.857185] __kasan_check_write+0x20/0x30 [ 38.858077] copy_to_kernel_nofault+0x8c/0x250 [ 38.858814] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 38.859584] kunit_try_run_case+0x14c/0x3d0 [ 38.860102] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.861543] kthread+0x24c/0x2d0 [ 38.862392] ret_from_fork+0x10/0x20 [ 38.863107] [ 38.863640] Allocated by task 270: [ 38.864119] kasan_save_stack+0x3c/0x68 [ 38.866298] kasan_save_track+0x20/0x40 [ 38.867004] kasan_save_alloc_info+0x40/0x58 [ 38.867676] __kasan_kmalloc+0xd4/0xd8 [ 38.868336] __kmalloc_cache_noprof+0x15c/0x3c8 [ 38.869080] copy_to_kernel_nofault_oob+0xc8/0x418 [ 38.869893] kunit_try_run_case+0x14c/0x3d0 [ 38.870746] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.871899] kthread+0x24c/0x2d0 [ 38.872518] ret_from_fork+0x10/0x20 [ 38.873431] [ 38.873824] The buggy address belongs to the object at fff00000c6317a00 [ 38.873824] which belongs to the cache kmalloc-128 of size 128 [ 38.875386] The buggy address is located 0 bytes to the right of [ 38.875386] allocated 120-byte region [fff00000c6317a00, fff00000c6317a78) [ 38.877248] [ 38.877869] The buggy address belongs to the physical page: [ 38.878394] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106317 [ 38.879529] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 38.880405] page_type: f5(slab) [ 38.881659] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 38.883001] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 38.883759] page dumped because: kasan: bad access detected [ 38.884750] [ 38.885480] Memory state around the buggy address: [ 38.886816] fff00000c6317900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.887666] fff00000c6317980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.888256] >fff00000c6317a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 38.889738] ^ [ 38.891412] fff00000c6317a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.892293] fff00000c6317b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.893568] ==================================================================
[ 32.078047] ================================================================== [ 32.079022] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 32.079411] Write of size 8 at addr ffff888102a1f278 by task kunit_try_catch/289 [ 32.081326] [ 32.081793] CPU: 1 UID: 0 PID: 289 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 32.082684] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.083192] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 32.084484] Call Trace: [ 32.085256] <TASK> [ 32.085464] dump_stack_lvl+0x73/0xb0 [ 32.085998] print_report+0xd1/0x640 [ 32.086478] ? __virt_addr_valid+0x1db/0x2d0 [ 32.086842] ? kasan_complete_mode_report_info+0x2a/0x200 [ 32.087573] kasan_report+0x102/0x140 [ 32.088012] ? copy_to_kernel_nofault+0x99/0x260 [ 32.088537] ? copy_to_kernel_nofault+0x99/0x260 [ 32.089580] kasan_check_range+0x10c/0x1c0 [ 32.090485] __kasan_check_write+0x18/0x20 [ 32.090791] copy_to_kernel_nofault+0x99/0x260 [ 32.091489] copy_to_kernel_nofault_oob+0x214/0x4e0 [ 32.092122] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 32.092784] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 32.093154] ? trace_hardirqs_on+0x37/0xe0 [ 32.093633] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 32.094404] kunit_try_run_case+0x1b3/0x490 [ 32.094747] ? __pfx_kunit_try_run_case+0x10/0x10 [ 32.095339] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 32.095851] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 32.096188] ? __kthread_parkme+0x82/0x160 [ 32.097014] ? preempt_count_sub+0x50/0x80 [ 32.097534] ? __pfx_kunit_try_run_case+0x10/0x10 [ 32.098061] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 32.098787] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 32.099414] kthread+0x257/0x310 [ 32.100102] ? __pfx_kthread+0x10/0x10 [ 32.100429] ret_from_fork+0x41/0x80 [ 32.100914] ? __pfx_kthread+0x10/0x10 [ 32.101359] ret_from_fork_asm+0x1a/0x30 [ 32.101720] </TASK> [ 32.102196] [ 32.102471] Allocated by task 289: [ 32.102751] kasan_save_stack+0x3d/0x60 [ 32.103064] kasan_save_track+0x18/0x40 [ 32.103492] kasan_save_alloc_info+0x3b/0x50 [ 32.104245] __kasan_kmalloc+0xb7/0xc0 [ 32.104721] __kmalloc_cache_noprof+0x184/0x410 [ 32.105214] copy_to_kernel_nofault_oob+0xc5/0x4e0 [ 32.105524] kunit_try_run_case+0x1b3/0x490 [ 32.105802] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 32.106921] kthread+0x257/0x310 [ 32.107300] ret_from_fork+0x41/0x80 [ 32.108730] ret_from_fork_asm+0x1a/0x30 [ 32.109161] [ 32.109655] The buggy address belongs to the object at ffff888102a1f200 [ 32.109655] which belongs to the cache kmalloc-128 of size 128 [ 32.110974] The buggy address is located 0 bytes to the right of [ 32.110974] allocated 120-byte region [ffff888102a1f200, ffff888102a1f278) [ 32.111977] [ 32.112701] The buggy address belongs to the physical page: [ 32.113280] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a1f [ 32.114763] flags: 0x200000000000000(node=0|zone=2) [ 32.115433] page_type: f5(slab) [ 32.116371] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 32.117137] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 32.118477] page dumped because: kasan: bad access detected [ 32.118962] [ 32.119191] Memory state around the buggy address: [ 32.120292] ffff888102a1f100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.120855] ffff888102a1f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.121602] >ffff888102a1f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.122648] ^ [ 32.123370] ffff888102a1f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.123881] ffff888102a1f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.124499] ================================================================== [ 32.026586] ================================================================== [ 32.027697] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 32.028316] Read of size 8 at addr ffff888102a1f278 by task kunit_try_catch/289 [ 32.029117] [ 32.029409] CPU: 1 UID: 0 PID: 289 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 32.030694] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.030982] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 32.032617] Call Trace: [ 32.032930] <TASK> [ 32.033576] dump_stack_lvl+0x73/0xb0 [ 32.034550] print_report+0xd1/0x640 [ 32.034991] ? __virt_addr_valid+0x1db/0x2d0 [ 32.036354] ? kasan_complete_mode_report_info+0x2a/0x200 [ 32.036889] kasan_report+0x102/0x140 [ 32.037982] ? copy_to_kernel_nofault+0x225/0x260 [ 32.038475] ? copy_to_kernel_nofault+0x225/0x260 [ 32.039135] __asan_report_load8_noabort+0x18/0x20 [ 32.039495] copy_to_kernel_nofault+0x225/0x260 [ 32.040510] copy_to_kernel_nofault_oob+0x179/0x4e0 [ 32.041352] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 32.041954] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 32.042603] ? trace_hardirqs_on+0x37/0xe0 [ 32.043452] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 32.043767] kunit_try_run_case+0x1b3/0x490 [ 32.045022] ? __pfx_kunit_try_run_case+0x10/0x10 [ 32.045701] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 32.046521] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 32.047017] ? __kthread_parkme+0x82/0x160 [ 32.047988] ? preempt_count_sub+0x50/0x80 [ 32.048376] ? __pfx_kunit_try_run_case+0x10/0x10 [ 32.049012] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 32.049711] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 32.050933] kthread+0x257/0x310 [ 32.051218] ? __pfx_kthread+0x10/0x10 [ 32.051430] ret_from_fork+0x41/0x80 [ 32.051584] ? __pfx_kthread+0x10/0x10 [ 32.051730] ret_from_fork_asm+0x1a/0x30 [ 32.052130] </TASK> [ 32.052414] [ 32.052691] Allocated by task 289: [ 32.053269] kasan_save_stack+0x3d/0x60 [ 32.053996] kasan_save_track+0x18/0x40 [ 32.054273] kasan_save_alloc_info+0x3b/0x50 [ 32.055256] __kasan_kmalloc+0xb7/0xc0 [ 32.056569] __kmalloc_cache_noprof+0x184/0x410 [ 32.057340] copy_to_kernel_nofault_oob+0xc5/0x4e0 [ 32.057863] kunit_try_run_case+0x1b3/0x490 [ 32.058366] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 32.059063] kthread+0x257/0x310 [ 32.059437] ret_from_fork+0x41/0x80 [ 32.059950] ret_from_fork_asm+0x1a/0x30 [ 32.060581] [ 32.060845] The buggy address belongs to the object at ffff888102a1f200 [ 32.060845] which belongs to the cache kmalloc-128 of size 128 [ 32.061972] The buggy address is located 0 bytes to the right of [ 32.061972] allocated 120-byte region [ffff888102a1f200, ffff888102a1f278) [ 32.062985] [ 32.063157] The buggy address belongs to the physical page: [ 32.064048] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a1f [ 32.065031] flags: 0x200000000000000(node=0|zone=2) [ 32.065703] page_type: f5(slab) [ 32.066149] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 32.067143] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 32.068041] page dumped because: kasan: bad access detected [ 32.068772] [ 32.069328] Memory state around the buggy address: [ 32.069937] ffff888102a1f100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 32.070603] ffff888102a1f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.071696] >ffff888102a1f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.072331] ^ [ 32.073535] ffff888102a1f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.074018] ffff888102a1f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.074706] ==================================================================