Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1923imm; Thu, 21 Jun 2018 12:49:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIH28y8jEyDA4q+3JII3loVvCuqrxg9pW0uyAITY2x7aSwlFuoTx8vqOCn+i+4uzIKdug81 X-Received: by 2002:a17:902:3124:: with SMTP id w33-v6mr29777488plb.235.1529610588342; Thu, 21 Jun 2018 12:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529610588; cv=none; d=google.com; s=arc-20160816; b=keIX/viV4MMFrnZ/QP6LOedaTTow+mG+Allv2WlnY0U1JKSlA4HqQvGbPzvW5UDcif K9gHCF4rFezhpT4DJR0JsZJE6QhfnbVJsezMD2W1CwkKdasWTT42la1sCwiaSUhDQCjO 3TS19tcVjQf36JI607JOmMWpEEciWFhHkcf3xmyu1pUTQP58yBeL1w/aBZ+15WLv95Zf u1ABhDj4gaRzQD38RvDtz1IJdhfqsvjXRPRWMI8QPuUUIbKVd48qRCVYH4IMzZiQ6wAR MwqZGawj/6przEnzRFvw/6Ud7+mDjl79Oh+qwkghDMy8cyLXH4UZX5Zv/I0MdE0qpjBC bmrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=dKdoQVcn+6m/IbgEsL3ircDvr5obJhV5m/yv5lJzpKE=; b=w/cg+dr1AO7Wn3WqEMzhTinoKJHoyOxG67ERIjiSuZlv0Xj/rxYLF3FacuTv4HnJ29 aPnUckLrmY4/YPimnFEYtk71ae0qjA/NyOK/siQ6+AGH+A3e6T4AUiXYIUpDliItcBXa r/72DvkSBvPfhhVxG/xprXcruLEToPV9vzY2AlmOQB+8Wr5JGLvay+EPnfb2Hblt7wZC f9yxVbLl3PhY7fm8X9FLRGyY0XcOQAhjmu+mgf/btsedEVcBSeU5BNBBMzd/iBnztNj1 HYC+6MnI3HfBttPqF4va0L9r+iLljEqsA5I3Kz384DW7p0RyNjBg5h7ruCVW+yMX4gMy ko+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=qjuTpZns; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10-v6si5545705pll.158.2018.06.21.12.49.27; Thu, 21 Jun 2018 12:49:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=qjuTpZns; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933229AbeFUTrJ (ORCPT + 99 others); Thu, 21 Jun 2018 15:47:09 -0400 Received: from merlin.infradead.org ([205.233.59.134]:33196 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932938AbeFUTrI (ORCPT ); Thu, 21 Jun 2018 15:47:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dKdoQVcn+6m/IbgEsL3ircDvr5obJhV5m/yv5lJzpKE=; b=qjuTpZnsEPMnynJGGerZA6BVu U3yFJRHig4RI7hc29BzY9Xat7y48FGC5sXFKpFM2MIUjnn0w/naY6n9E0oHu0EbsNPN0UGg1JY2V+ cZDr7O8shNRk38GLzIGT2MqTRg49D0P649BuKJ46HEiBhw7DKH5pDmzX6RpcmKgmjaD8NfCwFhYoI OnyD0Rsm6Qtxq9jO4LU3MRXckDe1mOGilo7rvbFSOYDu2jfsFeCpOZigGeW8ekbcqsfuznzS+ikVv VDxQ13yk/TbaB+6GSTs8eQgbHC2kUfcrey1joTCS5tS5HdLq6jccZvzpvukkRPI4glKLXZdNZ8Win R2LSOGPlQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW5Xn-0001FK-Ej; Thu, 21 Jun 2018 19:46:59 +0000 Received: by worktop (Postfix, from userid 1000) id 5E1D06E093E; Thu, 21 Jun 2018 21:46:56 +0200 (CEST) Date: Thu, 21 Jun 2018 21:46:56 +0200 From: Peter Zijlstra To: Fenghua Yu Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Ashok Raj , Dave Hansen , Rafael Wysocki , Tony Luck , Alan Cox , Ravi V Shankar , Arjan van de Ven , linux-kernel , x86 Subject: Re: [RFC PATCH 02/16] x86/split_lock: Handle #AC exception for split lock in kernel mode Message-ID: <20180621194656.GB13636@worktop.programming.kicks-ass.net> References: <1527435965-202085-1-git-send-email-fenghua.yu@intel.com> <1527435965-202085-3-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527435965-202085-3-git-send-email-fenghua.yu@intel.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 27, 2018 at 08:45:51AM -0700, Fenghua Yu wrote: > When #AC exception for split lock is triggered from a kernel instruction, > by default we don't want the exception to panic the whole system. Instead, > the exception handler should log the fault information for debug and > continue the instruction execution. This should not happen today, did you find any unaligned LOCK insns? This is a lot of code to 'handle' something that really should not ever happen. Maybe just WARN and clear the MSR bit, nothing complicated. Also, fix your "disgusting drug-induced crap" comments.