Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp258883imm; Tue, 19 Jun 2018 20:39:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLNh8fFH6z6N8gl/+ZRQstIFVZlLmm4pG7y9qjIpoXh7GHLl5YvlYoisqpPCM4ZUJ47etN0 X-Received: by 2002:a63:ae43:: with SMTP id e3-v6mr16643712pgp.181.1529465955781; Tue, 19 Jun 2018 20:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529465955; cv=none; d=google.com; s=arc-20160816; b=LJbP5NPstvT3MB/DPPoT8fAr2PH35Ih2nEnoVOUcy7hOQ3+qFTaQr2jdlqO4BiQQDG pIIwM2Yni5CBewRdzuXVQtuGw3TeUbKQiQacID8bHOJHJjOFZQqdhoeLzsniJcAJ80kp OiuvIiU0BNpV9BFI7pgnHGlE9msaQt4Pg4CFcqR3HrAsp1h8r+DrUQiloFE961rqzw9H QUujRZdAs4fGQ5eDOfmNqnUpBWGcQI55eINaNXvEEQDZdI6RM6q6EolRuTDVIXmAtSDd uTJPS0cQgInSo2hu55NGE1AfgLYiC8+626WFRZjMtVj8lZE0KnXJYcraYcOHN2+jZwSp Vc1A== 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=/YjztxKYod3jBGTRxo1te4jqDib2Ua/EZN5M+U4/2X4=; b=rx2Zla9TvdkmDq3E6k6IwzCRqhmxpI50wyP8ZSRaS9p+G0y+yT3q0C6g4w0hrACpaR Tw595s8VKvINXr/7XkNrY/7Y/CMKrktd9qjsuG+/H+FLjNr61NrScNJBQR+GXCGo/xYU IgvvlaKvgZMExAVjYXyVMcGT7CAH3A4GHfSBHvTuItxahGbPO/UvU+pjk80B30NQ7x8W otDuuyAkjf4LUFIXVjBGZMBdMTbgg+FZc3EDKw0b7mp+lmcvQH10vJ0C/83c/aMU7dyT 2MZkkJClmNqkXHkebXvW66ez4jrqY14SkVUlXc4/RwJ1z/M3Nk/bE6rXuJvbsuatgzPo Q5WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fY6iK2ED; 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 s72-v6si1259365pfa.367.2018.06.19.20.39.01; Tue, 19 Jun 2018 20:39:15 -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=fY6iK2ED; 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 S1754291AbeFTDiR (ORCPT + 99 others); Tue, 19 Jun 2018 23:38:17 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:36121 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754072AbeFTDiN (ORCPT ); Tue, 19 Jun 2018 23:38:13 -0400 Received: by mail-it0-f65.google.com with SMTP id j135-v6so3567164itj.1; Tue, 19 Jun 2018 20:38:13 -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=/YjztxKYod3jBGTRxo1te4jqDib2Ua/EZN5M+U4/2X4=; b=fY6iK2EDm3uxs630evI97IyuPRArYZwDEBNduXuu9RhXlwqBo1cyJkaLqUElx9fHLR sZ6xeFo8nRIRqNIogeB1Z3uHwCU0GeGNR0M1/uYWpjNwH7/XrDyQJGX+EzPJH8oDgvee voBYwWsUBAmYd5+cpTFzFZ6W20rnXbAJMVHr8= 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=/YjztxKYod3jBGTRxo1te4jqDib2Ua/EZN5M+U4/2X4=; b=EzGgrcyueaw8FE4UmNcirssnGDsc8AAXDyfDCy6O7TEN5uIu0yukDrJUipP57QSGws E3gJ4g0RTjLEIdTy/XxU3BnRRbrm0KzHVH1jTM4kZkQ1poU6PGwbsXYOWA/KZu1Uoo/w pUeLzJIEH1n6ZwvF2tZ5CJg9mM8v+3KzrdPdkA/uHpCPdKUhvnhufCOY01Q3zt/a0wJM x7NknAD6VaGTAxzaYWXikcWq17+wEZmCjwHzjyoyGHviWDaUCeDwq/TYuncvhLGV+aP8 ELXeJFljDTkeQj19c1qrJWFujE+0r+xldMOt8j8GccaeYyRvhlO314MrtYRAEIP8th4C ZJMg== X-Gm-Message-State: APt69E0nkKvVGGmZHAJXET+o3sQP4Hw86gq/MFUpIqzM1MiqU4AILmGY LPWofsAywmfHwXuywtKPo+6URlGeUzneVk7D6qc= X-Received: by 2002:a02:666a:: with SMTP id l42-v6mr16259059jaf.70.1529465893008; Tue, 19 Jun 2018 20:38:13 -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> <20180620025050.GE650@jagdpanzerIV> In-Reply-To: <20180620025050.GE650@jagdpanzerIV> From: Linus Torvalds Date: Wed, 20 Jun 2018 12:38:01 +0900 Message-ID: Subject: Re: [RFC][PATCH 0/6] Use printk_safe context for TTY and UART port locks To: Sergey Senozhatsky Cc: Petr Mladek , One Thousand Gnomes , Steven Rostedt , 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:50 AM Sergey Senozhatsky wrote: > > It's not UART on its own that immediately calls into printk(), that would > be trivial to fix, it's all those subsystems that serial console driver > can call into. We already have the whole PRINTK_SAFE_CONTEXT_MASK model that only adds it to a secondary buffer if you get recursion. Why isn't that triggering? That's the whole point of it. I absolutely do *not* want to see any crazy changes to tty drivers. No no no. Linus