Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp328431yba; Wed, 3 Apr 2019 09:27:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7ZlDQXGwhnSsok3z53jpYkhGWZ6c+QRwUZiclkkAebwPQ8Q2KUXr9oDDK6MpOU250xOzc X-Received: by 2002:a17:902:1003:: with SMTP id b3mr849584pla.306.1554308841711; Wed, 03 Apr 2019 09:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554308841; cv=none; d=google.com; s=arc-20160816; b=IOoqAa4/QW2/5SrxN6eNyIE/Nh2+0IdRjRI/BTKhtlcf4vizjUULrEmgVQZkCC4gZ1 bBfpvPLXICKQoI555pUmD+QWT5j0d44klrhB8tE23WTMuRElEN9+Jn+vdzpZxMKCdLK5 JODupySek3bwqoO31ol2NNnbiKNZr+SbkwvUuaRzUXFQz0mdtPMFxTntJX5rvCeWQsxY 58NYvWiPrseXzzZ8y5YzRwL7qXntSoRLnUPovQmO9cypseUfUmxlngmg5rMR5BRMcZ1d ydlTu2BV0eYc9B3SP4Qy5uTpPed1+9MewelTpXiUxA0SwNF7VLyQSnIfX5pNfe5y01H+ zURQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=+lw4ziia1SQvWZETFXRQNFk5peCbzkS4JLTmAv2LNfs=; b=fx36U68IYKdqrxyydA5C9OdZnzrGVZTl9PIM39qGhDIwlGgG5BBhD3+ugF2+V5mmeA U1Q8OYEqDV9o5mnM60R/gSIQYjHO99KKXaDgft2yPZiYxA27I9lRnFVqszEbu+CnR/Ni +9M5fRHhjRmObRUD32E9im79LRPZfb/qmTfq7g+Fv/oSIkdOIXsGDg63oiRsah/p/+by y1hzcGp6GMjvXtGdo7pQV7jXnS4jVjZbOlhe21qpBR/MQbXc915ydtZxmq/TifuuvcKH 3bovZ+uif7PeJkSqlQ6bWx2rnMYHQWhrZqExHXCpjgbqOUyMHIWA6Q8WzWiSifx4nXHn z5tQ== ARC-Authentication-Results: i=1; mx.google.com; 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 j25si924687pga.22.2019.04.03.09.27.07; Wed, 03 Apr 2019 09:27:21 -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; 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 S1726833AbfDCQ0K (ORCPT + 99 others); Wed, 3 Apr 2019 12:26:10 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:41591 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfDCQ0K (ORCPT ); Wed, 3 Apr 2019 12:26:10 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hBiiF-0003e0-8U; Wed, 03 Apr 2019 18:26:07 +0200 Date: Wed, 3 Apr 2019 18:26:06 +0200 (CEST) From: Thomas Gleixner To: Andy Lutomirski cc: Josh Poimboeuf , LKML , x86@kernel.org, Andy Lutomirski Subject: Re: [patch 15/14] x86/dumpstack/64: Speedup in_exception_stack() In-Reply-To: <6205D576-694A-4C7D-B1B7-A9FF2E1F9E77@amacapital.net> Message-ID: References: <20190331214020.836098943@linutronix.de> <20190331215136.039902969@linutronix.de> <20190402154329.scp7i7uqevubgwrz@treble> <7789E14E-C623-4DB7-B076-76B931957C9C@amacapital.net> <6205D576-694A-4C7D-B1B7-A9FF2E1F9E77@amacapital.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1646928762-1554308767=:1967" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1646928762-1554308767=:1967 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Tue, 2 Apr 2019, Andy Lutomirski wrote: > > On Apr 2, 2019, at 1:29 PM, Thomas Gleixner wrote: > >>> How about a much better fix: make the DB stack be the same size as all > >>> the others and just have 4 of them (DB0, DB1, DB2, and DB3. After all, > >>> overflowing from one debug stack into another is just as much of a bug as > >>> overflowing into a different IST stack. > >> > >> That makes sense. > > > > Except that we just have two not four. > > > > It needs some tweaking of the ist_shift stuff in entry_64.S but that's not > > rocket science. Famous last words.... > > > > The ist_shift mess should probably be in C, but that’s a big can of > worms. That being said, why do we have it at all? Once upon a time, we’d > do ICEBP from user mode (or a legit breakpoint), then send a signal and > hit a data breakpoint, and we’d recurse. But we don’t run user debug > handlers on the IST stack at all anymore. > > Maybe we can convince ourselves it’s safe? Maybe. Need to think about it for a while. Thanks, tglx --8323329-1646928762-1554308767=:1967--