Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp393495ybk; Fri, 15 May 2020 03:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw9ZoGfgWQM5NybsuhoYSHfVmEuf6yLd9hHHmaPgzBzguvYPPm86JbfncFxYkN9mg+jNVj X-Received: by 2002:a17:906:33c9:: with SMTP id w9mr1988697eja.284.1589538964827; Fri, 15 May 2020 03:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589538964; cv=none; d=google.com; s=arc-20160816; b=uAHrSDPOXXF0ZcJtJIVNvFBJuuoOzBy5/2bu61innlldyHpovJIDnjxbNgNhb7utIY ikqcXOf7C1BqUVbae6hBKmi/0v4oVYRpXXrQK0a2AhysOvOaIz9WId4uyFWjg0vbi5iW Mt2/trHwvm+sOXVK69Y1dqEFdQVc3EvbPM/DsweUh1Q5rxBW3Fq9aAy4jKfnpU7Cs1w0 faxlT5yoptdGQvn+rTL5V04q4+Oq0ZJ0K19tokt1DzszPthjT9DLqS+4bKQ5GyLPgSlo NY2+vrbpVZUzGtB50qRMVq4sk/kwp1dkKTTxorlNuxONPTgPFC/nLXBWE45tiScd7482 O9sw== 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:date:from :dkim-signature; bh=+XVj7Vn4q7UWK0rXA2mfb7XaH4le6Oj5JDX0rkTcjv8=; b=FizS2QF+ysaOGQXxwcwkml2YhEq3dodd0SnQLk9lIg2JqM31VlLNGyq5am5vCjC9Yc OvW+ipFPKPPDkNZYqrVs0JSs19qn3fqyfxz0aWPUjTx7EDCcEvegwuiKPI3ZeaEOxgxT hR3qSR8W3dTGeh8jKeIaSr3rskR9ESW6QT3n5uKbKMpL8KHVu6ZaECXNvF3eN+8ocPGc HRIHVD/DJa7tjtNXPradzLnfrnuTttbVVeB3QPCu9k28XNitoxbEsHbKSmx9Rt1fM74h paUHSTbO0KLKQYMFe+ZZiy1ZDsmfrHokvQCoAfZGm6RoFISCh9wCugAYBkmIc4L+nz5p xv3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QQepBCDY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si193565edm.106.2020.05.15.03.35.41; Fri, 15 May 2020 03:36:04 -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=@gmail.com header.s=20161025 header.b=QQepBCDY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728445AbgEOKdU (ORCPT + 99 others); Fri, 15 May 2020 06:33:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728048AbgEOKdL (ORCPT ); Fri, 15 May 2020 06:33:11 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B397C061A0C for ; Fri, 15 May 2020 03:33:11 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id q9so765732pjm.2 for ; Fri, 15 May 2020 03:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+XVj7Vn4q7UWK0rXA2mfb7XaH4le6Oj5JDX0rkTcjv8=; b=QQepBCDYSozWfCOr/eFEkoIrW01LVBw3ONlO+lac/N4lGJUp/URE0OM0R9XXbLQIJ3 YYf2/4K2rm8OLRPVubTJZFyO50CLzcAWr8nckIRaOLY+1f/vjSs2lR+Y5Y9bYDVQr+pO Fnas1I2V70MShXTLQFzApJ2ybjosMrusIzmosj5ERNkD0FNvl2r7xEpN3u7aiDcdK0tr JLoFrbFbEqVnmjAqh84lWcO60Bmd564ZmkSBEo0e8Y39SfjqK2Z8OgAUv8FeW0UIIq7Y 6HRB59wBCV00RZ4X9L92ig7LTwJGuZxKJZFNvgtQjZp6S88j5dMkuyDY9bSxQbZ/13/F /JTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+XVj7Vn4q7UWK0rXA2mfb7XaH4le6Oj5JDX0rkTcjv8=; b=qpALtZVVHyhnxdR8erxrpZ/GB3XByRrj1qz/TVNuuDPs6wg2fqAHVC7qguqL8GYH0k 2wFUQdOy6fgdktEQMbOqu4LAp4PTxEOfZyOcFAtZrSANESzSzJNm3Y+oZiIj6cujpBtX HwmFWFwi12ZirvsZvgGgMg5dRXq1/ZegbpekdfcASEOLRkbHiW1X++P+1vpGVf5W6rKl nSMPw9Gr+doaZOsLTSKZC3D7rrBqlVKMdM5xhAoVDvIqqiMu191tChz/wLcpLhzpwrsl Qvn57TmuYHda4sRP0fjPIMFrnc+cZjadnB/4n1RCqDWdEIH51uMjEj4AjjAJo/bipWIe Vz9w== X-Gm-Message-State: AOAM5327nl+9CZHLOMlafkP8Ie3/WM4iJ6ioS4JfYaegLx/RRt4INMd/ iaQ+tP77urJ+U5xa0kbJ6/g= X-Received: by 2002:a17:90a:1aa2:: with SMTP id p31mr2625068pjp.233.1589538791105; Fri, 15 May 2020 03:33:11 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id j23sm1316378pjz.13.2020.05.15.03.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 03:33:10 -0700 (PDT) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Fri, 15 May 2020 19:33:08 +0900 To: Petr Mladek Cc: Sumit Garg , Daniel Thompson , Jason Wessel , Douglas Anderson , kgdb-bugreport@lists.sourceforge.net, Linux Kernel Mailing List , Arnd Bergmann , Andrew Morton , Peter Zijlstra , Steven Rostedt , Sergey Senozhatsky , John Ogness Subject: Re: [PATCH] printk/kdb: Redirect printk messages into kdb in any context Message-ID: <20200515103308.GD42471@jagdpanzerIV.localdomain> References: <1589273314-12060-1-git-send-email-sumit.garg@linaro.org> <20200512142533.ta4uejwmq5gchtlx@holly.lan> <20200514084230.GO17734@linux-b0ei> <20200515085021.GS17734@linux-b0ei> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515085021.GS17734@linux-b0ei> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/05/15 10:50), Petr Mladek wrote: > kdb is able to stop kernel even in NMI context where printk() is redirected > to the printk_safe() lockless variant. Move the check and redirect to kdb > even in this case. Can I please have some context what problem does this solve? I can see that vkdb_printf() calls into console drivers: for_each_console(c) { c->write(c, cp, retlen - (cp - kdb_buffer)); touch_nmi_watchdog(); } Is this guaranteed that we never execute this path from NMI? If so, can this please be added to the commit message? A more detailed commit message will help a lot. -ss