Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp255500pxa; Fri, 21 Aug 2020 06:33:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB1qk68aaCirq1LCLm411uh0BNzk9R4Cg3jLAk6XDBBnr42NCLEoLPnnpLk1QMWoA+6REE X-Received: by 2002:a17:906:b6c3:: with SMTP id ec3mr2865163ejb.101.1598016837214; Fri, 21 Aug 2020 06:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598016837; cv=none; d=google.com; s=arc-20160816; b=vp+M88YRn6uiIMN2MYwTimb0nM966RYdg8cTPvQne4WLCJYLtrYwII/UpqLQecTdTR Lq1gNmj0zLCpC8QpFjj9kVeWzPiOjupN7OXXxa/DmC1R3oErj+7OM8ah5PN4LJzfgvzg bp7pkJZ24kC+RvooSqa8bZGwcAVxGfmloxIrI6ldBm6hwNk3CT+OnGFuG6S54ugNHcWu 91J2QnhvyC1YCfVvJ1BgV855iRSQi/Jcqt7DdrTdxDzn6LsdWJdxh/t9vPqsv4FFFbMd 5FItxb6OkkYZRE6Y7TsO4gUvc3sR1nUhF2D4wL0GUpuFtA7ie1cPRfT2e+ZHGFcvkZyl 82pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/vzJF5387NyjF3nOJV/SJFXMwXDsvo3icVibo5VrwR8=; b=SzbRzHMLS6NWyzu/8qvkQO2tdtY18eEhCeLn4I7TpHyNz1uzGQXk4eglai66os6bvv XBpnAFYxe5UAuCBCsWhN2a1f06qIlcY4gwO0QARhpeRn7LYFwImn5rPZvx2mKXDlH2Vu KaoQyi60syLV3JqjzxdNpNQqvP8jUgjMT+PSuZbm1uqLCxgBmAr1+DxuW+2k2gRrtcgn MNWNUjVoQC1Qlrsv4umzaK9nusZHGU5r7Nt/ATCyRTOPSTmOTmWXIyt+mUqRLwRZL9td w/wyDDcDEKrfHNtGMyDk0xKYKUWRK5+h3KhQgIRy3Vmbl4tJvN5OxB0ZI8gWDZ2po/E9 78Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S41w5fwx; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci27si1413966ejc.22.2020.08.21.06.33.33; Fri, 21 Aug 2020 06:33:57 -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=@linaro.org header.s=google header.b=S41w5fwx; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728740AbgHUNcB (ORCPT + 99 others); Fri, 21 Aug 2020 09:32:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728508AbgHUNb4 (ORCPT ); Fri, 21 Aug 2020 09:31:56 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E395C061574 for ; Fri, 21 Aug 2020 06:31:55 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id x5so1881730wmi.2 for ; Fri, 21 Aug 2020 06:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/vzJF5387NyjF3nOJV/SJFXMwXDsvo3icVibo5VrwR8=; b=S41w5fwx7XkF3IGvGRMT/ai/JsOGs+u4u2juAxr8Au3+Sp8ii4yYkar2pJz1GXDo3B cjOKgtodJ5rH9hehhqHEFtjoSQLH7CeFm4WIqzOJxE3xX6Z0TToXlLlUAsW545MuZnnw 01JWtE5ZfhkoNwaoqpsNdfBC0E5795Chxi8LXI8FE/MC8Lu38VZRoPawvSrQfWmLnlMu Vvr8PiM2J2tlNc2e/WCGTrT+IJc7djjGqjr6+QHtFHgT0yK7rD5iInk3srKW1olYK5vQ CRlYoHrQr3Xu40/UWxm8y87/bIOWU3oVv8pH+RABzs7sfK1WN3WiqfVItS3vxVLlPtIU R3Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/vzJF5387NyjF3nOJV/SJFXMwXDsvo3icVibo5VrwR8=; b=n3+o7cgDUNPe0WoGwnvl4DXFW7fZD34gOwVo9uGCbbLd9/Do4OY6fgHzgC7F6HdVcP LOJkFeluqX/xvryXrwWIQrW1YJjM0w6O3YWKDqhWHPj+7Vn9agH/da5Y4C16kehfDc39 KycZDw0eoOZNkvDANJSxvo0+sEziCPz7UP0TF1R79L+pztMnfOy/24m/Wn/8m0WrWnc0 GCoGXBs6WbkzkuvFU6DEqbdAvCOpYMPx5RIT8DdeXX9mFkIXdAFOINzd4qO0PCmVDWzq P72QxXm1TnVmAC5bA6Mm8JfMAIhUw0x5KH23eHKHyT80fZSzYatYpEZEBzXbfMe95yZC arqQ== X-Gm-Message-State: AOAM533e3DYsaZNE7RR1SxJwUuQa8VsbvzxR6WBPqx7Yg9gCHHAq0ktw wPQWq4KF6ek7fbcJpSc8HUGTnQ== X-Received: by 2002:a1c:4e0c:: with SMTP id g12mr3223538wmh.136.1598016712736; Fri, 21 Aug 2020 06:31:52 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id v20sm4737033wrd.6.2020.08.21.06.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 06:31:51 -0700 (PDT) Date: Fri, 21 Aug 2020 14:31:49 +0100 From: Daniel Thompson To: peterz@infradead.org Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Kyle Huey , Alexandre Chartre , Robert O'Callahan , "Paul E. McKenney" , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Andy Lutomirski , Josh Poimboeuf Subject: Re: [RFC][PATCH 4/7] x86/debug: Move historical SYSENTER junk into exc_debug_kernel() Message-ID: <20200821133149.s6pq5wgo5v5iauij@holly.lan> References: <20200820103832.486877479@infradead.org> <20200820104905.294802764@infradead.org> <20200820152828.tvluka3lvmzof5xt@holly.lan> <20200821101903.GK1362448@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200821101903.GK1362448@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 12:19:03PM +0200, peterz@infradead.org wrote: > On Thu, Aug 20, 2020 at 04:28:28PM +0100, Daniel Thompson wrote: > > > Specifically I've entered the kdb in pretty much the simplest way > > possible: a direct call to kgdb_breakpoint() from a task context. I > > generate a backtrace to illustrate this, just to give you a better > > understanding of what might be happening) and then ran the single step. > > > > + make -C .. O=$PWD x86_64_defconfig > > + ../scripts/config --enable RUNTIME_TESTING_MENU > > + ../scripts/config --enable DEBUG_INFO --enable DEBUG_FS --enable KALLSYMS_ALL --enable MAGIC_SYSRQ --enable KGDB --enable KGDB_TESTS --enable KGDB_KDB --enable KDB_KEYBOARD --enable LKDTM > > + ../scripts/config --enable PROVE_LOCKING --enable DEBUG_ATOMIC_SLEEP > > + make olddefconfig > > > That asked me about a kgdb boottime selftest, which I figured was a good > idea, but even without my patches that seems to fail, and fail so that > it doesn't boot :/ If you are running to fork test (the F100 in the default test string of kgdbts=V1F100 kgdbwait) then you will need rodata=off to avoid problems setting or clearing breakpoints (you also need to have at last 100 calls to fork for the test suite to complete; a modern kernel without the excessive forking for hotplug will usually make it well into userspace before racking up this many forks). This will prevent the test suite from hanging the boot although I think you will still see the still see the stacktrace from the hardware watchpoint test (this is unrelated to current patchset). Daniel.