Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp363205pxb; Wed, 6 Oct 2021 06:39:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyEfcc14EPV+ZLq46G2jU0pg60s6EtTlVArJsG2FMunLEN4z4IlZyhHtbznl55eZgnydZB X-Received: by 2002:adf:aad7:: with SMTP id i23mr27660233wrc.209.1633527553645; Wed, 06 Oct 2021 06:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633527553; cv=none; d=google.com; s=arc-20160816; b=Mpg9KUHSGOoWhW3WxGNbEmvNQsb0bah2bIEA+o7CIYZrgDp5ZKMEatfqjvkGTfwZgD vsdKDlycoUzG9xZPr5ywIpUkOUzd1jMCHPt0SJyJ8zmO9p3Ck5bPGs0SYVR1QjNneNHs n/pfW76xkOa/vNQX1u3u0ZsXg18X6jelhSFKkIwsxdmyylL1bwmPqoXW5ohYFEMQvBRZ jZ8gADP5dIpO3wmTtTfzXJbV9SuxCNJfV51vCG94ShcAtH0VvS88NwpNJO1Av0XPXXiX ALaJSbivl7thwhxUevQa9u9Za6y0vRo1atKHF8yJaXWDQ84MRa5xAFLRPLamerhRHdfm 87Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=azbJy9XarL2vqTlJbOYf3rqnWVLZMYcDF2N2Nz/wT1A=; b=vqImzXWj4zJ1n0hszqb2Egw2xPuoyXuJmGk/6JvPEGkJSM/lziAqoa+DM0WXQU80oC f5QpO91/+EIsknYTJFieFljk/v4df4oJ7niyT1FjmkNdkydEK0QE21EvGamrO1dNPY8v huIJAgflOKO41Y6QAh8W6n9gvy+JUW2BQ2UL0YtMg7e8LXRtx8WEmvudCWR4ze7GUofJ ky3bUTFJeGbDIMWu78FeCcmFYPmIupbi1A/aZrrHN3CCT/9TA1ahetYoyITGKGLoK9Yu M85mDYIeKL/NJ55hHqynSmG+vN1ssk9txCQCULI2RELkSLTJPH8Nm+2kRm/ZJxjaOwPl ZA5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=jvv22IMU; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v17si6061501edc.479.2021.10.06.06.38.50; Wed, 06 Oct 2021 06:39:13 -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=@alien8.de header.s=dkim header.b=jvv22IMU; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231532AbhJFNgt (ORCPT + 99 others); Wed, 6 Oct 2021 09:36:49 -0400 Received: from mail.skyhub.de ([5.9.137.197]:37270 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbhJFNgt (ORCPT ); Wed, 6 Oct 2021 09:36:49 -0400 Received: from zn.tnic (p200300ec2f0d3600bd612f435519a27c.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:3600:bd61:2f43:5519:a27c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 36CBA1EC04BF; Wed, 6 Oct 2021 15:34:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1633527296; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=azbJy9XarL2vqTlJbOYf3rqnWVLZMYcDF2N2Nz/wT1A=; b=jvv22IMUrbuzK7hdlQtUCdvrC4ha3TfGEN64HfVrnA8YSMpyp0uK/XonWPBhURQBOkgU4x vtxsc+cISc6g569ZfdwcjNooPuSIFn3g4QOQ8r+MfnTJrVFv85+7ZY6yTFFkUsaGffIhLI 0TVClnjIyBZYiV28exS4KRny38ciXWY= Date: Wed, 6 Oct 2021 15:34:51 +0200 From: Borislav Petkov To: Ser Olmy Cc: "linux-kernel@vger.kernel.org" , x86-ml Subject: Re: [x86] Kernel v5.14 series panic on Celeron Mendocino CPU Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 06, 2021 at 12:42:47AM +0000, Ser Olmy wrote: > Sure: Thx. > [ 21.670972] fpu->state.fxsave.mxcsr: 0xb7be13b4, mxcsr_feature_mask: 0xffbf > [ 21.754383] WARNING: CPU: 0 PID: 1 at arch/x86/kernel/fpu/signal.c:384 __fpu_restore_sig+0x51f/0x540 As tglx expected. I guess this fixes your issue (replace with previous diff pls): --- diff --git a/arch/x86/kernel/fpu/signal.c b/arch/x86/kernel/fpu/signal.c index 445c57c9c539..684be34d4609 100644 --- a/arch/x86/kernel/fpu/signal.c +++ b/arch/x86/kernel/fpu/signal.c @@ -379,9 +379,8 @@ static int __fpu_restore_sig(void __user *buf, void __user *buf_fx, sizeof(fpu->state.fxsave))) return -EFAULT; - /* Reject invalid MXCSR values. */ - if (fpu->state.fxsave.mxcsr & ~mxcsr_feature_mask) - return -EINVAL; + /* Mask out reserved MXCSR bits. */ + fpu->state.fxsave.mxcsr &= mxcsr_feature_mask; /* Enforce XFEATURE_MASK_FPSSE when XSAVE is enabled */ if (use_xsave()) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette