Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2389863ybg; Thu, 24 Oct 2019 09:01:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzf1OCcmM2ZI02ICI6Y2thtNa35U0oF1iMDHTo8ADPueKMVHpw/uYQERMuXmS3gmmns9eHV X-Received: by 2002:a50:9254:: with SMTP id j20mr18915852eda.0.1571932892407; Thu, 24 Oct 2019 09:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571932892; cv=none; d=google.com; s=arc-20160816; b=kNexUxs0JWNIPgnI0hYRXSZ6i2G8D85NKkSDT77l8RNwpFPhprqRdHYIiR1SAy/t9/ XDQSxixfr86tmiB8v6NE3z8fBTzQTXpAT7hUuVIeD10oyT/mWlZ8XZNsWaLXiz6P+lcK rvN4jSbdZz3GJZ8LX4HrMpPEuWLdj51sxE9j11BICGQxhJc9409geC22ubJIuK67hdZ8 mndXQy+WC1HOU2j607fGV0zL+MV0Uue1aRJ0wJunrm/ZvP0TgFIT72Zn0r3waibMMvES H9N5T81zJ3gY6+PosY0JOkTIa0pCvWpCiYG5baKlqyow8AzlXsZ/Yavh8mXFahl/7lBj TtbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EBZdX8XYASZ/hcfjUquvBjt91Cclb0VNS3/vMpZYZLM=; b=GquKXlWjM++zQzBhEwqLYU46UKioZK076LL4aum5OBxZ8QH327VUtUDoQOXNn/gokN lQMEN27g9wvbTSrlnQRkFL+WVEc13JBi3ps7rKpsSLWNlrDDOjBRm2XKiZLiB9eQUZvk tu0GOX0sEU/tHJL29WTucCToHYG+yd4EFrJu2fVBjyC5kF/aSRaAFw/Ftrn5Z5bQho1f hW7FDbRBmfJXHqub7sWbB+cYkzYWs5RDLcZVeQCw1mRYorWFUk38thKfMlYf+bWZhELo 39R24DY9tqHmwhH5pjnmRzov7XnruZC6UlHpsUC0rQTv/6zb84OEID+WXHymEPouKI5J ou1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AJnwTDVs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e48si6617910ede.207.2019.10.24.09.01.05; Thu, 24 Oct 2019 09:01:32 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AJnwTDVs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436681AbfJWWG3 (ORCPT + 99 others); Wed, 23 Oct 2019 18:06:29 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:20105 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2436673AbfJWWG3 (ORCPT ); Wed, 23 Oct 2019 18:06:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571868388; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EBZdX8XYASZ/hcfjUquvBjt91Cclb0VNS3/vMpZYZLM=; b=AJnwTDVsXqnhtGyUbS1aTs1R5KMeO7VGybkdc7tmurlhFBd9M6/c7GYiZ8S0u2pQH4Xup4 CIGDZjHjL7ri8pwKX8zzGROBIh1dIg7azYirX8Od9YvqvcK7lxDN51PjGqo13QuVbRB2He 7yNknj7VXbN2VbzGf5nNucSA9wEvM3U= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-212-D38nSc7BMIG3e80ECrNc-w-1; Wed, 23 Oct 2019 18:06:24 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 10E8F476; Wed, 23 Oct 2019 22:06:23 +0000 (UTC) Received: from treble (ovpn-121-225.rdu2.redhat.com [10.10.121.225]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C114560C57; Wed, 23 Oct 2019 22:06:20 +0000 (UTC) Date: Wed, 23 Oct 2019 17:06:18 -0500 From: Josh Poimboeuf To: Thomas Gleixner Cc: LKML , x86@kernel.org, Peter Zijlstra , Andy Lutomirski , Will Deacon , Paolo Bonzini , kvm@vger.kernel.org, linux-arch@vger.kernel.org, Mike Rapoport , Miroslav Benes Subject: Re: [patch V2 07/17] x86/entry/64: Remove redundant interrupt disable Message-ID: <20191023220618.qsmog2k5oaagj27v@treble> References: <20191023122705.198339581@linutronix.de> <20191023123118.296135499@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20191023123118.296135499@linutronix.de> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: D38nSc7BMIG3e80ECrNc-w-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 23, 2019 at 02:27:12PM +0200, Thomas Gleixner wrote: > Now that the trap handlers return with interrupts disabled, the > unconditional disabling of interrupts in the low level entry code can be > removed along with the trace calls. >=20 > Add debug checks where appropriate. This seems a little scary. Does anybody other than Andy actually run with CONFIG_DEBUG_ENTRY? What happens if somebody accidentally leaves irqs enabled? How do we know you found all the leaks? --=20 Josh