Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4704740pxj; Tue, 25 May 2021 14:27:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+gugd43n1qycxgyDQkGoUkuqIJtMZTFeqYsR8/mmz/lQfPDyeapFyjmIHsNMEUNsAvasF X-Received: by 2002:a92:d987:: with SMTP id r7mr4461407iln.85.1621978054106; Tue, 25 May 2021 14:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621978054; cv=none; d=google.com; s=arc-20160816; b=IEpL8JuLdV8LufcIZKdxkfnk/vt6MaUTCF7iZN+AAH8xqgi14XUO7kQX53slHIyzn7 tKK7YDtd05JMggvgvF2CPR0ebI4wxK41DvgVnOYlxp8stzfBIS/uKB7h7SojQD8ZK/mi 2g2gcLn0SGSy3XEbvIrLywNrNXCb2Gk5e+YkFlnfQsos1zdxDh95YyMkYNONBNeR7VGR ReC85IB8bZ4D5Y5HzgXJPwK9rhyoy67Hhy9i9PXvlTxw123qBPogJBVdERl1f+37Q1+B QEvpdHD8OdReDWx5LR3g9Mz0TXMFdfHxZBLlMVLDm3Amlwmf1uGG5cYqlW4l3fsSxor5 ZVaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=wKSV89E/6EiSVlVjhoAd4jt3GiLGZVtIU+F/LgVrtdw=; b=cSj4HhYkMLAtcS6E4foaeh+qa4yjhqSCX7gsMTevsahgwf5Yzpkc3CYuf1hhATMxKp 7RBQsiZX5nKC2g0rHUNMiB0Yux70FhZnY0ZiB3QFOcV4qr6MPXQjFZ04yIKmdGvokrls IRpQNK8n2yNMdFXck7vFC5fJvL6W3/Cfurw0ytTICRibYWe15Y/wERlO02j6CyVD/pmj FUsfVgj0cQuNzRKZLfbx1VXcj+qbtavqaN3PozbxKa9orsw9cC4k5I6p1OAqBuyxJOew Nbtgb5japScacb2oDzzrSHW4brqP3Hyzd0v/iW43cM0A6ArcsMCM6rXIetux7nWzWgGn T71g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vVkGgQH9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v17si19341676jan.123.2021.05.25.14.27.21; Tue, 25 May 2021 14:27:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vVkGgQH9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234287AbhEYSBs (ORCPT + 99 others); Tue, 25 May 2021 14:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234235AbhEYSBo (ORCPT ); Tue, 25 May 2021 14:01:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB4CAC061574; Tue, 25 May 2021 11:00:14 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1621965612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wKSV89E/6EiSVlVjhoAd4jt3GiLGZVtIU+F/LgVrtdw=; b=vVkGgQH93Lgt5QEtsQIHjDUQ1vPUsDVdoNFy39FEgMj33Q4sFUBoqe97mj99aNdhtTGkrc 6tH4hij+q/wLno+L4QRxYk4LmY80pEmSpDcQXlnLEvlyB5Om6QJHQOhfEdAehXlvBPgVFi y17B6cX9U/Qf2EmRPwWpy9/zwNMEZHN9kbL9nfoF24+6FQLp1rncyyddO4ZREVoqgtk72Z R6eH+a1mZQ1J/kmvbrMJhiTvDtVLFpDY2BSTkV8pXfcqqh/arcXG6CiZgx2/vw3WyDlpph bXPjiAHk2MzKaNGftDa5CCXUpadsYtbrFeAjhHnB8h5ZOcrNAIj7cREHagmCnA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1621965612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wKSV89E/6EiSVlVjhoAd4jt3GiLGZVtIU+F/LgVrtdw=; b=P1g/A7Xb52/fy6IIW7+cCIlHncl/zsJqew/anHCMWH4DwSzRtdBTwsDY442pE0M161GOeS hVww1RpWfD3W49BQ== To: "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" Subject: Re: [tip: x86/fpu] x86/fpu/xstate: Define new functions for clearing fpregs and xstates In-Reply-To: <10a553a5-699f-6921-705e-9afa1a8e42de@intel.com> References: <20200512145444.15483-6-yu-cheng.yu@intel.com> <158964181793.17951.15480349640697746223.tip-bot2@tip-bot2> <10a553a5-699f-6921-705e-9afa1a8e42de@intel.com> Date: Tue, 25 May 2021 20:00:12 +0200 Message-ID: <87y2c28zir.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 25 2021 at 10:44, Yu-cheng Yu wrote: > On 5/24/2021 9:34 AM, Andy Lutomirski wrote: >> So I'm guessing that syzbot may have misattributed the problem. But >> we definitely need to clean up the XRSTOR #GP handling before CET >> lands. >> > From the crash dump, the system is doing syscall_exit_to_user_mode() > for __x64_sys_futex(). The futex syscall does not seem to modify > xstates, Of course does the futex syscall not modify anything, but the task can schedule out before returning from the syscall so it has to restore the FPU state. > but upon returning to user mode, XRSTORS gets a GP. Can this > be some memory corruption? fpu__clear() is merely helping to clear the > mess and seems to be innocent. What kind of analysis is that? Thanks, tglx