Date
July 6, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.385308] ================================================================== [ 21.385361] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x3c/0x2a0 [ 21.385419] Write of size 121 at addr fff00000c5709400 by task kunit_try_catch/285 [ 21.386481] [ 21.386520] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 21.386902] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.386933] Hardware name: linux,dummy-virt (DT) [ 21.387472] Call trace: [ 21.387512] show_stack+0x20/0x38 (C) [ 21.387568] dump_stack_lvl+0x8c/0xd0 [ 21.387625] print_report+0x118/0x608 [ 21.387674] kasan_report+0xdc/0x128 [ 21.387721] kasan_check_range+0x100/0x1a8 [ 21.387772] __kasan_check_write+0x20/0x30 [ 21.387819] strncpy_from_user+0x3c/0x2a0 [ 21.387868] copy_user_test_oob+0x5c0/0xec8 [ 21.387920] kunit_try_run_case+0x170/0x3f0 [ 21.387970] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.388025] kthread+0x328/0x630 [ 21.388070] ret_from_fork+0x10/0x20 [ 21.388120] [ 21.388140] Allocated by task 285: [ 21.388169] kasan_save_stack+0x3c/0x68 [ 21.388564] kasan_save_track+0x20/0x40 [ 21.389544] kasan_save_alloc_info+0x40/0x58 [ 21.389601] __kasan_kmalloc+0xd4/0xd8 [ 21.389640] __kmalloc_noprof+0x198/0x4c8 [ 21.389680] kunit_kmalloc_array+0x34/0x88 [ 21.389720] copy_user_test_oob+0xac/0xec8 [ 21.389759] kunit_try_run_case+0x170/0x3f0 [ 21.389800] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.389843] kthread+0x328/0x630 [ 21.389878] ret_from_fork+0x10/0x20 [ 21.389914] [ 21.389937] The buggy address belongs to the object at fff00000c5709400 [ 21.389937] which belongs to the cache kmalloc-128 of size 128 [ 21.389995] The buggy address is located 0 bytes inside of [ 21.389995] allocated 120-byte region [fff00000c5709400, fff00000c5709478) [ 21.390060] [ 21.390081] The buggy address belongs to the physical page: [ 21.390112] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105709 [ 21.390166] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.390294] page_type: f5(slab) [ 21.390348] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.390474] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.390536] page dumped because: kasan: bad access detected [ 21.390579] [ 21.390608] Memory state around the buggy address: [ 21.390645] fff00000c5709300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.390711] fff00000c5709380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.390757] >fff00000c5709400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.390797] ^ [ 21.390864] fff00000c5709480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.390910] fff00000c5709500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.390955] ================================================================== [ 21.392709] ================================================================== [ 21.392805] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x270/0x2a0 [ 21.393057] Write of size 1 at addr fff00000c5709478 by task kunit_try_catch/285 [ 21.393215] [ 21.393272] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 21.393598] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.393671] Hardware name: linux,dummy-virt (DT) [ 21.393734] Call trace: [ 21.393822] show_stack+0x20/0x38 (C) [ 21.393927] dump_stack_lvl+0x8c/0xd0 [ 21.394139] print_report+0x118/0x608 [ 21.394308] kasan_report+0xdc/0x128 [ 21.394480] __asan_report_store1_noabort+0x20/0x30 [ 21.394599] strncpy_from_user+0x270/0x2a0 [ 21.394737] copy_user_test_oob+0x5c0/0xec8 [ 21.394825] kunit_try_run_case+0x170/0x3f0 [ 21.394976] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.395036] kthread+0x328/0x630 [ 21.395327] ret_from_fork+0x10/0x20 [ 21.395483] [ 21.395551] Allocated by task 285: [ 21.395641] kasan_save_stack+0x3c/0x68 [ 21.395698] kasan_save_track+0x20/0x40 [ 21.395752] kasan_save_alloc_info+0x40/0x58 [ 21.395795] __kasan_kmalloc+0xd4/0xd8 [ 21.395844] __kmalloc_noprof+0x198/0x4c8 [ 21.395884] kunit_kmalloc_array+0x34/0x88 [ 21.395933] copy_user_test_oob+0xac/0xec8 [ 21.395975] kunit_try_run_case+0x170/0x3f0 [ 21.396017] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.396061] kthread+0x328/0x630 [ 21.396104] ret_from_fork+0x10/0x20 [ 21.396140] [ 21.396171] The buggy address belongs to the object at fff00000c5709400 [ 21.396171] which belongs to the cache kmalloc-128 of size 128 [ 21.396479] The buggy address is located 0 bytes to the right of [ 21.396479] allocated 120-byte region [fff00000c5709400, fff00000c5709478) [ 21.396702] [ 21.396763] The buggy address belongs to the physical page: [ 21.396900] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105709 [ 21.397032] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.397268] page_type: f5(slab) [ 21.397385] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.397468] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.397518] page dumped because: kasan: bad access detected [ 21.397555] [ 21.397575] Memory state around the buggy address: [ 21.397789] fff00000c5709300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.397933] fff00000c5709380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.398095] >fff00000c5709400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.398365] ^ [ 21.398563] fff00000c5709480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.398667] fff00000c5709500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.398707] ==================================================================
[ 15.740825] ================================================================== [ 15.741083] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x2e/0x1d0 [ 15.741392] Write of size 121 at addr ffff888103a21000 by task kunit_try_catch/302 [ 15.741727] [ 15.741907] CPU: 0 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.741970] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.741983] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.742006] Call Trace: [ 15.742024] <TASK> [ 15.742043] dump_stack_lvl+0x73/0xb0 [ 15.742083] print_report+0xd1/0x650 [ 15.742107] ? __virt_addr_valid+0x1db/0x2d0 [ 15.742130] ? strncpy_from_user+0x2e/0x1d0 [ 15.742155] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.742177] ? strncpy_from_user+0x2e/0x1d0 [ 15.742212] kasan_report+0x141/0x180 [ 15.742235] ? strncpy_from_user+0x2e/0x1d0 [ 15.742275] kasan_check_range+0x10c/0x1c0 [ 15.742300] __kasan_check_write+0x18/0x20 [ 15.742322] strncpy_from_user+0x2e/0x1d0 [ 15.742346] ? __kasan_check_read+0x15/0x20 [ 15.742377] copy_user_test_oob+0x760/0x10f0 [ 15.742405] ? __pfx_copy_user_test_oob+0x10/0x10 [ 15.742440] ? finish_task_switch.isra.0+0x153/0x700 [ 15.742463] ? __switch_to+0x47/0xf50 [ 15.742490] ? __schedule+0x10cc/0x2b60 [ 15.742513] ? __pfx_read_tsc+0x10/0x10 [ 15.742534] ? ktime_get_ts64+0x86/0x230 [ 15.742560] kunit_try_run_case+0x1a5/0x480 [ 15.742595] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.742619] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.742643] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.742679] ? __kthread_parkme+0x82/0x180 [ 15.742700] ? preempt_count_sub+0x50/0x80 [ 15.742735] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.742761] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.742785] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.742810] kthread+0x337/0x6f0 [ 15.742830] ? trace_preempt_on+0x20/0xc0 [ 15.742854] ? __pfx_kthread+0x10/0x10 [ 15.742877] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.742900] ? calculate_sigpending+0x7b/0xa0 [ 15.742925] ? __pfx_kthread+0x10/0x10 [ 15.742956] ret_from_fork+0x116/0x1d0 [ 15.742976] ? __pfx_kthread+0x10/0x10 [ 15.742998] ret_from_fork_asm+0x1a/0x30 [ 15.743039] </TASK> [ 15.743052] [ 15.750603] Allocated by task 302: [ 15.750791] kasan_save_stack+0x45/0x70 [ 15.751026] kasan_save_track+0x18/0x40 [ 15.751438] kasan_save_alloc_info+0x3b/0x50 [ 15.751688] __kasan_kmalloc+0xb7/0xc0 [ 15.751868] __kmalloc_noprof+0x1c9/0x500 [ 15.752016] kunit_kmalloc_array+0x25/0x60 [ 15.752408] copy_user_test_oob+0xab/0x10f0 [ 15.752621] kunit_try_run_case+0x1a5/0x480 [ 15.752841] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.753092] kthread+0x337/0x6f0 [ 15.753255] ret_from_fork+0x116/0x1d0 [ 15.753395] ret_from_fork_asm+0x1a/0x30 [ 15.753615] [ 15.753698] The buggy address belongs to the object at ffff888103a21000 [ 15.753698] which belongs to the cache kmalloc-128 of size 128 [ 15.754201] The buggy address is located 0 bytes inside of [ 15.754201] allocated 120-byte region [ffff888103a21000, ffff888103a21078) [ 15.754695] [ 15.754791] The buggy address belongs to the physical page: [ 15.755023] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a21 [ 15.755448] flags: 0x200000000000000(node=0|zone=2) [ 15.755684] page_type: f5(slab) [ 15.755829] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 15.756159] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.756512] page dumped because: kasan: bad access detected [ 15.756894] [ 15.757015] Memory state around the buggy address: [ 15.757281] ffff888103a20f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.757551] ffff888103a20f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.757894] >ffff888103a21000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.758235] ^ [ 15.758568] ffff888103a21080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.758868] ffff888103a21100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.759168] ================================================================== [ 15.759577] ================================================================== [ 15.759972] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x1a5/0x1d0 [ 15.760297] Write of size 1 at addr ffff888103a21078 by task kunit_try_catch/302 [ 15.760544] [ 15.760630] CPU: 0 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.760672] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.760685] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.760707] Call Trace: [ 15.760723] <TASK> [ 15.760739] dump_stack_lvl+0x73/0xb0 [ 15.760766] print_report+0xd1/0x650 [ 15.760790] ? __virt_addr_valid+0x1db/0x2d0 [ 15.760814] ? strncpy_from_user+0x1a5/0x1d0 [ 15.760837] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.760860] ? strncpy_from_user+0x1a5/0x1d0 [ 15.760902] kasan_report+0x141/0x180 [ 15.760925] ? strncpy_from_user+0x1a5/0x1d0 [ 15.760965] __asan_report_store1_noabort+0x1b/0x30 [ 15.760988] strncpy_from_user+0x1a5/0x1d0 [ 15.761014] copy_user_test_oob+0x760/0x10f0 [ 15.761043] ? __pfx_copy_user_test_oob+0x10/0x10 [ 15.761080] ? finish_task_switch.isra.0+0x153/0x700 [ 15.761103] ? __switch_to+0x47/0xf50 [ 15.761129] ? __schedule+0x10cc/0x2b60 [ 15.761163] ? __pfx_read_tsc+0x10/0x10 [ 15.761184] ? ktime_get_ts64+0x86/0x230 [ 15.761209] kunit_try_run_case+0x1a5/0x480 [ 15.761235] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.761258] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.761283] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.761308] ? __kthread_parkme+0x82/0x180 [ 15.761330] ? preempt_count_sub+0x50/0x80 [ 15.761356] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.761383] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.761418] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.761443] kthread+0x337/0x6f0 [ 15.761464] ? trace_preempt_on+0x20/0xc0 [ 15.761499] ? __pfx_kthread+0x10/0x10 [ 15.761521] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.761543] ? calculate_sigpending+0x7b/0xa0 [ 15.761568] ? __pfx_kthread+0x10/0x10 [ 15.761591] ret_from_fork+0x116/0x1d0 [ 15.761611] ? __pfx_kthread+0x10/0x10 [ 15.761633] ret_from_fork_asm+0x1a/0x30 [ 15.761664] </TASK> [ 15.761678] [ 15.771435] Allocated by task 302: [ 15.771725] kasan_save_stack+0x45/0x70 [ 15.772000] kasan_save_track+0x18/0x40 [ 15.772296] kasan_save_alloc_info+0x3b/0x50 [ 15.772624] __kasan_kmalloc+0xb7/0xc0 [ 15.772915] __kmalloc_noprof+0x1c9/0x500 [ 15.773135] kunit_kmalloc_array+0x25/0x60 [ 15.773487] copy_user_test_oob+0xab/0x10f0 [ 15.773792] kunit_try_run_case+0x1a5/0x480 [ 15.774089] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.774317] kthread+0x337/0x6f0 [ 15.774488] ret_from_fork+0x116/0x1d0 [ 15.774669] ret_from_fork_asm+0x1a/0x30 [ 15.774869] [ 15.774967] The buggy address belongs to the object at ffff888103a21000 [ 15.774967] which belongs to the cache kmalloc-128 of size 128 [ 15.775864] The buggy address is located 0 bytes to the right of [ 15.775864] allocated 120-byte region [ffff888103a21000, ffff888103a21078) [ 15.776515] [ 15.776606] The buggy address belongs to the physical page: [ 15.776983] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a21 [ 15.777501] flags: 0x200000000000000(node=0|zone=2) [ 15.777739] page_type: f5(slab) [ 15.778023] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 15.778492] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.778905] page dumped because: kasan: bad access detected [ 15.779111] [ 15.779380] Memory state around the buggy address: [ 15.779554] ffff888103a20f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.780021] ffff888103a20f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.780453] >ffff888103a21000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.780845] ^ [ 15.781165] ffff888103a21080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.781482] ffff888103a21100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.781778] ==================================================================