Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp891164ybs; Mon, 25 May 2020 01:39:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQClSeGGfUd9Eu73HT1PLAuaoR39BVg7/AAiiq2ii1rYoaVf+1mVIztkV6i3FhpFGa9lKx X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr18794037ejb.204.1590395990233; Mon, 25 May 2020 01:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590395990; cv=none; d=google.com; s=arc-20160816; b=jBec3OVdUpJiuRzyBOfr3LQBQXVbX2WgVi0KyiLL9fUgutNGADgGlbxaWC25kbWBFD W/FO2Tsy2RSBoylfn/KhXKLkLrXUOh/upV0gozYiyPsgSZAJqQKXtW2e9mi+Da+fS9Pj g5AfIbjtPZSj5XCrxLhgvKbzQ1fEZalrKmjGbdSRcVJQdTCLgWHUgrit4RRqG8B0NZ1g cU/ZJhYspY1yb+vSxciitwJBFh9ROIucgnsFmuo4N2XHhusf/aJuRRpQpur018HqCfFt xvbFc+hiAxsDmFsjCrnjZjSqXTpAefqIEt6F6bH0ZlneSaDJiGbPe9wXLUyxIqQi5EkB zH8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=RTpKspGxVJJJi40+OUi0+PfMkju25wl6tiprFTvOugk=; b=BkplfSp34rBIRKyZeYsOqn+qTFOYC8AkYurAh/j2MxTKPx9IWnY3X+OthCMwze+CLt OSz0yZ6oRiJM1RULSL/A/uFzmMq2Pu05Iw3gLk3+VZtFMXTanvUeqWk5wbHCFwGQG7FS 5ybVQAGatZY13B0/LskYdDDwtYMe2/tmbk0U3TlltkY/qZwj2L2V5QuxKfxH9VyWSuX7 UYwTzSuW6cfU9OqiZ2HQepcbmc00y1FU6xpxK1sVfGEatL8L+vCJvJ1osWuj9bOBElD8 gaAsrxRoFsTcI/8xmPKKh4dRLbyZOZCULkq693RZLh57PLIyM32wtfS73XkhLYTQl908 /0Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=VNwvzhjB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si9442437edl.429.2020.05.25.01.39.26; Mon, 25 May 2020 01:39:50 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=VNwvzhjB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731316AbgEYIgo (ORCPT + 99 others); Mon, 25 May 2020 04:36:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbgEYIgn (ORCPT ); Mon, 25 May 2020 04:36:43 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7760DC061A0E for ; Mon, 25 May 2020 01:36:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=RTpKspGxVJJJi40+OUi0+PfMkju25wl6tiprFTvOugk=; b=VNwvzhjBBZXZ2K2tL7OAJ5w6oz ax0hT+LSYqqSAmwOkTkkfqSESGiRuf8XMC9qd7lSg2frS2RrrEW2GiSLeOCfaiFhpPIfFngr1medj oYaxzNhOJd0KIRhVPNdWKBSBdiInxW/QbkEsSwgmDIO3ahbfcUuVj/YbxwhBFzFGv7L8TkgOLbFgK inS01PxZV0sIzL5o1bdLN8zWkVBChNR+XRwkDI1Mra6jHEKGiSuzgxjY4EXaEhWTT/HvEalOCKfq0 UeliyZYl2fMcLHPoMt1bZvilzCGaYzcoXg7t+/9s6DhrNvEApFN/gIb4d7ZSi9FY2sjd0RRTHokLL rkeDP5qg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jd8ad-0001w8-Kw; Mon, 25 May 2020 08:36:07 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 277353011E6; Mon, 25 May 2020 10:36:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0D13721462C5D; Mon, 25 May 2020 10:36:05 +0200 (CEST) Date: Mon, 25 May 2020 10:36:05 +0200 From: Peter Zijlstra To: daniel.thompson@linaro.org, x86@kernel.org Cc: sumit.garg@linaro.org, jason.wessel@windriver.com, dianders@chromium.org, kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, pmladek@suse.com, sergey.senozhatsky@gmail.com, will@kernel.org Subject: x86/entry vs kgdb Message-ID: <20200525083605.GB317569@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! Since you seem to care about kgdb, I figured you might want to fix this before I mark it broken on x86 (we've been considering doing that for a while). AFAICT the whole debugreg usage of kgdb-x86_64 is completely hosed; it doesn't respsect the normal exclusion zones as per arch_build_bp_info(). That is, breakpoints must never be in: - in the cpu_entry_area - in .entry.text - in .noinstr.text - in anything else marked NOKPROBE by not respecting these constraints it is trivial to completely and utterly hose the machine. The entry rework that is current underway will explicitly not deal with #DB triggering in any of those places.