Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp221584imm; Tue, 19 Jun 2018 19:46:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLov1w+F0MIlfHTR4FMBq8IjMGwgHRyD6bnzDxWwDEcUse1TCajURiQiVlPbfUdb91DxaQy X-Received: by 2002:a63:6cc1:: with SMTP id h184-v6mr211455pgc.301.1529462799725; Tue, 19 Jun 2018 19:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529462799; cv=none; d=google.com; s=arc-20160816; b=LXUOfQ/0euhBA7Iz4HVn9ogFy3IzMzhcvkiPKXzFWsv6PcmctF2t77Z+oakarka8dw EfuBBKIosubo7Q0GYJ/B3y0eW+M0YTzIl520h4BjFVm1KjL5M2Ck4qYjoRpogsV87/Qv zl6tPLUieIu3fY5H9kog0hf57TE4EyOgHJgducr+sfR2rk819Tankrbx03SbbtVgBVzr 3D+JzKbFYkGnSWKPSIB8sDhbKZ8I/feJNO2MEEWNLrJRBNR1bG8KGpUuc59CfwD4Kniv UZ0MPUPPy1oOR9iAds9dypQRlciACNG5v08ahEkZtx2dNbgoEcpGtUQGllrt2fUql0DH ndWw== 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=8+FWQz0rXCmedyt4cMbmwK1B3pOX9q3DoFOC9AIwRvs=; b=MHa8PP3bnCLefb5mBmXjWbD8ID0qNhs8m/Ed1ZhenfLY01UNXOAxPJiAMLNnI/Q/vY 81bWVBJ/cLUcHn10qtWdVS+X3KXxk6mggpMys8XL1ARsoxRs4NZvCcgBBsLy5jHHw9jU BALtedZkxv6K+tmOLMHODn/t1nGoh6N0DcgwmF3XJmdj9BUm+MeialosI764KBPrf2AD zE7OIIH0Q90B+EgHH8vX3uTfOYN5ysOIJpIn4OKGsRB9Aj7pZ+bhRJ9Ht0KMLFlvbAEe 0XAoz1Ryrhme7eTipJpvo3zMg0E5mxmqkC6rACpCnltRAdkTOg6ZUhPfeKh6KmJ5/q0n G/AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="aCWf3XQ/"; 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 n20-v6si1195458plp.298.2018.06.19.19.46.25; Tue, 19 Jun 2018 19:46:39 -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="aCWf3XQ/"; 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 S1754055AbeFTCo3 (ORCPT + 99 others); Tue, 19 Jun 2018 22:44:29 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:50434 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752836AbeFTCoZ (ORCPT ); Tue, 19 Jun 2018 22:44:25 -0400 Received: by mail-it0-f68.google.com with SMTP id u4-v6so3397582itg.0; Tue, 19 Jun 2018 19:44:25 -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=8+FWQz0rXCmedyt4cMbmwK1B3pOX9q3DoFOC9AIwRvs=; b=aCWf3XQ/LIPB4cyxk2gFz5OHyhY551XlI+HvzMEHZQheLs5qYDfi96p7slnQbJmwZo r+0obAyATDoXcOUkOpuP315A2xE/8Ny7KPbzEWesrDbm7zQHd1INlxkjfjzTmBKUKtgH 8v3t/lu4aLV1fljE4ovrfs7ROPwcT3ADsbRmk= 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=8+FWQz0rXCmedyt4cMbmwK1B3pOX9q3DoFOC9AIwRvs=; b=ctCk1/2EmSXd+0XGy2o4u21k+Ei6dB60/r7rZzaQzoLGOwJjPLasuw4DaX5mkTXW7v etJGdv1qh0ODJYPk8j2mfZsKz85LjGUqWW575akDScVT+BPvAczA2uvMqZh61P6YbOdW sOjoQgcpz9aB2JqMwEzYJhVxp5HqGiCDIvE/U7xy9MFhEl4zgu3n+NQc+uIiXHp2nfFL oRKvXmSVquk9q6xtK9XLkEDF8cd23/4tjdERDINAbO4wpAOhuNGepBTVUCe4O/D9LAOm 9oauZfv3c28ju3jYXt/uZ/ODS8YW8XSQ4mrNbvF9Tt7ip5Dbuzw+XQIUuiNS+9G0HGKv 75OQ== X-Gm-Message-State: APt69E2RjAvTbRPTdG57EeItAQ1H9QCuLtxc4RLZBgh9QJbVq6qopwuO Uaw17mnSFlDDqwRoQHgpRg5QeoaZa5O7ZbeSCnY= X-Received: by 2002:a24:5b81:: with SMTP id g123-v6mr150010itb.1.1529462664771; Tue, 19 Jun 2018 19:44:24 -0700 (PDT) MIME-Version: 1.0 References: <20180615093919.559-1-sergey.senozhatsky@gmail.com> <20180618143818.50b2f2f9@alans-desktop> <20180619005308.GA405@jagdpanzerIV> <20180619083021.4avsgvcqjrpkat6s@pathway.suse.cz> <20180619223447.4369748b@vmware.local.home> In-Reply-To: <20180619223447.4369748b@vmware.local.home> From: Linus Torvalds Date: Wed, 20 Jun 2018 11:44:13 +0900 Message-ID: Subject: Re: [RFC][PATCH 0/6] Use printk_safe context for TTY and UART port locks To: Steven Rostedt Cc: Petr Mladek , Sergey Senozhatsky , One Thousand Gnomes , Greg Kroah-Hartman , Jiri Slaby , Peter Zijlstra , Andrew Morton , Dmitry Vyukov , Linux Kernel Mailing List , linux-serial , SergeySenozhatsky 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 Wed, Jun 20, 2018 at 11:34 AM Steven Rostedt wrote: > > Perhaps we should do an audit of the console drivers and remove all > printk, pr_* , WARN*, BUG* from them. Only the actual _printing_ parts. Just randomly, look at drivers/tty/vt/vt.c that does a lot of printing, and there's a lot of valid printing. Things like pr_warn("Unable to create device for %s; errno = %ld\n", .. is fine - it's done at console registration time if things go sideways. But there are a few commented-out calls to "printk()" that are obviously bogus, because they are in the printing path. And they damn well should be commented out. The existence of something like that SHOULD ABSOLUTELY NOT be seen as a "hey, let's make up some crazy garbage locking ruls that would allow printing there". Just don't do it. It's that simple. Linus