Date
July 8, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.334376] ================================================================== [ 22.334436] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x3c/0x2a0 [ 22.334492] Write of size 121 at addr fff00000c63b9300 by task kunit_try_catch/285 [ 22.334728] [ 22.334764] CPU: 0 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 22.334846] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.334879] Hardware name: linux,dummy-virt (DT) [ 22.334947] Call trace: [ 22.334974] show_stack+0x20/0x38 (C) [ 22.335189] dump_stack_lvl+0x8c/0xd0 [ 22.335283] print_report+0x118/0x608 [ 22.335334] kasan_report+0xdc/0x128 [ 22.335411] kasan_check_range+0x100/0x1a8 [ 22.335461] __kasan_check_write+0x20/0x30 [ 22.335616] strncpy_from_user+0x3c/0x2a0 [ 22.335667] copy_user_test_oob+0x5c0/0xec8 [ 22.335717] kunit_try_run_case+0x170/0x3f0 [ 22.335887] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.335974] kthread+0x328/0x630 [ 22.336090] ret_from_fork+0x10/0x20 [ 22.336285] [ 22.336307] Allocated by task 285: [ 22.336382] kasan_save_stack+0x3c/0x68 [ 22.336461] kasan_save_track+0x20/0x40 [ 22.336503] kasan_save_alloc_info+0x40/0x58 [ 22.336544] __kasan_kmalloc+0xd4/0xd8 [ 22.336732] __kmalloc_noprof+0x198/0x4c8 [ 22.336824] kunit_kmalloc_array+0x34/0x88 [ 22.336938] copy_user_test_oob+0xac/0xec8 [ 22.337121] kunit_try_run_case+0x170/0x3f0 [ 22.337246] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.337294] kthread+0x328/0x630 [ 22.337327] ret_from_fork+0x10/0x20 [ 22.337574] [ 22.337689] The buggy address belongs to the object at fff00000c63b9300 [ 22.337689] which belongs to the cache kmalloc-128 of size 128 [ 22.337832] The buggy address is located 0 bytes inside of [ 22.337832] allocated 120-byte region [fff00000c63b9300, fff00000c63b9378) [ 22.337993] [ 22.338383] The buggy address belongs to the physical page: [ 22.338482] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063b9 [ 22.338633] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.338713] page_type: f5(slab) [ 22.338846] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.338929] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.338972] page dumped because: kasan: bad access detected [ 22.339006] [ 22.339529] Memory state around the buggy address: [ 22.339729] fff00000c63b9200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.339826] fff00000c63b9280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.339932] >fff00000c63b9300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 22.340303] ^ [ 22.340410] fff00000c63b9380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.340459] fff00000c63b9400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.340524] ================================================================== [ 22.341366] ================================================================== [ 22.341447] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x270/0x2a0 [ 22.341534] Write of size 1 at addr fff00000c63b9378 by task kunit_try_catch/285 [ 22.341589] [ 22.341627] CPU: 0 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 22.341711] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.341740] Hardware name: linux,dummy-virt (DT) [ 22.341772] Call trace: [ 22.341927] show_stack+0x20/0x38 (C) [ 22.342043] dump_stack_lvl+0x8c/0xd0 [ 22.342137] print_report+0x118/0x608 [ 22.342238] kasan_report+0xdc/0x128 [ 22.342286] __asan_report_store1_noabort+0x20/0x30 [ 22.342338] strncpy_from_user+0x270/0x2a0 [ 22.342544] copy_user_test_oob+0x5c0/0xec8 [ 22.342646] kunit_try_run_case+0x170/0x3f0 [ 22.342698] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.342797] kthread+0x328/0x630 [ 22.342840] ret_from_fork+0x10/0x20 [ 22.342920] [ 22.342981] Allocated by task 285: [ 22.343013] kasan_save_stack+0x3c/0x68 [ 22.343056] kasan_save_track+0x20/0x40 [ 22.343125] kasan_save_alloc_info+0x40/0x58 [ 22.343270] __kasan_kmalloc+0xd4/0xd8 [ 22.343315] __kmalloc_noprof+0x198/0x4c8 [ 22.343468] kunit_kmalloc_array+0x34/0x88 [ 22.343701] copy_user_test_oob+0xac/0xec8 [ 22.343902] kunit_try_run_case+0x170/0x3f0 [ 22.343966] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.344035] kthread+0x328/0x630 [ 22.344079] ret_from_fork+0x10/0x20 [ 22.344139] [ 22.344188] The buggy address belongs to the object at fff00000c63b9300 [ 22.344188] which belongs to the cache kmalloc-128 of size 128 [ 22.344259] The buggy address is located 0 bytes to the right of [ 22.344259] allocated 120-byte region [fff00000c63b9300, fff00000c63b9378) [ 22.344337] [ 22.344358] The buggy address belongs to the physical page: [ 22.344393] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063b9 [ 22.344468] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.344520] page_type: f5(slab) [ 22.344592] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.344876] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.345066] page dumped because: kasan: bad access detected [ 22.345172] [ 22.345262] Memory state around the buggy address: [ 22.345430] fff00000c63b9200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.345517] fff00000c63b9280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.345617] >fff00000c63b9300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 22.345676] ^ [ 22.345721] fff00000c63b9380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.345765] fff00000c63b9400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.345806] ==================================================================
[ 16.570760] ================================================================== [ 16.571226] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x2e/0x1d0 [ 16.571459] Write of size 121 at addr ffff888102675c00 by task kunit_try_catch/303 [ 16.571812] [ 16.571924] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 16.571969] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.571982] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.572004] Call Trace: [ 16.572023] <TASK> [ 16.572042] dump_stack_lvl+0x73/0xb0 [ 16.572082] print_report+0xd1/0x650 [ 16.572106] ? __virt_addr_valid+0x1db/0x2d0 [ 16.572131] ? strncpy_from_user+0x2e/0x1d0 [ 16.572156] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.572181] ? strncpy_from_user+0x2e/0x1d0 [ 16.572206] kasan_report+0x141/0x180 [ 16.572228] ? strncpy_from_user+0x2e/0x1d0 [ 16.572258] kasan_check_range+0x10c/0x1c0 [ 16.572283] __kasan_check_write+0x18/0x20 [ 16.572303] strncpy_from_user+0x2e/0x1d0 [ 16.572327] ? __kasan_check_read+0x15/0x20 [ 16.572349] copy_user_test_oob+0x760/0x10f0 [ 16.572377] ? __pfx_copy_user_test_oob+0x10/0x10 [ 16.572402] ? finish_task_switch.isra.0+0x153/0x700 [ 16.572426] ? __switch_to+0x47/0xf50 [ 16.572453] ? __schedule+0x10cc/0x2b60 [ 16.572477] ? __pfx_read_tsc+0x10/0x10 [ 16.572499] ? ktime_get_ts64+0x86/0x230 [ 16.572533] kunit_try_run_case+0x1a5/0x480 [ 16.572558] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.572583] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.572621] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.572646] ? __kthread_parkme+0x82/0x180 [ 16.572668] ? preempt_count_sub+0x50/0x80 [ 16.572692] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.572718] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.572744] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.572770] kthread+0x337/0x6f0 [ 16.572790] ? trace_preempt_on+0x20/0xc0 [ 16.572815] ? __pfx_kthread+0x10/0x10 [ 16.572838] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.572860] ? calculate_sigpending+0x7b/0xa0 [ 16.572886] ? __pfx_kthread+0x10/0x10 [ 16.572908] ret_from_fork+0x116/0x1d0 [ 16.572927] ? __pfx_kthread+0x10/0x10 [ 16.572948] ret_from_fork_asm+0x1a/0x30 [ 16.572980] </TASK> [ 16.572992] [ 16.580243] Allocated by task 303: [ 16.580398] kasan_save_stack+0x45/0x70 [ 16.580637] kasan_save_track+0x18/0x40 [ 16.580793] kasan_save_alloc_info+0x3b/0x50 [ 16.580990] __kasan_kmalloc+0xb7/0xc0 [ 16.581155] __kmalloc_noprof+0x1c9/0x500 [ 16.581302] kunit_kmalloc_array+0x25/0x60 [ 16.581510] copy_user_test_oob+0xab/0x10f0 [ 16.581741] kunit_try_run_case+0x1a5/0x480 [ 16.581927] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.582138] kthread+0x337/0x6f0 [ 16.582294] ret_from_fork+0x116/0x1d0 [ 16.582428] ret_from_fork_asm+0x1a/0x30 [ 16.582568] [ 16.582649] The buggy address belongs to the object at ffff888102675c00 [ 16.582649] which belongs to the cache kmalloc-128 of size 128 [ 16.583075] The buggy address is located 0 bytes inside of [ 16.583075] allocated 120-byte region [ffff888102675c00, ffff888102675c78) [ 16.583721] [ 16.583818] The buggy address belongs to the physical page: [ 16.584068] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102675 [ 16.584422] flags: 0x200000000000000(node=0|zone=2) [ 16.584743] page_type: f5(slab) [ 16.584902] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.585152] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.585378] page dumped because: kasan: bad access detected [ 16.585546] [ 16.585624] Memory state around the buggy address: [ 16.585925] ffff888102675b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.586369] ffff888102675b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.586663] >ffff888102675c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.586966] ^ [ 16.587200] ffff888102675c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.587483] ffff888102675d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.587820] ================================================================== [ 16.588258] ================================================================== [ 16.588531] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x1a5/0x1d0 [ 16.588876] Write of size 1 at addr ffff888102675c78 by task kunit_try_catch/303 [ 16.589211] [ 16.589406] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 16.589449] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.589462] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.589483] Call Trace: [ 16.589499] <TASK> [ 16.589514] dump_stack_lvl+0x73/0xb0 [ 16.589543] print_report+0xd1/0x650 [ 16.589568] ? __virt_addr_valid+0x1db/0x2d0 [ 16.589593] ? strncpy_from_user+0x1a5/0x1d0 [ 16.589629] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.589655] ? strncpy_from_user+0x1a5/0x1d0 [ 16.589679] kasan_report+0x141/0x180 [ 16.589706] ? strncpy_from_user+0x1a5/0x1d0 [ 16.589735] __asan_report_store1_noabort+0x1b/0x30 [ 16.589762] strncpy_from_user+0x1a5/0x1d0 [ 16.589788] copy_user_test_oob+0x760/0x10f0 [ 16.589816] ? __pfx_copy_user_test_oob+0x10/0x10 [ 16.589841] ? finish_task_switch.isra.0+0x153/0x700 [ 16.589875] ? __switch_to+0x47/0xf50 [ 16.589902] ? __schedule+0x10cc/0x2b60 [ 16.589925] ? __pfx_read_tsc+0x10/0x10 [ 16.589947] ? ktime_get_ts64+0x86/0x230 [ 16.589973] kunit_try_run_case+0x1a5/0x480 [ 16.589998] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.590023] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.590048] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.590073] ? __kthread_parkme+0x82/0x180 [ 16.590094] ? preempt_count_sub+0x50/0x80 [ 16.590119] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.590144] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.590170] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.590198] kthread+0x337/0x6f0 [ 16.590217] ? trace_preempt_on+0x20/0xc0 [ 16.590242] ? __pfx_kthread+0x10/0x10 [ 16.590265] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.590287] ? calculate_sigpending+0x7b/0xa0 [ 16.590312] ? __pfx_kthread+0x10/0x10 [ 16.590334] ret_from_fork+0x116/0x1d0 [ 16.590353] ? __pfx_kthread+0x10/0x10 [ 16.590374] ret_from_fork_asm+0x1a/0x30 [ 16.590406] </TASK> [ 16.590417] [ 16.597721] Allocated by task 303: [ 16.597905] kasan_save_stack+0x45/0x70 [ 16.598108] kasan_save_track+0x18/0x40 [ 16.598301] kasan_save_alloc_info+0x3b/0x50 [ 16.598523] __kasan_kmalloc+0xb7/0xc0 [ 16.598728] __kmalloc_noprof+0x1c9/0x500 [ 16.598935] kunit_kmalloc_array+0x25/0x60 [ 16.599120] copy_user_test_oob+0xab/0x10f0 [ 16.599310] kunit_try_run_case+0x1a5/0x480 [ 16.599492] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.599728] kthread+0x337/0x6f0 [ 16.599851] ret_from_fork+0x116/0x1d0 [ 16.600046] ret_from_fork_asm+0x1a/0x30 [ 16.600245] [ 16.600341] The buggy address belongs to the object at ffff888102675c00 [ 16.600341] which belongs to the cache kmalloc-128 of size 128 [ 16.600843] The buggy address is located 0 bytes to the right of [ 16.600843] allocated 120-byte region [ffff888102675c00, ffff888102675c78) [ 16.601311] [ 16.601405] The buggy address belongs to the physical page: [ 16.601651] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102675 [ 16.601968] flags: 0x200000000000000(node=0|zone=2) [ 16.602189] page_type: f5(slab) [ 16.602344] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.602725] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.603027] page dumped because: kasan: bad access detected [ 16.603254] [ 16.603331] Memory state around the buggy address: [ 16.603533] ffff888102675b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.603816] ffff888102675b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.604027] >ffff888102675c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.604239] ^ [ 16.604448] ffff888102675c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.604847] ffff888102675d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.605439] ==================================================================