Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1832469ybn; Thu, 26 Sep 2019 02:56:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbg4JiEUg1F3Glfjzy1ATnUuw/w8L81STKVfZOPrfK6XxmTmu+EhOFpXlPE0PGv3EwQcwG X-Received: by 2002:a50:934c:: with SMTP id n12mr2619839eda.12.1569491770790; Thu, 26 Sep 2019 02:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569491770; cv=none; d=google.com; s=arc-20160816; b=KFp9OnLTM1tCxF6nbbuq2ubrB+E7X/mIa5iG7c2MBgmSeWojMNWQMQ5yuru9y8SDqu LYf5hA8H0gsWIVZfimmxH0It3MW4sbZC+6NpwSDQuDzSSNRU8he5lnwv7lLRDccWR+XE wi0dFGHHwrVSpDGFCTizeWH5WN76Ls1J/QfnFme4cdhN/+nNm8EirsRRsLtLPA9HwCw8 7j+aBo5gz2DYdHPTmRd0de00WykOlBpB1FAaw5ELiIpfzP6RyIdRe+N1dPt0MGw6BkuE D41vgi9yxcwagr/AUiOpqtAdHLToZuVHvIKf3z9HI/qKNw/9OLVbWscfN6Hd5h2Rbd4e coXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xNhpGEC3xKEUzgeifEP+x7IybNdlV9Dtf/y1slQituc=; b=VkqVRQZ030IYrSL1mDXRLKawdJ1T+UUurQQ/wlBDVOIt4blr240ESyQzTo5n21/U6F N5F4CwDexK9Knd/rj33skQZpchlx/zXI+F8gUCRQElyJV80BX9slHjp8ehDXi6qQvbxH R8+wAfvrb1cQy1Fb7XLlpq39KbMWWIz+8cF0v1qCZh6hQHWL1eyO/6LjNcCcTK4oOk2G O1qCphA6e7tmWDWzY0uWfE4eiIElN2XjT43rAtrp0rVut6xh9TVhOvJCxzLMIonbMJ1f daIHzcGAr+IB8TfOShEA/incOePTcljQvU6Hin4uMxSjVYA6DMJscz4k3SzgR0trIZfR or9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CQMQfbbh; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e23si704815ejt.379.2019.09.26.02.55.47; Thu, 26 Sep 2019 02:56:10 -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=@chromium.org header.s=google header.b=CQMQfbbh; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392620AbfIYUCu (ORCPT + 99 others); Wed, 25 Sep 2019 16:02:50 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36430 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387787AbfIYUCt (ORCPT ); Wed, 25 Sep 2019 16:02:49 -0400 Received: by mail-pg1-f196.google.com with SMTP id t14so560237pgs.3 for ; Wed, 25 Sep 2019 13:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xNhpGEC3xKEUzgeifEP+x7IybNdlV9Dtf/y1slQituc=; b=CQMQfbbhrVok3TQFG72mIe+jYOOE+rU3M4M2qRpg13+nMIm+qvgQKOuHfWtwoVlepb EIFUic7kp41e7CV0luGlbcFCcB4shxf6JyN4eHqo+bMywTwPOioxbIctP3uvZRp7ddKl aLHQnVcccOR30bs3QOuDXSDlaUJEJbT2NOVX8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xNhpGEC3xKEUzgeifEP+x7IybNdlV9Dtf/y1slQituc=; b=riQuVLo/mtZUBfAbkuL5RDYSMD1gWrKYjpnJyX4hwPb5CfyACDbzLa/2ZAOqUnuG0V KpqtzR5ulpTk6lPzvEbC0QJmeXIQZIJ/LAh7yFILjg3lWCHFzOhGDjtd4EEZRcanSFcE 2h2sanvJpptuqTK7BDs5cG0l/icXe2sIULLRsO+Vk1tmzW/ZOagrkUy5QBo0EJ7GMxuy Q+rTtH3vpnYfTchGGHxNSESIS2/tbQAFP+Ju2TMaisUHU1gB4MwRZEkKCPYVJxtLM6g2 UJBSInmbxOKRkM2szKcHnMzjneqOMFvFoeOHiLePkxRXqm/SIqs/JxWLUr7Ub3Cu5Vwj I2RA== X-Gm-Message-State: APjAAAWoEn6VmsyQNyQ8Tvi960PiMHtG4eQBjMhZWhu5hUuQ8vGpGoFN JWpPBTWxtGFXBqRM5cVNKju+Tw== X-Received: by 2002:a17:90a:2744:: with SMTP id o62mr8222552pje.139.1569441768922; Wed, 25 Sep 2019 13:02:48 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id d76sm458113pga.80.2019.09.25.13.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 13:02:48 -0700 (PDT) From: Douglas Anderson To: Catalin Marinas , Will Deacon , Jason Wessel , Daniel Thompson Cc: kgdb-bugreport@lists.sourceforge.net, Douglas Anderson , Christophe Leroy , linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] kdb: Fixes for btc Date: Wed, 25 Sep 2019 13:02:16 -0700 Message-Id: <20190925200220.157670-1-dianders@chromium.org> X-Mailer: git-send-email 2.23.0.351.gc4317032e6-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series has a few kdb fixes for back tracing on CPUs. The previous version[1] had only one patch, but while making v3 I found a few cleanups that made sense to break into other pieces. As with all things kdb / kgdb, this patch set tries to inch us towards a better state of the world but doesn't attempt to solve all known problems. Please enjoy. [1] https://lore.kernel.org/r/20190731183732.178134-1-dianders@chromium.org Changes in v3: - Patch ("Remove unused DCPU_SSTEP definition") new for v3. - Patch ("kdb: Remove unused "argcount" param from...") new for v3. - Patch ("kdb: Fix "btc " crash if the CPU...") new for v3. - Use exception state instead of new dbg_slave_dumpstack_cpu var. - Move horror to debug core, cleaning up control flow. - Avoid need for timeout by only waiting for CPUs marked as slaves. Changes in v2: - Totally new approach; now arch agnostic. Douglas Anderson (4): kgdb: Remove unused DCPU_SSTEP definition kdb: Remove unused "argcount" param from kdb_bt1(); make btaprompt bool kdb: Fix "btc " crash if the CPU didn't round up kdb: Fix stack crawling on 'running' CPUs that aren't the master kernel/debug/debug_core.c | 34 ++++++++++++++ kernel/debug/debug_core.h | 3 +- kernel/debug/kdb/kdb_bt.c | 94 +++++++++++++++++++-------------------- 3 files changed, 83 insertions(+), 48 deletions(-) -- 2.23.0.351.gc4317032e6-goog