Date
July 20, 2025, 11:12 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 16.683894] ================================================================== [ 16.684341] BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x3c/0x70 [ 16.684677] Read of size 121 at addr ffff88810315a200 by task kunit_try_catch/303 [ 16.685156] [ 16.685259] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 16.685307] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.685322] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.685347] Call Trace: [ 16.685362] <TASK> [ 16.685381] dump_stack_lvl+0x73/0xb0 [ 16.685428] print_report+0xd1/0x610 [ 16.685454] ? __virt_addr_valid+0x1db/0x2d0 [ 16.685479] ? _copy_to_user+0x3c/0x70 [ 16.685499] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.685523] ? _copy_to_user+0x3c/0x70 [ 16.685544] kasan_report+0x141/0x180 [ 16.685568] ? _copy_to_user+0x3c/0x70 [ 16.685595] kasan_check_range+0x10c/0x1c0 [ 16.685620] __kasan_check_read+0x15/0x20 [ 16.685640] _copy_to_user+0x3c/0x70 [ 16.685661] copy_user_test_oob+0x364/0x10f0 [ 16.685689] ? __pfx_copy_user_test_oob+0x10/0x10 [ 16.685713] ? finish_task_switch.isra.0+0x153/0x700 [ 16.685739] ? __switch_to+0x47/0xf50 [ 16.685769] ? __schedule+0x10c6/0x2b60 [ 16.685794] ? __pfx_read_tsc+0x10/0x10 [ 16.685817] ? ktime_get_ts64+0x86/0x230 [ 16.685847] kunit_try_run_case+0x1a5/0x480 [ 16.685872] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.685896] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.685921] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.685946] ? __kthread_parkme+0x82/0x180 [ 16.685968] ? preempt_count_sub+0x50/0x80 [ 16.685994] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.686019] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.686044] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.686069] kthread+0x337/0x6f0 [ 16.686090] ? trace_preempt_on+0x20/0xc0 [ 16.686115] ? __pfx_kthread+0x10/0x10 [ 16.686138] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.686160] ? calculate_sigpending+0x7b/0xa0 [ 16.686186] ? __pfx_kthread+0x10/0x10 [ 16.686209] ret_from_fork+0x116/0x1d0 [ 16.686229] ? __pfx_kthread+0x10/0x10 [ 16.686252] ret_from_fork_asm+0x1a/0x30 [ 16.686285] </TASK> [ 16.686297] [ 16.693195] Allocated by task 303: [ 16.693374] kasan_save_stack+0x45/0x70 [ 16.693578] kasan_save_track+0x18/0x40 [ 16.693738] kasan_save_alloc_info+0x3b/0x50 [ 16.693957] __kasan_kmalloc+0xb7/0xc0 [ 16.694125] __kmalloc_noprof+0x1c9/0x500 [ 16.694272] kunit_kmalloc_array+0x25/0x60 [ 16.694424] copy_user_test_oob+0xab/0x10f0 [ 16.694577] kunit_try_run_case+0x1a5/0x480 [ 16.694802] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.695049] kthread+0x337/0x6f0 [ 16.695215] ret_from_fork+0x116/0x1d0 [ 16.695409] ret_from_fork_asm+0x1a/0x30 [ 16.695611] [ 16.695687] The buggy address belongs to the object at ffff88810315a200 [ 16.695687] which belongs to the cache kmalloc-128 of size 128 [ 16.696162] The buggy address is located 0 bytes inside of [ 16.696162] allocated 120-byte region [ffff88810315a200, ffff88810315a278) [ 16.696603] [ 16.696704] The buggy address belongs to the physical page: [ 16.696929] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10315a [ 16.697264] flags: 0x200000000000000(node=0|zone=2) [ 16.697480] page_type: f5(slab) [ 16.697661] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.697964] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.698252] page dumped because: kasan: bad access detected [ 16.698489] [ 16.698574] Memory state around the buggy address: [ 16.698781] ffff88810315a100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.699018] ffff88810315a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.699230] >ffff88810315a200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.699470] ^ [ 16.699794] ffff88810315a280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.700105] ffff88810315a300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.700340] ==================================================================
[ 16.773335] ================================================================== [ 16.773658] BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x3c/0x70 [ 16.774034] Read of size 121 at addr ffff8881027bcb00 by task kunit_try_catch/303 [ 16.774433] [ 16.774624] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 16.774683] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.774697] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.774719] Call Trace: [ 16.774734] <TASK> [ 16.774750] dump_stack_lvl+0x73/0xb0 [ 16.774779] print_report+0xd1/0x610 [ 16.774847] ? __virt_addr_valid+0x1db/0x2d0 [ 16.774896] ? _copy_to_user+0x3c/0x70 [ 16.774928] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.774951] ? _copy_to_user+0x3c/0x70 [ 16.774971] kasan_report+0x141/0x180 [ 16.774994] ? _copy_to_user+0x3c/0x70 [ 16.775018] kasan_check_range+0x10c/0x1c0 [ 16.775042] __kasan_check_read+0x15/0x20 [ 16.775062] _copy_to_user+0x3c/0x70 [ 16.775083] copy_user_test_oob+0x364/0x10f0 [ 16.775109] ? __pfx_copy_user_test_oob+0x10/0x10 [ 16.775203] ? finish_task_switch.isra.0+0x153/0x700 [ 16.775284] ? __switch_to+0x47/0xf50 [ 16.775312] ? __schedule+0x10c6/0x2b60 [ 16.775378] ? __pfx_read_tsc+0x10/0x10 [ 16.775400] ? ktime_get_ts64+0x86/0x230 [ 16.775424] kunit_try_run_case+0x1a5/0x480 [ 16.775461] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.775484] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.775509] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.775546] ? __kthread_parkme+0x82/0x180 [ 16.775569] ? preempt_count_sub+0x50/0x80 [ 16.775593] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.775617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.775641] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.775666] kthread+0x337/0x6f0 [ 16.775686] ? trace_preempt_on+0x20/0xc0 [ 16.775711] ? __pfx_kthread+0x10/0x10 [ 16.775732] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.775754] ? calculate_sigpending+0x7b/0xa0 [ 16.775778] ? __pfx_kthread+0x10/0x10 [ 16.775801] ret_from_fork+0x116/0x1d0 [ 16.775821] ? __pfx_kthread+0x10/0x10 [ 16.775841] ret_from_fork_asm+0x1a/0x30 [ 16.775871] </TASK> [ 16.775882] [ 16.786149] Allocated by task 303: [ 16.786308] kasan_save_stack+0x45/0x70 [ 16.786514] kasan_save_track+0x18/0x40 [ 16.786728] kasan_save_alloc_info+0x3b/0x50 [ 16.786892] __kasan_kmalloc+0xb7/0xc0 [ 16.787084] __kmalloc_noprof+0x1c9/0x500 [ 16.787349] kunit_kmalloc_array+0x25/0x60 [ 16.787600] copy_user_test_oob+0xab/0x10f0 [ 16.787755] kunit_try_run_case+0x1a5/0x480 [ 16.787935] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.788247] kthread+0x337/0x6f0 [ 16.788503] ret_from_fork+0x116/0x1d0 [ 16.788762] ret_from_fork_asm+0x1a/0x30 [ 16.788934] [ 16.789010] The buggy address belongs to the object at ffff8881027bcb00 [ 16.789010] which belongs to the cache kmalloc-128 of size 128 [ 16.789769] The buggy address is located 0 bytes inside of [ 16.789769] allocated 120-byte region [ffff8881027bcb00, ffff8881027bcb78) [ 16.790245] [ 16.790410] The buggy address belongs to the physical page: [ 16.790671] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027bc [ 16.791077] flags: 0x200000000000000(node=0|zone=2) [ 16.791302] page_type: f5(slab) [ 16.791588] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.791827] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.792182] page dumped because: kasan: bad access detected [ 16.792500] [ 16.792597] Memory state around the buggy address: [ 16.792809] ffff8881027bca00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.793295] ffff8881027bca80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.793588] >ffff8881027bcb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.793814] ^ [ 16.794186] ffff8881027bcb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.794560] ffff8881027bcc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.795016] ==================================================================