Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp228904imm; Tue, 19 Jun 2018 19:57:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIFF0Z9gWgvBusTAn7BphphGgYmfdSf2XGtmXcBRNvbvpggXbA3PhYNJBu2rtPSr5PFoiDV X-Received: by 2002:a62:211a:: with SMTP id h26-v6mr20705123pfh.133.1529463465203; Tue, 19 Jun 2018 19:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529463465; cv=none; d=google.com; s=arc-20160816; b=MTRVBUsvDzKohNOTxrqWPGhTWCV7gUqYC6GmQ6xVrLqN3YzZ8huYbaG5vPRoIwji7n arkpISO301MNOQ9JPcM0ESzxJfNpGUMEsEfIeBAFLmW16ouscMl/e+UqNcENnL97bAyD Ahtgq9eZgC5ndu2e7cA/a5dp5VCbdaUv8rH8bM/fvKcetPp2ROxNHI8RpCdodBJCFsYM Bd5of4oTICDy4qyfde+HzEOwbqxiFOXPEywzcaK6+saHpWLM9wefCSyq1s+KG9IMhk7m mL6M7eoDWndaIGATtuTDlO3f7g/kKz9i5lwtCyQ4AlE2r4/CKu8kemtkaabsidas+vlW FVmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=rQ2At64TYofMmkP/Su7Wc92+J/WmEGPEGYA74k8+A+s=; b=ykMFHgOkHRcUKVvz1gxsYTOIOPfqH1/GpnhPmU3Gs2ppqxTtfN8rhu32xExePK8kEn 4WnrKX54UAzC5lsb0JjyUcSXdFr9OzWY9ieVaXuuYhbuda2yWgGY5YjCnbijyxOg7Gpr nMx0T7/ka7nIviTDa7L3hH52vrLTU+EJsewA9LHeJ+aG0L/KjtfyqRr3rf6AeYavimVC ynYhADAVEfR2wWgA2XEwBNvfk7/JbXXqgC5at2DOv8b9XN1Fvhw2lbrgEB5yhmak49KS 7NPubvecVqnBPcsGMn2smGgj4/muvZEgSC5RbUlITmY3pQRVhWNxG46WYLuJLIJKMYWZ MzgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wku6Xa93; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14-v6si1192801plq.41.2018.06.19.19.57.30; Tue, 19 Jun 2018 19:57:45 -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=@gmail.com header.s=20161025 header.b=Wku6Xa93; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754178AbeFTC4t (ORCPT + 99 others); Tue, 19 Jun 2018 22:56:49 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:42199 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753622AbeFTC4r (ORCPT ); Tue, 19 Jun 2018 22:56:47 -0400 Received: by mail-pf0-f195.google.com with SMTP id w7-v6so824645pfn.9; Tue, 19 Jun 2018 19:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rQ2At64TYofMmkP/Su7Wc92+J/WmEGPEGYA74k8+A+s=; b=Wku6Xa933rHoWIrsknMBf+7JB7Jjy5JWaMbLgv2wpe1zkF63ZhAafUUrjW+xH6BG/H 3NB8nMnK/ls08lR5CD/iGMG9FuhsZUo8IunupEu3XfG13nOjwIrzj41uxtSHK/cfxnx0 OetTSJFee+e6a+Sdq05E7vNGChmuj/tOL3u66pmKrO+JlUySYCHQj+X8YwiKWfYXRVaw itNGz1zw8GIU9jhmEPq37b8CExgHQ6Gs5koFCp9eD2bTdxio+blaxbWG5ozbFrHVsN2L mHpguHOjiwyIhp8l1EbG+bO6io5RB1XudT1u7nDe66Apw82A5XYx3hsWnuiwERVDLpoa C7cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rQ2At64TYofMmkP/Su7Wc92+J/WmEGPEGYA74k8+A+s=; b=s40YhamdJCJR9tXcPZ/i9EffhtK9utxR/4GNI+lMuNyFnnKraaZURBmMXs34BlnFTu XsVRgNB4HqoCdixfmrzj8Y6XqmMhLAz8rGo4F+v9DQ/WFohXbyEoNnxSQcI5uw15p2BM xt/NSYXfCFegFkhIoHcUOyO+pV+J7l5uGg4tNqNknHPRg36czy1OgzszPn24qbsU9nQI qlRSWNSqYvdBSRGtRRc/fvEnynjmX812KMPJDPux0fCQNLHeXk/4tGxUNg1bV9RwSrXl eDUVWkituWeQr4qFHyWlNTn0OvoGrxIoFZFhA9djmYN0KXAlyfFKkhdSnRUbm0oQrhXR bZ7Q== X-Gm-Message-State: APt69E1BZX2yF1wZBgGc0C2fGxPQ9Ac3z7V090bXqtEqqrtiZ56awnB8 ofuNiDJsujDkV+KkMfKSaWA= X-Received: by 2002:a65:6157:: with SMTP id o23-v6mr17347109pgv.310.1529463407021; Tue, 19 Jun 2018 19:56:47 -0700 (PDT) Received: from localhost ([110.70.59.159]) by smtp.gmail.com with ESMTPSA id k80-v6sm1521113pfa.168.2018.06.19.19.56.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 19:56:45 -0700 (PDT) Date: Wed, 20 Jun 2018 11:56:41 +0900 From: Sergey Senozhatsky To: Steven Rostedt Cc: Linus Torvalds , 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 Subject: Re: [RFC][PATCH 0/6] Use printk_safe context for TTY and UART port locks Message-ID: <20180620025641.GF650@jagdpanzerIV> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619223447.4369748b@vmware.local.home> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (06/19/18 22:34), Steven Rostedt wrote: > > > There is no valid reason why an UART driver should do a printk() of > > any sort inside the critical region where the console is locked. > > > > Just remove those printk's, don't add new crazy locking. > > Perhaps we should do an audit of the console drivers and remove all > printk, pr_* , WARN*, BUG* from them. I think I did a terrible job explaining my motivation. Sorry for that! What I tried to address with my patch set was not a direct uart->printk, but mostly all those uart-> tty / core kernel / who knows what else -> printk cases. When are in that special context "called from uart driver" which can backfire on us. -ss