Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.815499] ================================================================== [ 29.815603] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x3c/0x2a0 [ 29.815717] Write of size 121 at addr fff00000c7065800 by task kunit_try_catch/287 [ 29.815845] [ 29.815923] CPU: 0 UID: 0 PID: 287 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 29.816113] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.816413] Hardware name: linux,dummy-virt (DT) [ 29.816533] Call trace: [ 29.816617] show_stack+0x20/0x38 (C) [ 29.817090] dump_stack_lvl+0x8c/0xd0 [ 29.817356] print_report+0x118/0x608 [ 29.817505] kasan_report+0xdc/0x128 [ 29.817630] kasan_check_range+0x100/0x1a8 [ 29.817757] __kasan_check_write+0x20/0x30 [ 29.817885] strncpy_from_user+0x3c/0x2a0 [ 29.818060] copy_user_test_oob+0x5c0/0xec8 [ 29.818483] kunit_try_run_case+0x170/0x3f0 [ 29.818665] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.818824] kthread+0x328/0x630 [ 29.819622] ret_from_fork+0x10/0x20 [ 29.819815] [ 29.820168] Allocated by task 287: [ 29.820406] kasan_save_stack+0x3c/0x68 [ 29.820645] kasan_save_track+0x20/0x40 [ 29.820841] kasan_save_alloc_info+0x40/0x58 [ 29.821203] __kasan_kmalloc+0xd4/0xd8 [ 29.821662] __kmalloc_noprof+0x198/0x4c8 [ 29.822069] kunit_kmalloc_array+0x34/0x88 [ 29.822575] copy_user_test_oob+0xac/0xec8 [ 29.822710] kunit_try_run_case+0x170/0x3f0 [ 29.823270] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.823448] kthread+0x328/0x630 [ 29.823579] ret_from_fork+0x10/0x20 [ 29.823837] [ 29.823909] The buggy address belongs to the object at fff00000c7065800 [ 29.823909] which belongs to the cache kmalloc-128 of size 128 [ 29.824110] The buggy address is located 0 bytes inside of [ 29.824110] allocated 120-byte region [fff00000c7065800, fff00000c7065878) [ 29.824305] [ 29.824375] The buggy address belongs to the physical page: [ 29.824613] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107065 [ 29.824743] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.824865] page_type: f5(slab) [ 29.825052] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.825363] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.825492] page dumped because: kasan: bad access detected [ 29.825588] [ 29.825651] Memory state around the buggy address: [ 29.825798] fff00000c7065700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.825924] fff00000c7065780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.826054] >fff00000c7065800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.826238] ^ [ 29.826384] fff00000c7065880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.826708] fff00000c7065900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.826810] ================================================================== [ 29.828093] ================================================================== [ 29.828193] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x270/0x2a0 [ 29.828353] Write of size 1 at addr fff00000c7065878 by task kunit_try_catch/287 [ 29.828502] [ 29.828587] CPU: 0 UID: 0 PID: 287 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 29.828961] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.829050] Hardware name: linux,dummy-virt (DT) [ 29.829142] Call trace: [ 29.829229] show_stack+0x20/0x38 (C) [ 29.829430] dump_stack_lvl+0x8c/0xd0 [ 29.829576] print_report+0x118/0x608 [ 29.829831] kasan_report+0xdc/0x128 [ 29.830192] __asan_report_store1_noabort+0x20/0x30 [ 29.830328] strncpy_from_user+0x270/0x2a0 [ 29.830509] copy_user_test_oob+0x5c0/0xec8 [ 29.830822] kunit_try_run_case+0x170/0x3f0 [ 29.831141] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.831330] kthread+0x328/0x630 [ 29.831633] ret_from_fork+0x10/0x20 [ 29.831735] [ 29.831760] Allocated by task 287: [ 29.831798] kasan_save_stack+0x3c/0x68 [ 29.831879] kasan_save_track+0x20/0x40 [ 29.832028] kasan_save_alloc_info+0x40/0x58 [ 29.832143] __kasan_kmalloc+0xd4/0xd8 [ 29.832373] __kmalloc_noprof+0x198/0x4c8 [ 29.832493] kunit_kmalloc_array+0x34/0x88 [ 29.832589] copy_user_test_oob+0xac/0xec8 [ 29.832696] kunit_try_run_case+0x170/0x3f0 [ 29.832834] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.832969] kthread+0x328/0x630 [ 29.833143] ret_from_fork+0x10/0x20 [ 29.833422] [ 29.833560] The buggy address belongs to the object at fff00000c7065800 [ 29.833560] which belongs to the cache kmalloc-128 of size 128 [ 29.833758] The buggy address is located 0 bytes to the right of [ 29.833758] allocated 120-byte region [fff00000c7065800, fff00000c7065878) [ 29.834214] [ 29.834272] The buggy address belongs to the physical page: [ 29.834348] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107065 [ 29.834501] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.834778] page_type: f5(slab) [ 29.834885] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.835031] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.835212] page dumped because: kasan: bad access detected [ 29.835313] [ 29.835417] Memory state around the buggy address: [ 29.835514] fff00000c7065700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.835634] fff00000c7065780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.835779] >fff00000c7065800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.835877] ^ [ 29.836088] fff00000c7065880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.836230] fff00000c7065900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.836514] ==================================================================
[ 24.407653] ================================================================== [ 24.408129] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x1a5/0x1d0 [ 24.408782] Write of size 1 at addr ffff88810a090278 by task kunit_try_catch/306 [ 24.409379] [ 24.409779] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 24.409945] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.409983] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.410045] Call Trace: [ 24.410097] <TASK> [ 24.410140] dump_stack_lvl+0x73/0xb0 [ 24.410212] print_report+0xd1/0x650 [ 24.410293] ? __virt_addr_valid+0x1db/0x2d0 [ 24.410367] ? strncpy_from_user+0x1a5/0x1d0 [ 24.410448] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.410526] ? strncpy_from_user+0x1a5/0x1d0 [ 24.410625] kasan_report+0x141/0x180 [ 24.410705] ? strncpy_from_user+0x1a5/0x1d0 [ 24.410794] __asan_report_store1_noabort+0x1b/0x30 [ 24.410865] strncpy_from_user+0x1a5/0x1d0 [ 24.410949] copy_user_test_oob+0x760/0x10f0 [ 24.411025] ? __pfx_copy_user_test_oob+0x10/0x10 [ 24.411091] ? finish_task_switch.isra.0+0x153/0x700 [ 24.411166] ? __switch_to+0x5d9/0xf60 [ 24.411273] ? dequeue_task_fair+0x156/0x4e0 [ 24.411360] ? __schedule+0x10cc/0x2b60 [ 24.411438] ? __pfx_read_tsc+0x10/0x10 [ 24.411501] ? ktime_get_ts64+0x86/0x230 [ 24.411558] kunit_try_run_case+0x1a5/0x480 [ 24.411637] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.411697] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.411737] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.411774] ? __kthread_parkme+0x82/0x180 [ 24.411805] ? preempt_count_sub+0x50/0x80 [ 24.411840] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.411876] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.411910] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.411945] kthread+0x337/0x6f0 [ 24.411971] ? trace_preempt_on+0x20/0xc0 [ 24.412006] ? __pfx_kthread+0x10/0x10 [ 24.412032] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.412063] ? calculate_sigpending+0x7b/0xa0 [ 24.412095] ? __pfx_kthread+0x10/0x10 [ 24.412121] ret_from_fork+0x41/0x80 [ 24.412153] ? __pfx_kthread+0x10/0x10 [ 24.412179] ret_from_fork_asm+0x1a/0x30 [ 24.412257] </TASK> [ 24.412277] [ 24.427112] Allocated by task 306: [ 24.427573] kasan_save_stack+0x45/0x70 [ 24.428026] kasan_save_track+0x18/0x40 [ 24.428475] kasan_save_alloc_info+0x3b/0x50 [ 24.428962] __kasan_kmalloc+0xb7/0xc0 [ 24.429438] __kmalloc_noprof+0x1c9/0x500 [ 24.429941] kunit_kmalloc_array+0x25/0x60 [ 24.430426] copy_user_test_oob+0xab/0x10f0 [ 24.430827] kunit_try_run_case+0x1a5/0x480 [ 24.431157] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.431699] kthread+0x337/0x6f0 [ 24.432069] ret_from_fork+0x41/0x80 [ 24.432522] ret_from_fork_asm+0x1a/0x30 [ 24.432955] [ 24.433264] The buggy address belongs to the object at ffff88810a090200 [ 24.433264] which belongs to the cache kmalloc-128 of size 128 [ 24.435575] The buggy address is located 0 bytes to the right of [ 24.435575] allocated 120-byte region [ffff88810a090200, ffff88810a090278) [ 24.436996] [ 24.437262] The buggy address belongs to the physical page: [ 24.437803] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a090 [ 24.438519] flags: 0x200000000000000(node=0|zone=2) [ 24.439044] page_type: f5(slab) [ 24.439481] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.440140] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.440812] page dumped because: kasan: bad access detected [ 24.441295] [ 24.441565] Memory state around the buggy address: [ 24.442044] ffff88810a090100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.442744] ffff88810a090180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.443377] >ffff88810a090200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.444003] ^ [ 24.444667] ffff88810a090280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.445248] ffff88810a090300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.445860] ================================================================== [ 24.365785] ================================================================== [ 24.366257] BUG: KASAN: slab-out-of-bounds in strncpy_from_user+0x2e/0x1d0 [ 24.367077] Write of size 121 at addr ffff88810a090200 by task kunit_try_catch/306 [ 24.368289] [ 24.368547] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 24.368689] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.368729] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.368789] Call Trace: [ 24.368838] <TASK> [ 24.368881] dump_stack_lvl+0x73/0xb0 [ 24.368958] print_report+0xd1/0x650 [ 24.369026] ? __virt_addr_valid+0x1db/0x2d0 [ 24.369064] ? strncpy_from_user+0x2e/0x1d0 [ 24.369100] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.369138] ? strncpy_from_user+0x2e/0x1d0 [ 24.369173] kasan_report+0x141/0x180 [ 24.369216] ? strncpy_from_user+0x2e/0x1d0 [ 24.369283] kasan_check_range+0x10c/0x1c0 [ 24.369318] __kasan_check_write+0x18/0x20 [ 24.369350] strncpy_from_user+0x2e/0x1d0 [ 24.369389] copy_user_test_oob+0x760/0x10f0 [ 24.369421] ? __pfx_copy_user_test_oob+0x10/0x10 [ 24.369451] ? finish_task_switch.isra.0+0x153/0x700 [ 24.369486] ? __switch_to+0x5d9/0xf60 [ 24.369514] ? dequeue_task_fair+0x156/0x4e0 [ 24.369549] ? __schedule+0x10cc/0x2b60 [ 24.369583] ? __pfx_read_tsc+0x10/0x10 [ 24.369671] ? ktime_get_ts64+0x86/0x230 [ 24.369758] kunit_try_run_case+0x1a5/0x480 [ 24.369828] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.369895] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.369966] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.370008] ? __kthread_parkme+0x82/0x180 [ 24.370043] ? preempt_count_sub+0x50/0x80 [ 24.370079] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.370117] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.370152] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.370189] kthread+0x337/0x6f0 [ 24.370224] ? trace_preempt_on+0x20/0xc0 [ 24.370279] ? __pfx_kthread+0x10/0x10 [ 24.370309] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.370344] ? calculate_sigpending+0x7b/0xa0 [ 24.370376] ? __pfx_kthread+0x10/0x10 [ 24.370404] ret_from_fork+0x41/0x80 [ 24.370438] ? __pfx_kthread+0x10/0x10 [ 24.370465] ret_from_fork_asm+0x1a/0x30 [ 24.370509] </TASK> [ 24.370525] [ 24.388263] Allocated by task 306: [ 24.388636] kasan_save_stack+0x45/0x70 [ 24.388967] kasan_save_track+0x18/0x40 [ 24.389535] kasan_save_alloc_info+0x3b/0x50 [ 24.390070] __kasan_kmalloc+0xb7/0xc0 [ 24.390778] __kmalloc_noprof+0x1c9/0x500 [ 24.391247] kunit_kmalloc_array+0x25/0x60 [ 24.391582] copy_user_test_oob+0xab/0x10f0 [ 24.392026] kunit_try_run_case+0x1a5/0x480 [ 24.392857] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.393415] kthread+0x337/0x6f0 [ 24.393996] ret_from_fork+0x41/0x80 [ 24.394357] ret_from_fork_asm+0x1a/0x30 [ 24.394784] [ 24.395016] The buggy address belongs to the object at ffff88810a090200 [ 24.395016] which belongs to the cache kmalloc-128 of size 128 [ 24.396137] The buggy address is located 0 bytes inside of [ 24.396137] allocated 120-byte region [ffff88810a090200, ffff88810a090278) [ 24.397066] [ 24.397314] The buggy address belongs to the physical page: [ 24.397968] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a090 [ 24.398793] flags: 0x200000000000000(node=0|zone=2) [ 24.399342] page_type: f5(slab) [ 24.399780] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.400532] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.401299] page dumped because: kasan: bad access detected [ 24.401744] [ 24.401994] Memory state around the buggy address: [ 24.402574] ffff88810a090100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.403262] ffff88810a090180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.403858] >ffff88810a090200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.404559] ^ [ 24.405236] ffff88810a090280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.405895] ffff88810a090300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.406524] ==================================================================