Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp725135imm; Thu, 31 May 2018 08:20:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJLfmBE1+EB79iEm7OPBMZ8x1uwoonNI6pPtVyyBlZFQfaxvj7eiONlojomXI1KR5pUN66j X-Received: by 2002:a17:902:9304:: with SMTP id bc4-v6mr7385303plb.189.1527780030487; Thu, 31 May 2018 08:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527780030; cv=none; d=google.com; s=arc-20160816; b=Drzy2m0FbzHPKGVOtCrurdERUlHl0rHeQlvrd/4KHu7Ey1Mzhsg30DYA9m4ulbskUq XPhH2/pBw0HqT21P8dD3wchB/ASeD5zghly5F3L5IRG+DuO0mud7dKPSTF4v26tMDxEE aLPJ3wE7leu1HevFyyRmF/765UJIwsiBipWBhIZY4xtH05iNvnS+v6UpWo0b/lgm8eyg zJSJT33twrJaew5VhPuLvewPsg3Zxgv9SrrlroxOIssLrjkA6eb9WcJM8Y7V1HdQH/Nj 4jk3SCtWJWp6OL5JY+udizNDvK1HsAAp9sb046QDMTxUqxiQht6Fjlqx0MENIagckNUE WfYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=VNDCVgD03oIjdoeCTimZHXZsUGJFeZmPA856gLU2/Gc=; b=AZ9S2Js0qzu+wPVVlXvwe+Taae7MbVotBKUxQrY7o5PRN7GFTLMDP3G7NFOSwxfYgy oFYchXIwzDEfSG1Utl88+e7/IyqZuX4Mq49oz+Mbt2cZXTmhevYYOpmkO11K9pr2ghs0 9SbLNKGrD68n+qivLMIXZ5BW2uPEmbZ2LgX2Xj11mtc2zAxltsc1/MlK6JHFXVRdXbq+ 9a07xVsdcPBZzwWChbyk0sUXtM1xSBwRp2+pPkyFSFlI2RnJFGXHIXV6DMYbrOTpvszS VZ0mKhbQyzWhar8jCPp6Nizz4oUCLJxVECkgeGcwbjIemRWRlBaK2DJijXn8EkaF2ZU3 QJQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ejqtT43f; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5-v6si5992448pgp.105.2018.05.31.08.20.15; Thu, 31 May 2018 08:20:30 -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=@kernel.org header.s=default header.b=ejqtT43f; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755451AbeEaPTv (ORCPT + 99 others); Thu, 31 May 2018 11:19:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:47900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755134AbeEaPTu (ORCPT ); Thu, 31 May 2018 11:19:50 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2A2F020881; Thu, 31 May 2018 15:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527779990; bh=VNDCVgD03oIjdoeCTimZHXZsUGJFeZmPA856gLU2/Gc=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=ejqtT43fOGzMPNu7j1gIyS1GIo1SMLQ5dDi2PFAsex5KxE2djKWwl5umttHcXiCvW sbsZ+XPJ+wrvKnPyl8EkAQ2Xb4/1NmU0Wvzf7GIhJce7/sfoIAOgMUqM6ukhSjLqR8 SK+fB16cv87sTa2mZHxAEzvphQYds5PiYvT4gLo0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Linus Torvalds , Petr Mladek From: Stephen Boyd In-Reply-To: Cc: baijiaju1990@gmail.com, Bjorn Helgaas , SergeySenozhatsky , Steven Rostedt , Al Viro , Greg Kroah-Hartman , Jonathan Corbet , Linux Kernel Mailing List , Thomas Gleixner , Geert Uytterhoeven , Michael Turquette References: <20180531100457.fncibp5cxdozvbjh@pathway.suse.cz> Message-ID: <152777998940.144038.2717154952249020053@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: Can printk() sleep at runtime? Date: Thu, 31 May 2018 08:19:49 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Linus Torvalds (2018-05-31 07:32:10) > 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. > = Agreed. Removing the format seems to be the best approach. It looks like only Geert has used it in the last few years and it hasn't been used much otherwise.