Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp677074imm; Thu, 31 May 2018 07:33:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI+zz23kqICRbsy0IK2KMalhfIJToGm+NZwTECll2Pzw192N6eZicyIMyUFKnmSyr/kZSRL X-Received: by 2002:a62:dc98:: with SMTP id c24-v6mr7056807pfl.183.1527777184145; Thu, 31 May 2018 07:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527777184; cv=none; d=google.com; s=arc-20160816; b=ZW7zqVLWxcWjyoq6RyKCSjifyIgfvYhVRgLZhY8pfYw62nlv1w1r73TCyM68a9uS6S iAK1zQsrODCaCYlqO2LtyNTU/4UOLX1URYqXdbJaXDZWtQId+Oo6aRDPlHc9zQ2aVCSi WIucnybbe+F8K2mrCCA+Y4VdpL+HkE97d/JB98ayi76JduE1sbHG5DRlVq9IaP4TF4Fn Dj8S8RauUVV0lHLbBXjdc8MSTXVYYKcjv7sQye+8Aytqfqw2k5KeRxQ247xQxAbMTpwS oRSetp+m1CVju22A7Ks/Lo05Y7FnFyHb6HNIeWw1x2wjo71QjHhfqPKL2XT0TzaQTSpQ QaDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Y2T7Xj+FW9Kvn4FKI5Q0qW56zOwy4rSH3N2ViwWHboo=; b=n+YIMQuLctdAVzk3btpKGJX9l20cMFecv19J+PF8gR3eNTAC9DpB+J0C2pba3cUcUi ksN/U/MjuOt9HS4BmX5MSWgYGgftTRNVELMDeXgkblr7ftEwt1i5l3XfceCQg6KU5SG/ QarPJKgC5Ffv62OKMebo3TUGsMrBXNA5O2Wr4Sun/TA5ACA79qvpn+v6KOXDShS+pMEm CM8yPFmKtBoI/GKIbmERjeWNhuIKtdEA3xNcq2DZ964kximCsjZF40S99PCxQAfG7X/0 aVHfoBtweGJ4UieqY1R7vHl8kDLBJRNcRm+IyiN4gxnwHLK25kkbaLeVengP9NxQjWou pa+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=d67o7Ckg; 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 k4-v6si36588278pls.407.2018.05.31.07.32.49; Thu, 31 May 2018 07:33:04 -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=@linux-foundation.org header.s=google header.b=d67o7Ckg; 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 S1755406AbeEaOcX (ORCPT + 99 others); Thu, 31 May 2018 10:32:23 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:56081 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755297AbeEaOcW (ORCPT ); Thu, 31 May 2018 10:32:22 -0400 Received: by mail-it0-f41.google.com with SMTP id 144-v6so27836666iti.5 for ; Thu, 31 May 2018 07:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y2T7Xj+FW9Kvn4FKI5Q0qW56zOwy4rSH3N2ViwWHboo=; b=d67o7CkgdL3KSSL7x19XY17Z6m7/0sS6J7bd8XxVEUjp+aV/YsaY0QqoUhjPGUplS4 X05X4yAqdKov5bdrd196OGJXoq/JKLEjyZCALgWwGfYMRTXINs+Ax+sLqnkjIDxwioIE xiSI1D7tj07abRPB2Jm7qoxGEDrd9SsTmsF8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y2T7Xj+FW9Kvn4FKI5Q0qW56zOwy4rSH3N2ViwWHboo=; b=jCtaYCdfyUQt1Ib7Lbx4SZ29LnKEj4f32DCjVz65t1ZN9bPDbgGA2PO3kFuDrMj1jo lF40SawFopb8+R+9j9gUNJ6UUxlZfS75eg6kSIHl2YDF5kESgkgihlUaIftqfP2GylHx JZctQucSyzUvLD8MV9WTe98/mmxVn9/yvnsY/eqi0XLyQXsA1/hafzcXF/X70CFT84SU 1ENawrc7GEnXkf/+LcSbZQslto+X4Ytk9qYNPNL8qcH8gmh9Ksavmjy6XlaUGp35Medl LNLpTMZzNFDxqjRbPVEAyate20NMx2YhYHW+NSu2l9QOagyOBr3DD3QKjPF7RVJc3U+6 ib8g== X-Gm-Message-State: APt69E0MowIqm5e+QgL2X69e2HXv000ODTTMOh8OB2pdIa8bfm5AUtby 3dql2D5JhrNPJXyzzgI4YSeCzMBPnVPbL3oK1j5Nrg== X-Received: by 2002:a24:c408:: with SMTP id v8-v6mr186120itf.100.1527777141831; Thu, 31 May 2018 07:32:21 -0700 (PDT) MIME-Version: 1.0 References: <20180531100457.fncibp5cxdozvbjh@pathway.suse.cz> In-Reply-To: <20180531100457.fncibp5cxdozvbjh@pathway.suse.cz> From: Linus Torvalds Date: Thu, 31 May 2018 09:32:10 -0500 Message-ID: Subject: Re: Can printk() sleep at runtime? To: Petr Mladek Cc: baijiaju1990@gmail.com, Bjorn Helgaas , SergeySenozhatsky , Steven Rostedt , Al Viro , Greg Kroah-Hartman , Jonathan Corbet , Linux Kernel Mailing List , Thomas Gleixner , Geert Uytterhoeven , sboyd@kernel.org, Michael Turquette Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 5:05 AM Petr Mladek wrote: > > Anyway, we need to fix or remove this format. vsprintf-like functions > are called in any context and nobody expect that they might sleep. Ack. I guess the argument is that "%pCr" is rare, and none of *those* users may care, but I do think that doing things wrong as-is. It's too subtle to have to know you're in a particular locking context when you use a particular %p modifier. Linus