Date
July 17, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.459191] ================================================================== [ 19.459297] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 19.459366] Read of size 8 at addr fff00000c79f8278 by task kunit_try_catch/281 [ 19.459420] [ 19.459509] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 19.459598] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.459627] Hardware name: linux,dummy-virt (DT) [ 19.459722] Call trace: [ 19.459783] show_stack+0x20/0x38 (C) [ 19.460000] dump_stack_lvl+0x8c/0xd0 [ 19.460073] print_report+0x118/0x5d0 [ 19.460124] kasan_report+0xdc/0x128 [ 19.460171] __asan_report_load8_noabort+0x20/0x30 [ 19.460285] copy_to_kernel_nofault+0x204/0x250 [ 19.460485] copy_to_kernel_nofault_oob+0x158/0x418 [ 19.460636] kunit_try_run_case+0x170/0x3f0 [ 19.460711] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.460773] kthread+0x328/0x630 [ 19.460840] ret_from_fork+0x10/0x20 [ 19.460986] [ 19.461034] Allocated by task 281: [ 19.461092] kasan_save_stack+0x3c/0x68 [ 19.461172] kasan_save_track+0x20/0x40 [ 19.461285] kasan_save_alloc_info+0x40/0x58 [ 19.461343] __kasan_kmalloc+0xd4/0xd8 [ 19.461415] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.461470] copy_to_kernel_nofault_oob+0xc8/0x418 [ 19.461510] kunit_try_run_case+0x170/0x3f0 [ 19.461784] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.461954] kthread+0x328/0x630 [ 19.462096] ret_from_fork+0x10/0x20 [ 19.462153] [ 19.462210] The buggy address belongs to the object at fff00000c79f8200 [ 19.462210] which belongs to the cache kmalloc-128 of size 128 [ 19.462367] The buggy address is located 0 bytes to the right of [ 19.462367] allocated 120-byte region [fff00000c79f8200, fff00000c79f8278) [ 19.462454] [ 19.462498] The buggy address belongs to the physical page: [ 19.462568] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079f8 [ 19.462725] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.462777] page_type: f5(slab) [ 19.462827] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.463298] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.463656] page dumped because: kasan: bad access detected [ 19.463732] [ 19.463897] Memory state around the buggy address: [ 19.463996] fff00000c79f8100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.464050] fff00000c79f8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.464170] >fff00000c79f8200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.464239] ^ [ 19.464324] fff00000c79f8280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.464465] fff00000c79f8300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.464523] ================================================================== [ 19.465094] ================================================================== [ 19.465148] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 19.465202] Write of size 8 at addr fff00000c79f8278 by task kunit_try_catch/281 [ 19.465255] [ 19.465287] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 19.465368] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.465397] Hardware name: linux,dummy-virt (DT) [ 19.465430] Call trace: [ 19.465454] show_stack+0x20/0x38 (C) [ 19.465504] dump_stack_lvl+0x8c/0xd0 [ 19.465554] print_report+0x118/0x5d0 [ 19.465600] kasan_report+0xdc/0x128 [ 19.465649] kasan_check_range+0x100/0x1a8 [ 19.465700] __kasan_check_write+0x20/0x30 [ 19.465747] copy_to_kernel_nofault+0x8c/0x250 [ 19.466005] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 19.466077] kunit_try_run_case+0x170/0x3f0 [ 19.466126] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.466178] kthread+0x328/0x630 [ 19.466235] ret_from_fork+0x10/0x20 [ 19.466293] [ 19.466316] Allocated by task 281: [ 19.466355] kasan_save_stack+0x3c/0x68 [ 19.466397] kasan_save_track+0x20/0x40 [ 19.466437] kasan_save_alloc_info+0x40/0x58 [ 19.466480] __kasan_kmalloc+0xd4/0xd8 [ 19.466518] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.466566] copy_to_kernel_nofault_oob+0xc8/0x418 [ 19.466623] kunit_try_run_case+0x170/0x3f0 [ 19.466662] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.466707] kthread+0x328/0x630 [ 19.466741] ret_from_fork+0x10/0x20 [ 19.466778] [ 19.466799] The buggy address belongs to the object at fff00000c79f8200 [ 19.466799] which belongs to the cache kmalloc-128 of size 128 [ 19.466876] The buggy address is located 0 bytes to the right of [ 19.466876] allocated 120-byte region [fff00000c79f8200, fff00000c79f8278) [ 19.466942] [ 19.466963] The buggy address belongs to the physical page: [ 19.466995] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079f8 [ 19.467562] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.467650] page_type: f5(slab) [ 19.467698] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.468099] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.468161] page dumped because: kasan: bad access detected [ 19.468255] [ 19.468296] Memory state around the buggy address: [ 19.468331] fff00000c79f8100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.468376] fff00000c79f8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.468443] >fff00000c79f8200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.468510] ^ [ 19.468554] fff00000c79f8280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.468614] fff00000c79f8300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.468672] ==================================================================
[ 16.265234] ================================================================== [ 16.266084] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 16.266343] Write of size 8 at addr ffff888102f42f78 by task kunit_try_catch/298 [ 16.266587] [ 16.266686] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.266735] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.266749] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.266773] Call Trace: [ 16.266786] <TASK> [ 16.266806] dump_stack_lvl+0x73/0xb0 [ 16.266837] print_report+0xd1/0x610 [ 16.266861] ? __virt_addr_valid+0x1db/0x2d0 [ 16.266885] ? copy_to_kernel_nofault+0x99/0x260 [ 16.266909] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.266934] ? copy_to_kernel_nofault+0x99/0x260 [ 16.266959] kasan_report+0x141/0x180 [ 16.266982] ? copy_to_kernel_nofault+0x99/0x260 [ 16.267012] kasan_check_range+0x10c/0x1c0 [ 16.267036] __kasan_check_write+0x18/0x20 [ 16.267066] copy_to_kernel_nofault+0x99/0x260 [ 16.267093] copy_to_kernel_nofault_oob+0x288/0x560 [ 16.267119] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.267143] ? finish_task_switch.isra.0+0x153/0x700 [ 16.267168] ? __schedule+0x10cc/0x2b60 [ 16.267191] ? trace_hardirqs_on+0x37/0xe0 [ 16.267225] ? __pfx_read_tsc+0x10/0x10 [ 16.267247] ? ktime_get_ts64+0x86/0x230 [ 16.267272] kunit_try_run_case+0x1a5/0x480 [ 16.267298] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.267322] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.267347] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.267641] ? __kthread_parkme+0x82/0x180 [ 16.267686] ? preempt_count_sub+0x50/0x80 [ 16.267726] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.267752] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.267779] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.267804] kthread+0x337/0x6f0 [ 16.267956] ? trace_preempt_on+0x20/0xc0 [ 16.267985] ? __pfx_kthread+0x10/0x10 [ 16.268008] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.268032] ? calculate_sigpending+0x7b/0xa0 [ 16.268067] ? __pfx_kthread+0x10/0x10 [ 16.268089] ret_from_fork+0x116/0x1d0 [ 16.268109] ? __pfx_kthread+0x10/0x10 [ 16.268130] ret_from_fork_asm+0x1a/0x30 [ 16.268165] </TASK> [ 16.268177] [ 16.283771] Allocated by task 298: [ 16.284448] kasan_save_stack+0x45/0x70 [ 16.284639] kasan_save_track+0x18/0x40 [ 16.284789] kasan_save_alloc_info+0x3b/0x50 [ 16.284942] __kasan_kmalloc+0xb7/0xc0 [ 16.285092] __kmalloc_cache_noprof+0x189/0x420 [ 16.285253] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.285420] kunit_try_run_case+0x1a5/0x480 [ 16.285569] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.285748] kthread+0x337/0x6f0 [ 16.285874] ret_from_fork+0x116/0x1d0 [ 16.286011] ret_from_fork_asm+0x1a/0x30 [ 16.287218] [ 16.287682] The buggy address belongs to the object at ffff888102f42f00 [ 16.287682] which belongs to the cache kmalloc-128 of size 128 [ 16.289627] The buggy address is located 0 bytes to the right of [ 16.289627] allocated 120-byte region [ffff888102f42f00, ffff888102f42f78) [ 16.291611] [ 16.291791] The buggy address belongs to the physical page: [ 16.292384] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f42 [ 16.293188] flags: 0x200000000000000(node=0|zone=2) [ 16.293685] page_type: f5(slab) [ 16.294076] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.294836] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.295742] page dumped because: kasan: bad access detected [ 16.295923] [ 16.295995] Memory state around the buggy address: [ 16.296182] ffff888102f42e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.296420] ffff888102f42e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.297142] >ffff888102f42f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.297873] ^ [ 16.298621] ffff888102f42f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.299095] ffff888102f43000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.299722] ================================================================== [ 16.226240] ================================================================== [ 16.227586] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 16.227959] Read of size 8 at addr ffff888102f42f78 by task kunit_try_catch/298 [ 16.228920] [ 16.229230] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.229287] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.229301] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.229326] Call Trace: [ 16.229364] <TASK> [ 16.229386] dump_stack_lvl+0x73/0xb0 [ 16.229422] print_report+0xd1/0x610 [ 16.229449] ? __virt_addr_valid+0x1db/0x2d0 [ 16.229475] ? copy_to_kernel_nofault+0x225/0x260 [ 16.229502] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.229528] ? copy_to_kernel_nofault+0x225/0x260 [ 16.229553] kasan_report+0x141/0x180 [ 16.229657] ? copy_to_kernel_nofault+0x225/0x260 [ 16.229690] __asan_report_load8_noabort+0x18/0x20 [ 16.229716] copy_to_kernel_nofault+0x225/0x260 [ 16.229743] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 16.229770] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.229795] ? finish_task_switch.isra.0+0x153/0x700 [ 16.229837] ? __schedule+0x10cc/0x2b60 [ 16.229861] ? trace_hardirqs_on+0x37/0xe0 [ 16.229898] ? __pfx_read_tsc+0x10/0x10 [ 16.229922] ? ktime_get_ts64+0x86/0x230 [ 16.229949] kunit_try_run_case+0x1a5/0x480 [ 16.229979] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.230002] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.230029] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.230067] ? __kthread_parkme+0x82/0x180 [ 16.230091] ? preempt_count_sub+0x50/0x80 [ 16.230116] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.230142] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.230168] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.230193] kthread+0x337/0x6f0 [ 16.230220] ? trace_preempt_on+0x20/0xc0 [ 16.230245] ? __pfx_kthread+0x10/0x10 [ 16.230267] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.230290] ? calculate_sigpending+0x7b/0xa0 [ 16.230316] ? __pfx_kthread+0x10/0x10 [ 16.230339] ret_from_fork+0x116/0x1d0 [ 16.230360] ? __pfx_kthread+0x10/0x10 [ 16.230382] ret_from_fork_asm+0x1a/0x30 [ 16.230417] </TASK> [ 16.230430] [ 16.248474] Allocated by task 298: [ 16.248876] kasan_save_stack+0x45/0x70 [ 16.249375] kasan_save_track+0x18/0x40 [ 16.249560] kasan_save_alloc_info+0x3b/0x50 [ 16.250194] __kasan_kmalloc+0xb7/0xc0 [ 16.250690] __kmalloc_cache_noprof+0x189/0x420 [ 16.250896] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.251246] kunit_try_run_case+0x1a5/0x480 [ 16.251662] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.252330] kthread+0x337/0x6f0 [ 16.252561] ret_from_fork+0x116/0x1d0 [ 16.253086] ret_from_fork_asm+0x1a/0x30 [ 16.253303] [ 16.253402] The buggy address belongs to the object at ffff888102f42f00 [ 16.253402] which belongs to the cache kmalloc-128 of size 128 [ 16.254642] The buggy address is located 0 bytes to the right of [ 16.254642] allocated 120-byte region [ffff888102f42f00, ffff888102f42f78) [ 16.255791] [ 16.256125] The buggy address belongs to the physical page: [ 16.256386] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f42 [ 16.257077] flags: 0x200000000000000(node=0|zone=2) [ 16.257380] page_type: f5(slab) [ 16.258031] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.258405] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.259117] page dumped because: kasan: bad access detected [ 16.259438] [ 16.259658] Memory state around the buggy address: [ 16.260195] ffff888102f42e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.260977] ffff888102f42e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.261288] >ffff888102f42f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.261583] ^ [ 16.262121] ffff888102f42f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.262682] ffff888102f43000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.263034] ==================================================================