Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.938806] ================================================================== [ 33.939004] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x3c/0x2a0 [ 33.939130] Write of size 121 at addr fff00000c9c2f300 by task kunit_try_catch/318 [ 33.939186] [ 33.939218] CPU: 1 UID: 0 PID: 318 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 33.939623] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 33.939949] Hardware name: linux,dummy-virt (DT) [ 33.940003] Call trace: [ 33.940087] show_stack+0x20/0x38 (C) [ 33.940173] dump_stack_lvl+0x8c/0xd0 [ 33.940230] print_report+0x118/0x5e8 [ 33.940373] kasan_report+0xdc/0x128 [ 33.940439] kasan_check_range+0x100/0x1a8 [ 33.940490] __kasan_check_write+0x20/0x30 [ 33.940877] strncpy_from_user+0x3c/0x2a0 [ 33.940963] copy_user_test_oob+0x5c0/0xec8 [ 33.941288] kunit_try_run_case+0x170/0x3f0 [ 33.941416] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.941688] kthread+0x328/0x630 [ 33.941744] ret_from_fork+0x10/0x20 [ 33.941795] [ 33.941817] Allocated by task 318: [ 33.942313] kasan_save_stack+0x3c/0x68 [ 33.942812] kasan_save_track+0x20/0x40 [ 33.943278] kasan_save_alloc_info+0x40/0x58 [ 33.943365] __kasan_kmalloc+0xd4/0xd8 [ 33.943440] __kmalloc_noprof+0x198/0x4c8 [ 33.943659] kunit_kmalloc_array+0x34/0x88 [ 33.943700] copy_user_test_oob+0xac/0xec8 [ 33.944295] kunit_try_run_case+0x170/0x3f0 [ 33.944349] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.944397] kthread+0x328/0x630 [ 33.944460] ret_from_fork+0x10/0x20 [ 33.944519] [ 33.944830] The buggy address belongs to the object at fff00000c9c2f300 [ 33.944830] which belongs to the cache kmalloc-128 of size 128 [ 33.945193] The buggy address is located 0 bytes inside of [ 33.945193] allocated 120-byte region [fff00000c9c2f300, fff00000c9c2f378) [ 33.945270] [ 33.945425] The buggy address belongs to the physical page: [ 33.945466] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109c2f [ 33.945647] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.945811] page_type: f5(slab) [ 33.946073] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 33.946397] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 33.946712] page dumped because: kasan: bad access detected [ 33.947169] [ 33.947233] Memory state around the buggy address: [ 33.947587] fff00000c9c2f200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.947650] fff00000c9c2f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.947702] >fff00000c9c2f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 33.947773] ^ [ 33.947822] fff00000c9c2f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.947869] fff00000c9c2f400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.947922] ================================================================== [ 33.949622] ================================================================== [ 33.949685] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x270/0x2a0 [ 33.949738] Write of size 1 at addr fff00000c9c2f378 by task kunit_try_catch/318 [ 33.949798] [ 33.950137] CPU: 1 UID: 0 PID: 318 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 33.950573] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 33.950625] Hardware name: linux,dummy-virt (DT) [ 33.950705] Call trace: [ 33.950732] show_stack+0x20/0x38 (C) [ 33.950786] dump_stack_lvl+0x8c/0xd0 [ 33.950831] print_report+0x118/0x5e8 [ 33.950970] kasan_report+0xdc/0x128 [ 33.951017] __asan_report_store1_noabort+0x20/0x30 [ 33.951201] strncpy_from_user+0x270/0x2a0 [ 33.951255] copy_user_test_oob+0x5c0/0xec8 [ 33.951559] kunit_try_run_case+0x170/0x3f0 [ 33.951859] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.951948] kthread+0x328/0x630 [ 33.951993] ret_from_fork+0x10/0x20 [ 33.952042] [ 33.952333] Allocated by task 318: [ 33.952528] kasan_save_stack+0x3c/0x68 [ 33.952703] kasan_save_track+0x20/0x40 [ 33.952803] kasan_save_alloc_info+0x40/0x58 [ 33.952869] __kasan_kmalloc+0xd4/0xd8 [ 33.953089] __kmalloc_noprof+0x198/0x4c8 [ 33.953133] kunit_kmalloc_array+0x34/0x88 [ 33.953269] copy_user_test_oob+0xac/0xec8 [ 33.953341] kunit_try_run_case+0x170/0x3f0 [ 33.953481] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.953646] kthread+0x328/0x630 [ 33.953826] ret_from_fork+0x10/0x20 [ 33.953872] [ 33.953906] The buggy address belongs to the object at fff00000c9c2f300 [ 33.953906] which belongs to the cache kmalloc-128 of size 128 [ 33.954480] The buggy address is located 0 bytes to the right of [ 33.954480] allocated 120-byte region [fff00000c9c2f300, fff00000c9c2f378) [ 33.954635] [ 33.954707] The buggy address belongs to the physical page: [ 33.954940] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109c2f [ 33.955161] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.955536] page_type: f5(slab) [ 33.955607] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 33.955806] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 33.955967] page dumped because: kasan: bad access detected [ 33.956033] [ 33.956056] Memory state around the buggy address: [ 33.956111] fff00000c9c2f200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.956176] fff00000c9c2f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.956240] >fff00000c9c2f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 33.956289] ^ [ 33.956336] fff00000c9c2f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.956389] fff00000c9c2f400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.956439] ==================================================================
[ 29.423942] ================================================================== [ 29.424569] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x2e/0x1d0 [ 29.424902] Write of size 121 at addr ffff8881060a7500 by task kunit_try_catch/334 [ 29.425428] [ 29.425526] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 29.425674] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.425693] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.425868] Call Trace: [ 29.425895] <TASK> [ 29.425917] dump_stack_lvl+0x73/0xb0 [ 29.425966] print_report+0xd1/0x640 [ 29.425992] ? __virt_addr_valid+0x1db/0x2d0 [ 29.426019] ? strncpy_from_user+0x2e/0x1d0 [ 29.426044] ? kasan_complete_mode_report_info+0x2a/0x200 [ 29.426238] ? strncpy_from_user+0x2e/0x1d0 [ 29.426265] kasan_report+0x141/0x180 [ 29.426289] ? strncpy_from_user+0x2e/0x1d0 [ 29.426318] kasan_check_range+0x10c/0x1c0 [ 29.426343] __kasan_check_write+0x18/0x20 [ 29.426368] strncpy_from_user+0x2e/0x1d0 [ 29.426392] ? __kasan_check_read+0x15/0x20 [ 29.426419] copy_user_test_oob+0x760/0x10f0 [ 29.426445] ? __pfx_copy_user_test_oob+0x10/0x10 [ 29.426470] ? finish_task_switch.isra.0+0x153/0x700 [ 29.426492] ? __switch_to+0x47/0xf80 [ 29.426520] ? __schedule+0x10da/0x2b60 [ 29.426547] ? __pfx_read_tsc+0x10/0x10 [ 29.426570] ? ktime_get_ts64+0x86/0x230 [ 29.426595] kunit_try_run_case+0x1a5/0x480 [ 29.426622] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.426646] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 29.426671] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.426698] ? __kthread_parkme+0x82/0x180 [ 29.426719] ? preempt_count_sub+0x50/0x80 [ 29.426743] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.426768] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.426792] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.426817] kthread+0x337/0x6f0 [ 29.426840] ? trace_preempt_on+0x20/0xc0 [ 29.426865] ? __pfx_kthread+0x10/0x10 [ 29.426887] ? _raw_spin_unlock_irq+0x47/0x80 [ 29.426912] ? calculate_sigpending+0x7b/0xa0 [ 29.426945] ? __pfx_kthread+0x10/0x10 [ 29.426968] ret_from_fork+0x116/0x1d0 [ 29.426989] ? __pfx_kthread+0x10/0x10 [ 29.427011] ret_from_fork_asm+0x1a/0x30 [ 29.427043] </TASK> [ 29.427056] [ 29.437389] Allocated by task 334: [ 29.437597] kasan_save_stack+0x45/0x70 [ 29.437796] kasan_save_track+0x18/0x40 [ 29.438242] kasan_save_alloc_info+0x3b/0x50 [ 29.438463] __kasan_kmalloc+0xb7/0xc0 [ 29.438610] __kmalloc_noprof+0x1ca/0x510 [ 29.438946] kunit_kmalloc_array+0x25/0x60 [ 29.439221] copy_user_test_oob+0xab/0x10f0 [ 29.439571] kunit_try_run_case+0x1a5/0x480 [ 29.439852] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.440073] kthread+0x337/0x6f0 [ 29.440414] ret_from_fork+0x116/0x1d0 [ 29.440595] ret_from_fork_asm+0x1a/0x30 [ 29.440772] [ 29.440869] The buggy address belongs to the object at ffff8881060a7500 [ 29.440869] which belongs to the cache kmalloc-128 of size 128 [ 29.441714] The buggy address is located 0 bytes inside of [ 29.441714] allocated 120-byte region [ffff8881060a7500, ffff8881060a7578) [ 29.442466] [ 29.442574] The buggy address belongs to the physical page: [ 29.442940] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060a7 [ 29.443336] flags: 0x200000000000000(node=0|zone=2) [ 29.443661] page_type: f5(slab) [ 29.443808] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 29.444312] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.444704] page dumped because: kasan: bad access detected [ 29.444897] [ 29.445176] Memory state around the buggy address: [ 29.445411] ffff8881060a7400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.445844] ffff8881060a7480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.446256] >ffff8881060a7500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.446649] ^ [ 29.446906] ffff8881060a7580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.447347] ffff8881060a7600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.447656] ================================================================== [ 29.448733] ================================================================== [ 29.449090] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x1a5/0x1d0 [ 29.449521] Write of size 1 at addr ffff8881060a7578 by task kunit_try_catch/334 [ 29.450028] [ 29.450248] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 29.450305] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.450320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.450344] Call Trace: [ 29.450365] <TASK> [ 29.450385] dump_stack_lvl+0x73/0xb0 [ 29.450490] print_report+0xd1/0x640 [ 29.450535] ? __virt_addr_valid+0x1db/0x2d0 [ 29.450561] ? strncpy_from_user+0x1a5/0x1d0 [ 29.450587] ? kasan_complete_mode_report_info+0x2a/0x200 [ 29.450614] ? strncpy_from_user+0x1a5/0x1d0 [ 29.450638] kasan_report+0x141/0x180 [ 29.450663] ? strncpy_from_user+0x1a5/0x1d0 [ 29.450692] __asan_report_store1_noabort+0x1b/0x30 [ 29.450718] strncpy_from_user+0x1a5/0x1d0 [ 29.450745] copy_user_test_oob+0x760/0x10f0 [ 29.450772] ? __pfx_copy_user_test_oob+0x10/0x10 [ 29.450796] ? finish_task_switch.isra.0+0x153/0x700 [ 29.450819] ? __switch_to+0x47/0xf80 [ 29.450847] ? __schedule+0x10da/0x2b60 [ 29.450874] ? __pfx_read_tsc+0x10/0x10 [ 29.450896] ? ktime_get_ts64+0x86/0x230 [ 29.450923] kunit_try_run_case+0x1a5/0x480 [ 29.450958] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.450982] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 29.451008] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.451034] ? __kthread_parkme+0x82/0x180 [ 29.451057] ? preempt_count_sub+0x50/0x80 [ 29.451080] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.451106] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.451131] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.451166] kthread+0x337/0x6f0 [ 29.451188] ? trace_preempt_on+0x20/0xc0 [ 29.451214] ? __pfx_kthread+0x10/0x10 [ 29.451236] ? _raw_spin_unlock_irq+0x47/0x80 [ 29.451261] ? calculate_sigpending+0x7b/0xa0 [ 29.451286] ? __pfx_kthread+0x10/0x10 [ 29.451309] ret_from_fork+0x116/0x1d0 [ 29.451330] ? __pfx_kthread+0x10/0x10 [ 29.451353] ret_from_fork_asm+0x1a/0x30 [ 29.451386] </TASK> [ 29.451398] [ 29.461511] Allocated by task 334: [ 29.461891] kasan_save_stack+0x45/0x70 [ 29.462165] kasan_save_track+0x18/0x40 [ 29.462512] kasan_save_alloc_info+0x3b/0x50 [ 29.462727] __kasan_kmalloc+0xb7/0xc0 [ 29.463073] __kmalloc_noprof+0x1ca/0x510 [ 29.463281] kunit_kmalloc_array+0x25/0x60 [ 29.463569] copy_user_test_oob+0xab/0x10f0 [ 29.463758] kunit_try_run_case+0x1a5/0x480 [ 29.464124] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.464408] kthread+0x337/0x6f0 [ 29.464529] ret_from_fork+0x116/0x1d0 [ 29.464834] ret_from_fork_asm+0x1a/0x30 [ 29.465029] [ 29.465161] The buggy address belongs to the object at ffff8881060a7500 [ 29.465161] which belongs to the cache kmalloc-128 of size 128 [ 29.465678] The buggy address is located 0 bytes to the right of [ 29.465678] allocated 120-byte region [ffff8881060a7500, ffff8881060a7578) [ 29.466216] [ 29.466295] The buggy address belongs to the physical page: [ 29.466551] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060a7 [ 29.466873] flags: 0x200000000000000(node=0|zone=2) [ 29.467127] page_type: f5(slab) [ 29.467315] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 29.467587] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.467913] page dumped because: kasan: bad access detected [ 29.468185] [ 29.468269] Memory state around the buggy address: [ 29.468437] ffff8881060a7400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.468754] ffff8881060a7480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.469123] >ffff8881060a7500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.469429] ^ [ 29.469731] ffff8881060a7580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.469949] ffff8881060a7600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.470233] ==================================================================