Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1401581ybg; Thu, 4 Jun 2020 08:47:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww2mEgNOcoiYumVUTbmCFhWe0VPqL5O9s72G16vQR3bWP1IASXSDzwxY3evFAIJmiUVOg6 X-Received: by 2002:a17:907:20db:: with SMTP id qq27mr4376009ejb.232.1591285667927; Thu, 04 Jun 2020 08:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591285667; cv=none; d=google.com; s=arc-20160816; b=axc60pf/bpn5QqWb/ZC5GT+ZNYYpqnS2FvnTNY+Pl0BP2hXAfQhqryypgvJf1y0P6c G6gMjdclllJZJglAeT8opQPHqh6hTz4TA7v2jA7Xjc+WTcfrd83z2i53Wlyje9pbu9UQ kygXthkwVgtZd7TQOFPNt4RmPKEUQE1NQBKibkhAViI+6hRpBEQMo4TxbBYzBA8qQwEZ NurRgfb6cwtyWxZri/zGUZC/IM8yehcbV4KeVpciDsDb5TXzUq86n4LaJkAZCjifPUP+ tCetELyfXkTHzr6EWs2KJk7tXb0tifhFQg/NAAT1ZVaBoYjzOkg8NV1MtpGmFpkmRWa+ JiZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Hia3r0vJvNnRDJ5uZHRvk1CvKWrwujVZuWwGaSpyjJI=; b=Lxxnx34rJG4DEzOoaBjFFeTL/Ck/hD6fcxwMVISn0at3RD4Ki9vQrbk8hkyBTpNBKE yCvBpWeHfElZEL3PLm1t9Gj2CbX2FtB7esUSrnIUeMnqBljoWH7ZQI+8JJLctEGoC/vO 3jw9+wonUnXoBfHbaXYctqamIo0T7Oyn9itvgnmN3R5upkMKHGFMowUXiILBfORKmR7X Ff7+Do7Rv6MUmKgTLatUrT51E1jhNsedKkuEUndD0hVMcafEJ/z9G/9/ZnD/MZqZqKlc aqcTF1+YTieV1F3/pnsn7hXlzSxzqLyOiDIQH5w3R87h0Q6YCFAlP0LR6uq3ycSKokr5 2SwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0pmAV1a3; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si1881372ejk.317.2020.06.04.08.47.23; Thu, 04 Jun 2020 08:47:47 -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=@kernel.org header.s=default header.b=0pmAV1a3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729557AbgFDPnH (ORCPT + 99 others); Thu, 4 Jun 2020 11:43:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:50858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729346AbgFDPnG (ORCPT ); Thu, 4 Jun 2020 11:43:06 -0400 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D6B1220872 for ; Thu, 4 Jun 2020 15:43:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591285386; bh=yskL/aleMP3Ow3dhAonKEO0BcvHaU+qMP5J5uIY8HYw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0pmAV1a3XYk01uztf3ixz1FeJXq5CSvF8n36CiN0h0RrUE56GKFWmYXvlftTdzjLL 4czu9evLjzXHtImt6OE1uXcBGK5kotA1gV6dcOaLsEKaBASwEUUpARl311qU0R/jVl B3+e7ja//gz0gEAkqVO4vo1GCINxY18hszjt5IV8= Received: by mail-wm1-f48.google.com with SMTP id j198so7131538wmj.0 for ; Thu, 04 Jun 2020 08:43:05 -0700 (PDT) X-Gm-Message-State: AOAM531d5CFsjJDU6sJv2fGr2YmIHEe47nf1u8bseg4WkHo5o0fppyXb Iv6yyhhD6AN8HsPLoEP5C5IZtlfy+crv2+p+JgJeVw== X-Received: by 2002:a1c:46c3:: with SMTP id t186mr4423785wma.36.1591285384365; Thu, 04 Jun 2020 08:43:04 -0700 (PDT) MIME-Version: 1.0 References: <20200521200513.656533920@linutronix.de> <5e68aa83-feac-2aa7-10ee-aebebc60c83e@citrix.com> <20200522211706.GZ2483@worktop.programming.kicks-ass.net> <83474edd-195f-f10b-9fe9-8ee168344e29@citrix.com> <20200604132537.GA3976@hirez.programming.kicks-ass.net> <20200604133545.GB3976@hirez.programming.kicks-ass.net> In-Reply-To: <20200604133545.GB3976@hirez.programming.kicks-ass.net> From: Andy Lutomirski Date: Thu, 4 Jun 2020 08:42:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch V9 00/39] x86/entry: Rework leftovers (was part V) To: Peter Zijlstra Cc: Paolo Bonzini , Andrew Cooper , Thomas Gleixner , LKML , Andy Lutomirski , X86 ML , "Paul E. McKenney" , Alexandre Chartre , Frederic Weisbecker , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon , Tom Lendacky , Wei Liu , Michael Kelley , Jason Chen CJ , Zhao Yakui , "H. Peter Anvin" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 4, 2020 at 6:35 AM Peter Zijlstra wrote: > > On Thu, Jun 04, 2020 at 03:29:26PM +0200, Paolo Bonzini wrote: > > On 04/06/20 15:25, Peter Zijlstra wrote: > > > It being enabled through IA32_DEBUGCTL instead of through DR7 means that > > > the current code doesn't disable it and this then means we can have > > > nested #DB again. > > > > /me bangs head on door > > > > > Who sodding throught this was a good idea ?! What happened to #AC that > > > SLD currently uses? > > > > It was per-core and (presumably) considered unfixable? > > Yeah, but I don't see how changing the exception vector helps with that. > #DB is an IST, and it must be, because of that lovely MOV SS thing. #AC > has none of that, _please_ use #AC. x86 is not an architecture. x86 is a gauntlet through which operating system developers must run. I think we can tolerate this particular mess -- can't we just say that a BUS LOCK DEBUG EXCEPTION is fatal if it came from kernel mode? So what if it nests inside #DB -- we can survive an oops from a corrupt context like that.