Date
July 1, 2025, 11:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.922219] ================================================================== [ 21.922287] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 21.922520] Write of size 8 at addr fff00000c76c3978 by task kunit_try_catch/282 [ 21.922594] [ 21.922634] CPU: 0 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 21.923118] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.923259] Hardware name: linux,dummy-virt (DT) [ 21.923578] Call trace: [ 21.923616] show_stack+0x20/0x38 (C) [ 21.923677] dump_stack_lvl+0x8c/0xd0 [ 21.923762] print_report+0x118/0x608 [ 21.923814] kasan_report+0xdc/0x128 [ 21.923865] kasan_check_range+0x100/0x1a8 [ 21.924102] __kasan_check_write+0x20/0x30 [ 21.924288] copy_to_kernel_nofault+0x8c/0x250 [ 21.924453] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 21.924546] kunit_try_run_case+0x170/0x3f0 [ 21.924638] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.924735] kthread+0x328/0x630 [ 21.924811] ret_from_fork+0x10/0x20 [ 21.924895] [ 21.924997] Allocated by task 282: [ 21.925035] kasan_save_stack+0x3c/0x68 [ 21.925226] kasan_save_track+0x20/0x40 [ 21.925296] kasan_save_alloc_info+0x40/0x58 [ 21.925406] __kasan_kmalloc+0xd4/0xd8 [ 21.925505] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.925571] copy_to_kernel_nofault_oob+0xc8/0x418 [ 21.925617] kunit_try_run_case+0x170/0x3f0 [ 21.925711] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.925958] kthread+0x328/0x630 [ 21.926040] ret_from_fork+0x10/0x20 [ 21.926081] [ 21.926103] The buggy address belongs to the object at fff00000c76c3900 [ 21.926103] which belongs to the cache kmalloc-128 of size 128 [ 21.926744] The buggy address is located 0 bytes to the right of [ 21.926744] allocated 120-byte region [fff00000c76c3900, fff00000c76c3978) [ 21.927037] [ 21.927348] The buggy address belongs to the physical page: [ 21.927426] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076c3 [ 21.927621] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.927704] page_type: f5(slab) [ 21.927807] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.927868] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.927941] page dumped because: kasan: bad access detected [ 21.927980] [ 21.928001] Memory state around the buggy address: [ 21.928040] fff00000c76c3800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.928093] fff00000c76c3880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.928157] >fff00000c76c3900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.928243] ^ [ 21.928296] fff00000c76c3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.928347] fff00000c76c3a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.928392] ================================================================== [ 21.914461] ================================================================== [ 21.914782] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 21.914869] Read of size 8 at addr fff00000c76c3978 by task kunit_try_catch/282 [ 21.915041] [ 21.915090] CPU: 0 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 21.915209] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.915671] Hardware name: linux,dummy-virt (DT) [ 21.916082] Call trace: [ 21.916235] show_stack+0x20/0x38 (C) [ 21.916385] dump_stack_lvl+0x8c/0xd0 [ 21.916527] print_report+0x118/0x608 [ 21.916581] kasan_report+0xdc/0x128 [ 21.916630] __asan_report_load8_noabort+0x20/0x30 [ 21.916712] copy_to_kernel_nofault+0x204/0x250 [ 21.916792] copy_to_kernel_nofault_oob+0x158/0x418 [ 21.917002] kunit_try_run_case+0x170/0x3f0 [ 21.917067] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.917235] kthread+0x328/0x630 [ 21.917295] ret_from_fork+0x10/0x20 [ 21.917383] [ 21.917500] Allocated by task 282: [ 21.917542] kasan_save_stack+0x3c/0x68 [ 21.917819] kasan_save_track+0x20/0x40 [ 21.917891] kasan_save_alloc_info+0x40/0x58 [ 21.917937] __kasan_kmalloc+0xd4/0xd8 [ 21.917981] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.918107] copy_to_kernel_nofault_oob+0xc8/0x418 [ 21.918180] kunit_try_run_case+0x170/0x3f0 [ 21.918480] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.918581] kthread+0x328/0x630 [ 21.918629] ret_from_fork+0x10/0x20 [ 21.918746] [ 21.918771] The buggy address belongs to the object at fff00000c76c3900 [ 21.918771] which belongs to the cache kmalloc-128 of size 128 [ 21.918844] The buggy address is located 0 bytes to the right of [ 21.918844] allocated 120-byte region [fff00000c76c3900, fff00000c76c3978) [ 21.918945] [ 21.918979] The buggy address belongs to the physical page: [ 21.919020] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076c3 [ 21.919305] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.919494] page_type: f5(slab) [ 21.919548] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.919608] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.919922] page dumped because: kasan: bad access detected [ 21.920021] [ 21.920043] Memory state around the buggy address: [ 21.920118] fff00000c76c3800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.920193] fff00000c76c3880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.920272] >fff00000c76c3900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.920330] ^ [ 21.920543] fff00000c76c3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.920868] fff00000c76c3a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.920948] ==================================================================
[ 15.396652] ================================================================== [ 15.397366] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 15.398216] Write of size 8 at addr ffff888103aae478 by task kunit_try_catch/298 [ 15.398903] [ 15.399080] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.399128] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.399141] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.399163] Call Trace: [ 15.399178] <TASK> [ 15.399199] dump_stack_lvl+0x73/0xb0 [ 15.399240] print_report+0xd1/0x650 [ 15.399267] ? __virt_addr_valid+0x1db/0x2d0 [ 15.399291] ? copy_to_kernel_nofault+0x99/0x260 [ 15.399326] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.399349] ? copy_to_kernel_nofault+0x99/0x260 [ 15.399373] kasan_report+0x141/0x180 [ 15.399402] ? copy_to_kernel_nofault+0x99/0x260 [ 15.399430] kasan_check_range+0x10c/0x1c0 [ 15.399455] __kasan_check_write+0x18/0x20 [ 15.399484] copy_to_kernel_nofault+0x99/0x260 [ 15.399519] copy_to_kernel_nofault_oob+0x288/0x560 [ 15.399543] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 15.399577] ? finish_task_switch.isra.0+0x153/0x700 [ 15.399602] ? __schedule+0x10cc/0x2b60 [ 15.399625] ? trace_hardirqs_on+0x37/0xe0 [ 15.399668] ? __pfx_read_tsc+0x10/0x10 [ 15.399691] ? ktime_get_ts64+0x86/0x230 [ 15.399716] kunit_try_run_case+0x1a5/0x480 [ 15.399755] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.399777] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.399802] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.399826] ? __kthread_parkme+0x82/0x180 [ 15.399848] ? preempt_count_sub+0x50/0x80 [ 15.399871] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.399895] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.399919] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.399945] kthread+0x337/0x6f0 [ 15.399964] ? trace_preempt_on+0x20/0xc0 [ 15.399987] ? __pfx_kthread+0x10/0x10 [ 15.400008] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.400030] ? calculate_sigpending+0x7b/0xa0 [ 15.400055] ? __pfx_kthread+0x10/0x10 [ 15.400077] ret_from_fork+0x116/0x1d0 [ 15.400095] ? __pfx_kthread+0x10/0x10 [ 15.400116] ret_from_fork_asm+0x1a/0x30 [ 15.400149] </TASK> [ 15.400161] [ 15.415672] Allocated by task 298: [ 15.416027] kasan_save_stack+0x45/0x70 [ 15.416501] kasan_save_track+0x18/0x40 [ 15.416939] kasan_save_alloc_info+0x3b/0x50 [ 15.417178] __kasan_kmalloc+0xb7/0xc0 [ 15.417453] __kmalloc_cache_noprof+0x189/0x420 [ 15.417947] copy_to_kernel_nofault_oob+0x12f/0x560 [ 15.418420] kunit_try_run_case+0x1a5/0x480 [ 15.418703] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.418881] kthread+0x337/0x6f0 [ 15.419221] ret_from_fork+0x116/0x1d0 [ 15.419611] ret_from_fork_asm+0x1a/0x30 [ 15.420028] [ 15.420216] The buggy address belongs to the object at ffff888103aae400 [ 15.420216] which belongs to the cache kmalloc-128 of size 128 [ 15.421488] The buggy address is located 0 bytes to the right of [ 15.421488] allocated 120-byte region [ffff888103aae400, ffff888103aae478) [ 15.422418] [ 15.422496] The buggy address belongs to the physical page: [ 15.422674] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103aae [ 15.423449] flags: 0x200000000000000(node=0|zone=2) [ 15.424012] page_type: f5(slab) [ 15.424401] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 15.425206] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.425861] page dumped because: kasan: bad access detected [ 15.426225] [ 15.426299] Memory state around the buggy address: [ 15.426875] ffff888103aae300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.427677] ffff888103aae380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.428178] >ffff888103aae400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.428684] ^ [ 15.429246] ffff888103aae480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.429931] ffff888103aae500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.430153] ================================================================== [ 15.363483] ================================================================== [ 15.365110] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 15.366143] Read of size 8 at addr ffff888103aae478 by task kunit_try_catch/298 [ 15.367034] [ 15.367268] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.367333] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.367348] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.367372] Call Trace: [ 15.367396] <TASK> [ 15.367546] dump_stack_lvl+0x73/0xb0 [ 15.367613] print_report+0xd1/0x650 [ 15.367675] ? __virt_addr_valid+0x1db/0x2d0 [ 15.367705] ? copy_to_kernel_nofault+0x225/0x260 [ 15.367729] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.367753] ? copy_to_kernel_nofault+0x225/0x260 [ 15.367778] kasan_report+0x141/0x180 [ 15.367800] ? copy_to_kernel_nofault+0x225/0x260 [ 15.367828] __asan_report_load8_noabort+0x18/0x20 [ 15.367853] copy_to_kernel_nofault+0x225/0x260 [ 15.367879] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 15.367903] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 15.367944] ? finish_task_switch.isra.0+0x153/0x700 [ 15.367970] ? __schedule+0x10cc/0x2b60 [ 15.367993] ? trace_hardirqs_on+0x37/0xe0 [ 15.368026] ? __pfx_read_tsc+0x10/0x10 [ 15.368049] ? ktime_get_ts64+0x86/0x230 [ 15.368075] kunit_try_run_case+0x1a5/0x480 [ 15.368103] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.368126] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.368151] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.368175] ? __kthread_parkme+0x82/0x180 [ 15.368198] ? preempt_count_sub+0x50/0x80 [ 15.368221] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.368244] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.368268] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.368292] kthread+0x337/0x6f0 [ 15.368312] ? trace_preempt_on+0x20/0xc0 [ 15.368335] ? __pfx_kthread+0x10/0x10 [ 15.368357] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.368389] ? calculate_sigpending+0x7b/0xa0 [ 15.368419] ? __pfx_kthread+0x10/0x10 [ 15.368440] ret_from_fork+0x116/0x1d0 [ 15.368459] ? __pfx_kthread+0x10/0x10 [ 15.368481] ret_from_fork_asm+0x1a/0x30 [ 15.368513] </TASK> [ 15.368527] [ 15.382779] Allocated by task 298: [ 15.383211] kasan_save_stack+0x45/0x70 [ 15.383487] kasan_save_track+0x18/0x40 [ 15.383879] kasan_save_alloc_info+0x3b/0x50 [ 15.384320] __kasan_kmalloc+0xb7/0xc0 [ 15.384652] __kmalloc_cache_noprof+0x189/0x420 [ 15.384833] copy_to_kernel_nofault_oob+0x12f/0x560 [ 15.385402] kunit_try_run_case+0x1a5/0x480 [ 15.385877] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.386291] kthread+0x337/0x6f0 [ 15.386572] ret_from_fork+0x116/0x1d0 [ 15.386709] ret_from_fork_asm+0x1a/0x30 [ 15.386849] [ 15.386922] The buggy address belongs to the object at ffff888103aae400 [ 15.386922] which belongs to the cache kmalloc-128 of size 128 [ 15.387282] The buggy address is located 0 bytes to the right of [ 15.387282] allocated 120-byte region [ffff888103aae400, ffff888103aae478) [ 15.387657] [ 15.387735] The buggy address belongs to the physical page: [ 15.387910] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103aae [ 15.388152] flags: 0x200000000000000(node=0|zone=2) [ 15.388318] page_type: f5(slab) [ 15.388555] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 15.389328] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.390105] page dumped because: kasan: bad access detected [ 15.390587] [ 15.390752] Memory state around the buggy address: [ 15.391304] ffff888103aae300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.392018] ffff888103aae380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.392747] >ffff888103aae400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.393484] ^ [ 15.394175] ffff888103aae480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.394875] ffff888103aae500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.395587] ==================================================================