Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp511926rwb; Thu, 1 Dec 2022 05:12:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+MOh5HVOSVqJ0ZdvBOkt5gNQ7YnaDDmRHPdcaniNtz4LmUixmWmGcj12sCPEjeDlLuj1H X-Received: by 2002:a17:907:9856:b0:780:8144:a41f with SMTP id jj22-20020a170907985600b007808144a41fmr57822174ejc.189.1669900325471; Thu, 01 Dec 2022 05:12:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669900325; cv=none; d=google.com; s=arc-20160816; b=uJfgpK/5VT5U0+BTnCYZ/YZPvEc/ltFJu/rUG2rdx/ZlQ8PTw51gsBgF9ivaTKNEsU vr+mDR3Nb8po10lkEnJvLYn/p1KjaBs14lFauIA8qExT+WOFQydca8chSXA3aQik91jR u9EZS3+Dfh4c5Dpu5x3ryevl88vzcrLj1bRJtj0fjvBlxkJIU+fDndvSia6BYXWxctC6 aoZVrKWUJCzWUILvv1B1dagmVVvbVckV96VeX9xI62Xe8Xtllenly5NveX2Af3pSXbZh h7P7mb37tAhwWj2kauQZTfA9AzBr1U2SGS9OrYY/+nO42XB1veULqttbRkC1usU41vuV +iBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=SMGGhM1R9D75ktntaTAYSXtf8NIHMBfztJJNuVdfPGE=; b=Fs5wzfC+f/Hnggo1LFnf/jc7ff8Z1hP3MhIsRNeq6/HGpcH3GTF8sXMYLKIxWbJrEr MJaYQ53zny3rxoYND7sKxXCZwZlFFeH5o6O7f1mKKEsn/IOb3fUBXYIFxaEGEg3theul zZJjkgRspsvc9+8zs514iqhXgdC2FVg5W3RtBaJBQu4aJL43lTMV+7N7IFA2CLLB/s5E A0jKQpaxN8/lB3oONkLZ9QunE377A/3X02jfh8sRGhxNd/68a04VxZfaQ3q1ht4g1Ych UDrxdZ8fa3GOELfxlyufSqEsDQTJw+5/c6OPw1haxFdDQMdLp1J68xXjlCRDJTrHC0C9 B0dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf37-20020a1709077f2500b0078db3ae83d0si4035412ejc.3.2022.12.01.05.11.43; Thu, 01 Dec 2022 05:12:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230363AbiLAM70 (ORCPT + 82 others); Thu, 1 Dec 2022 07:59:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230323AbiLAM7P (ORCPT ); Thu, 1 Dec 2022 07:59:15 -0500 Received: from us.icdsoft.com (us.icdsoft.com [192.252.146.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 584E6BB7E5 for ; Thu, 1 Dec 2022 04:59:00 -0800 (PST) Received: (qmail 13748 invoked by uid 1001); 1 Dec 2022 12:58:59 -0000 Received: from unknown (HELO ?94.155.37.249?) (famzah@icdsoft.com@94.155.37.249) by 192.252.159.165 with ESMTPA; 1 Dec 2022 12:58:59 -0000 Message-ID: <212daa8e-8f48-30d9-cfc8-ee5c2025f02c@icdsoft.com> Date: Thu, 1 Dec 2022 14:58:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [tip: x86/fpu] x86/fpu/xstate: Define new functions for clearing fpregs and xstates Content-Language: en-US To: Dave Hansen , Thomas Gleixner , "Yu, Yu-cheng" , Andy Lutomirski , LKML Cc: linux-tip-commits@vger.kernel.org, Fenghua Yu , Borislav Petkov , Dave Hansen , Tony Luck , x86 , "Shankar, Ravi V" References: <20200512145444.15483-6-yu-cheng.yu@intel.com> <158964181793.17951.15480349640697746223.tip-bot2@tip-bot2> <10a553a5-699f-6921-705e-9afa1a8e42de@intel.com> <87y2c28zir.ffs@nanos.tec.linutronix.de> <31b30c00-9de9-2881-53c3-b08804571d6c@intel.com> From: Ivan Zahariev In-Reply-To: <31b30c00-9de9-2881-53c3-b08804571d6c@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 29.11.2022 г. 20:16, Dave Hansen wrote: > On 11/29/22 03:19, Ivan Zahariev wrote: >> Can you please take a look into this bug which syzbot tracked to a >> commit of yours (b860eb8dce5906b14e3a7f3c771e0b3d6ef61b94). Even since >> we switched from kernel 4.14 to 5.15 we are experiencing often random >> segmentation faults with the following error in "dmesg": > Which kernel are you running, exactly? There is a fix for the commit > that you identified: > >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=484cea4f362e > but it should have been in 5.15. We are running 5.15.75 (LTS) but the problem started when we upgraded from 5.15.31 to 5.15.59 and is present ever since. I erroneously said that it's present into every 5.15. I didn't do my homework well and blamed the commit by Yu-cheng Yu. But this commit never landed into 5.15, nor the fix commit that you referred. There are no functions fpu__clear_all(), copy_init_fpstate_to_fpregs(), copy_user_to_xstate() anywhere in the sources of 5.15.75 or 5.15.31, so the 5.15 kernel is running with a different FPU implementation. Additionally, I tested the reproducer on older 5.15 kernels and on the super-stable 4.14.256. They all emit the same "dmesg" error, so the reproducer is not reliable to detect our problem. I am sorry for wasting your time. > Is there a chance you could test current mainline and see if the issue > is still there? That's our only option, it seems. Thank you. Best regards. --Ivan