Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp4067378rwa; Tue, 23 Aug 2022 15:43:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7FyJvr+g9hiT1c9AiMiGQ145MZu8wByInn3JKb9mgsj1Rb0ct0O4CyZ3L4YHA7go2NaP+S X-Received: by 2002:a17:90b:17c7:b0:1fb:5bbc:91c0 with SMTP id me7-20020a17090b17c700b001fb5bbc91c0mr5350778pjb.224.1661294597699; Tue, 23 Aug 2022 15:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661294597; cv=none; d=google.com; s=arc-20160816; b=Zna8E0sRZ8Spit8QhAvCZT47/Vms4Mx+zrdV6hDNYwfiN6M8Mm8JSDwszLwryfX8Kf b6WL9yK8+eUv7rBgrN7dqBDbxszgUXFJ17t/dGGW+8ztwQMIa/ICeDrqiRc1jJe36iX5 s69+DU6ZFy2/8WNnmhfOyp6FVuJsFQxqJd4xxNFjcwPUtzdOLe1PTDBOB4DEx+1s1gR8 LRhhwvxKZ1qtrDdbRqWB12ci3RLM6O9/YDpCEOJPoSuS9wUSe3XRqjJ7mylOfSjauWQ8 R6DwZxqpvkAxD04GcTGUAq8dHlzsivefohlJcs7q0YckepUjBBPS4BAy3CUW6NilZFRq YRYQ== 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=dLTt74IltZkTYjDD4ETOBhIH6R6z8oMhQpCN2YbZwZU=; b=Qz4cpvrcouIm/FjnYqh5fbw+s9vWxMnvB2JCgZ2trCqOyTkkl3bBTyjjJOO1YhS05h 0jyif4yFmDk2gNm+Ja64J4jqMraMxMmekMBoWpv9U6mi8OmWQ6oQMVAXsHXQhuKtYGTi OO1AdWid8Cob/D5oXMVDifZC2OOBJOIQPFMglM5tutN78aq21O3nPdV+0x7QV4/yhdUI /UjD3CGP+LZ4ePbziDxDLyZT77e3Sz/6q2UkSWUhijRHPPu50z11rw+uF68DJARyEeLg Hz+5zQ+UrjB84okmyN+27IADEBpCerWdLNFGLMv7HI2tqzXUopD7fPO6M7aXb0nUR7OC eWwQ== 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 x27-20020a63171b000000b0041c080db81asi16763655pgl.150.2022.08.23.15.43.05; Tue, 23 Aug 2022 15:43:17 -0700 (PDT) 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 S233051AbiHWWdR (ORCPT + 99 others); Tue, 23 Aug 2022 18:33:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233117AbiHWWdN (ORCPT ); Tue, 23 Aug 2022 18:33:13 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73FE012D33; Tue, 23 Aug 2022 15:33:10 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aec8f.dynamic.kabel-deutschland.de [95.90.236.143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 7B9D961EA192D; Wed, 24 Aug 2022 00:33:08 +0200 (CEST) Message-ID: <33c2a495-13ad-97ac-f2c2-4096cf8f5b58@molgen.mpg.de> Date: Wed, 24 Aug 2022 00:33:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: WARNING: CPU: 1 PID: 83 at arch/x86/kernel/cpu/sgx/main.c:446 ksgxd+0x1b7/0x1d0 Content-Language: en-US To: Dave Hansen , Jarkko Sakkinen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Reinette Chatre Cc: linux-sgx@vger.kernel.org, LKML References: <4253695b-85aa-a2fb-fbf6-718db8b6c20c@molgen.mpg.de> <46e3483b-a5ab-2a05-8a28-f9ea87e881c3@intel.com> <04c9d5fa-5861-bbc3-3e2f-e18a73866645@molgen.mpg.de> <63a60042-4a4a-3bc3-5fa1-4495d80cc06c@molgen.mpg.de> From: Paul Menzel In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Dear Dave, Thank you for your reply. Am 23.08.22 um 18:32 schrieb Dave Hansen: > On 8/23/22 06:48, Paul Menzel wrote: >>>> I'm suspecting either a BIOS problem.  Reinette (cc'd) also thought this >>>> might be a case of the SGX initialization getting a bit too far along >>>> when it should have been disabled. >>>> >>>> We had some bugs where we didn't stop fast enough after spitting out the >>>> "SGX Launch Control is locked..." errors. >> >> Let’s hope it’s something known to you. > > Thanks for the extra debug info. Unfortunately, nothing is really > sticking out as an obvious problem. > > The EREMOVE return codes would be interesting to know, as well as an > idea what the physical addresses are that fail and the _counts_ of how > many pages get sanitized versus fail. Is there a knob to print out this information? Or way to get this information using ftrace? I’d like to avoid rebuilding the Linux kernel. > But, I don't really have a theory about what could be going on yet. Kind regards, Paul