Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.621127] ================================================================== [ 19.621197] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 19.621266] Read of size 8 at addr fff00000c78d3b78 by task kunit_try_catch/281 [ 19.621317] [ 19.621353] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 19.621440] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.621468] Hardware name: linux,dummy-virt (DT) [ 19.621501] Call trace: [ 19.621526] show_stack+0x20/0x38 (C) [ 19.621577] dump_stack_lvl+0x8c/0xd0 [ 19.621625] print_report+0x118/0x608 [ 19.621681] kasan_report+0xdc/0x128 [ 19.621769] __asan_report_load8_noabort+0x20/0x30 [ 19.621873] copy_to_kernel_nofault+0x204/0x250 [ 19.621961] copy_to_kernel_nofault_oob+0x158/0x418 [ 19.622113] kunit_try_run_case+0x170/0x3f0 [ 19.622261] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.622315] kthread+0x328/0x630 [ 19.622362] ret_from_fork+0x10/0x20 [ 19.622408] [ 19.622430] Allocated by task 281: [ 19.622461] kasan_save_stack+0x3c/0x68 [ 19.622503] kasan_save_track+0x20/0x40 [ 19.622542] kasan_save_alloc_info+0x40/0x58 [ 19.622654] __kasan_kmalloc+0xd4/0xd8 [ 19.622848] __kmalloc_cache_noprof+0x15c/0x3c0 [ 19.622898] copy_to_kernel_nofault_oob+0xc8/0x418 [ 19.622943] kunit_try_run_case+0x170/0x3f0 [ 19.622981] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.623072] kthread+0x328/0x630 [ 19.623125] ret_from_fork+0x10/0x20 [ 19.623195] [ 19.623238] The buggy address belongs to the object at fff00000c78d3b00 [ 19.623238] which belongs to the cache kmalloc-128 of size 128 [ 19.623296] The buggy address is located 0 bytes to the right of [ 19.623296] allocated 120-byte region [fff00000c78d3b00, fff00000c78d3b78) [ 19.623358] [ 19.623393] The buggy address belongs to the physical page: [ 19.623430] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d3 [ 19.623495] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.623547] page_type: f5(slab) [ 19.623599] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.623661] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.623743] page dumped because: kasan: bad access detected [ 19.623777] [ 19.623832] Memory state around the buggy address: [ 19.624026] fff00000c78d3a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.624101] fff00000c78d3a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.624337] >fff00000c78d3b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.624384] ^ [ 19.624486] fff00000c78d3b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.624555] fff00000c78d3c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.624659] ================================================================== [ 19.625159] ================================================================== [ 19.625211] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 19.625269] Write of size 8 at addr fff00000c78d3b78 by task kunit_try_catch/281 [ 19.625319] [ 19.625352] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 19.625438] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.625624] Hardware name: linux,dummy-virt (DT) [ 19.625755] Call trace: [ 19.625783] show_stack+0x20/0x38 (C) [ 19.625838] dump_stack_lvl+0x8c/0xd0 [ 19.625914] print_report+0x118/0x608 [ 19.626282] kasan_report+0xdc/0x128 [ 19.626346] kasan_check_range+0x100/0x1a8 [ 19.626396] __kasan_check_write+0x20/0x30 [ 19.626467] copy_to_kernel_nofault+0x8c/0x250 [ 19.626845] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 19.626920] kunit_try_run_case+0x170/0x3f0 [ 19.627079] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.627155] kthread+0x328/0x630 [ 19.627207] ret_from_fork+0x10/0x20 [ 19.627259] [ 19.627280] Allocated by task 281: [ 19.627311] kasan_save_stack+0x3c/0x68 [ 19.627357] kasan_save_track+0x20/0x40 [ 19.627419] kasan_save_alloc_info+0x40/0x58 [ 19.627477] __kasan_kmalloc+0xd4/0xd8 [ 19.627518] __kmalloc_cache_noprof+0x15c/0x3c0 [ 19.627558] copy_to_kernel_nofault_oob+0xc8/0x418 [ 19.627602] kunit_try_run_case+0x170/0x3f0 [ 19.627638] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.627682] kthread+0x328/0x630 [ 19.627727] ret_from_fork+0x10/0x20 [ 19.627770] [ 19.627792] The buggy address belongs to the object at fff00000c78d3b00 [ 19.627792] which belongs to the cache kmalloc-128 of size 128 [ 19.627852] The buggy address is located 0 bytes to the right of [ 19.627852] allocated 120-byte region [fff00000c78d3b00, fff00000c78d3b78) [ 19.627927] [ 19.627975] The buggy address belongs to the physical page: [ 19.628013] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d3 [ 19.628078] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.628130] page_type: f5(slab) [ 19.628172] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.628225] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.628269] page dumped because: kasan: bad access detected [ 19.628316] [ 19.628338] Memory state around the buggy address: [ 19.628372] fff00000c78d3a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.628418] fff00000c78d3a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.628462] >fff00000c78d3b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.628500] ^ [ 19.628542] fff00000c78d3b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.628585] fff00000c78d3c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.628623] ==================================================================
[ 21.882136] ================================================================== [ 21.882929] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 21.883831] Write of size 8 at addr ffff88810232e078 by task kunit_try_catch/298 [ 21.884824] [ 21.885188] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 21.885331] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.885378] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.885430] Call Trace: [ 21.885461] <TASK> [ 21.885490] dump_stack_lvl+0x73/0xb0 [ 21.885535] print_report+0xd1/0x650 [ 21.885564] ? __virt_addr_valid+0x1db/0x2d0 [ 21.885598] ? copy_to_kernel_nofault+0x99/0x260 [ 21.885644] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.885725] ? copy_to_kernel_nofault+0x99/0x260 [ 21.885756] kasan_report+0x141/0x180 [ 21.885782] ? copy_to_kernel_nofault+0x99/0x260 [ 21.885814] kasan_check_range+0x10c/0x1c0 [ 21.885841] __kasan_check_write+0x18/0x20 [ 21.885864] copy_to_kernel_nofault+0x99/0x260 [ 21.885892] copy_to_kernel_nofault_oob+0x288/0x560 [ 21.885919] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 21.885946] ? finish_task_switch.isra.0+0x153/0x700 [ 21.885973] ? __schedule+0x10cc/0x2b60 [ 21.885997] ? trace_hardirqs_on+0x37/0xe0 [ 21.886031] ? __pfx_read_tsc+0x10/0x10 [ 21.886161] ? ktime_get_ts64+0x86/0x230 [ 21.886192] kunit_try_run_case+0x1a5/0x480 [ 21.886221] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.886246] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.886294] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.886320] ? __kthread_parkme+0x82/0x180 [ 21.886344] ? preempt_count_sub+0x50/0x80 [ 21.886370] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.886397] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.886423] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.886450] kthread+0x337/0x6f0 [ 21.886473] ? trace_preempt_on+0x20/0xc0 [ 21.886497] ? __pfx_kthread+0x10/0x10 [ 21.886521] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.886544] ? calculate_sigpending+0x7b/0xa0 [ 21.886572] ? __pfx_kthread+0x10/0x10 [ 21.886597] ret_from_fork+0x116/0x1d0 [ 21.886618] ? __pfx_kthread+0x10/0x10 [ 21.886641] ret_from_fork_asm+0x1a/0x30 [ 21.886690] </TASK> [ 21.886707] [ 21.899907] Allocated by task 298: [ 21.900531] kasan_save_stack+0x45/0x70 [ 21.901526] kasan_save_track+0x18/0x40 [ 21.901886] kasan_save_alloc_info+0x3b/0x50 [ 21.902105] __kasan_kmalloc+0xb7/0xc0 [ 21.902312] __kmalloc_cache_noprof+0x189/0x420 [ 21.902526] copy_to_kernel_nofault_oob+0x12f/0x560 [ 21.902755] kunit_try_run_case+0x1a5/0x480 [ 21.903407] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.903887] kthread+0x337/0x6f0 [ 21.904250] ret_from_fork+0x116/0x1d0 [ 21.904639] ret_from_fork_asm+0x1a/0x30 [ 21.905753] [ 21.905956] The buggy address belongs to the object at ffff88810232e000 [ 21.905956] which belongs to the cache kmalloc-128 of size 128 [ 21.906933] The buggy address is located 0 bytes to the right of [ 21.906933] allocated 120-byte region [ffff88810232e000, ffff88810232e078) [ 21.908391] [ 21.908514] The buggy address belongs to the physical page: [ 21.909169] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10232e [ 21.909819] flags: 0x200000000000000(node=0|zone=2) [ 21.910221] page_type: f5(slab) [ 21.910544] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 21.911285] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.911594] page dumped because: kasan: bad access detected [ 21.911806] [ 21.911961] Memory state around the buggy address: [ 21.912559] ffff88810232df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.913241] ffff88810232df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.913800] >ffff88810232e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.914185] ^ [ 21.914969] ffff88810232e080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.916555] ffff88810232e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.917049] ================================================================== [ 21.845886] ================================================================== [ 21.846629] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 21.847349] Read of size 8 at addr ffff88810232e078 by task kunit_try_catch/298 [ 21.847758] [ 21.848001] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 21.848115] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.848142] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.848219] Call Trace: [ 21.848250] <TASK> [ 21.848300] dump_stack_lvl+0x73/0xb0 [ 21.848378] print_report+0xd1/0x650 [ 21.848439] ? __virt_addr_valid+0x1db/0x2d0 [ 21.848491] ? copy_to_kernel_nofault+0x225/0x260 [ 21.848549] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.848603] ? copy_to_kernel_nofault+0x225/0x260 [ 21.848658] kasan_report+0x141/0x180 [ 21.848700] ? copy_to_kernel_nofault+0x225/0x260 [ 21.848758] __asan_report_load8_noabort+0x18/0x20 [ 21.848799] copy_to_kernel_nofault+0x225/0x260 [ 21.848845] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 21.848898] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 21.848943] ? finish_task_switch.isra.0+0x153/0x700 [ 21.848992] ? __schedule+0x10cc/0x2b60 [ 21.849039] ? trace_hardirqs_on+0x37/0xe0 [ 21.849100] ? __pfx_read_tsc+0x10/0x10 [ 21.849139] ? ktime_get_ts64+0x86/0x230 [ 21.849183] kunit_try_run_case+0x1a5/0x480 [ 21.849235] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.849296] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.849343] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.849394] ? __kthread_parkme+0x82/0x180 [ 21.849439] ? preempt_count_sub+0x50/0x80 [ 21.849484] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.849589] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.849633] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.849673] kthread+0x337/0x6f0 [ 21.849708] ? trace_preempt_on+0x20/0xc0 [ 21.849747] ? __pfx_kthread+0x10/0x10 [ 21.849785] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.849821] ? calculate_sigpending+0x7b/0xa0 [ 21.849865] ? __pfx_kthread+0x10/0x10 [ 21.849917] ret_from_fork+0x116/0x1d0 [ 21.849954] ? __pfx_kthread+0x10/0x10 [ 21.849998] ret_from_fork_asm+0x1a/0x30 [ 21.850062] </TASK> [ 21.850088] [ 21.864799] Allocated by task 298: [ 21.864994] kasan_save_stack+0x45/0x70 [ 21.865683] kasan_save_track+0x18/0x40 [ 21.866406] kasan_save_alloc_info+0x3b/0x50 [ 21.867174] __kasan_kmalloc+0xb7/0xc0 [ 21.867411] __kmalloc_cache_noprof+0x189/0x420 [ 21.867612] copy_to_kernel_nofault_oob+0x12f/0x560 [ 21.868101] kunit_try_run_case+0x1a5/0x480 [ 21.868515] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.868867] kthread+0x337/0x6f0 [ 21.869048] ret_from_fork+0x116/0x1d0 [ 21.869786] ret_from_fork_asm+0x1a/0x30 [ 21.870606] [ 21.871010] The buggy address belongs to the object at ffff88810232e000 [ 21.871010] which belongs to the cache kmalloc-128 of size 128 [ 21.871534] The buggy address is located 0 bytes to the right of [ 21.871534] allocated 120-byte region [ffff88810232e000, ffff88810232e078) [ 21.872763] [ 21.872992] The buggy address belongs to the physical page: [ 21.873534] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10232e [ 21.873930] flags: 0x200000000000000(node=0|zone=2) [ 21.874527] page_type: f5(slab) [ 21.874729] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 21.875508] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.875847] page dumped because: kasan: bad access detected [ 21.875980] [ 21.876075] Memory state around the buggy address: [ 21.876616] ffff88810232df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.877342] ffff88810232df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.877796] >ffff88810232e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.878390] ^ [ 21.878637] ffff88810232e080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.879616] ffff88810232e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.880447] ==================================================================