Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp507464ybh; Sat, 18 Jul 2020 10:45:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxklqKoWF+krV+hcfB0zxK8o/93MK+aQg8lbhB093cqdyHaj5L65iyDKkkHVJOVnpbuCJXX X-Received: by 2002:a05:6402:16c7:: with SMTP id r7mr14761790edx.288.1595094357187; Sat, 18 Jul 2020 10:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595094357; cv=none; d=google.com; s=arc-20160816; b=ugvVdZcBtZbY3IVuwLdPaZSUbiZ4CBQ3KHDn0E8Y3Z6LNuKUGLKdjga3eeNwTgGbnC zlcwg60XJcqymGXJuBZ+wh3iMNW0dLPXjuhB4PsU05XaxxjUgmNbcN5hCWmScFtl6GoW 0ApyrTM9iWTXUU/htDIvFBiNIOH+cj0/4v08gy3EFcWsM3cvo9N8jv+OTguw5bCG95Ws lxSfBg2qrwmz7gIPMNsYjCANGZAAWirakPf5PQ2queDbeWsf+olm6EYZHhVYhFEnOV/W bROwgd4DsYLbTJqyeEjLObPrnNKhcpZtX8XMUmEV1Fm8zx9Jr5sRTN5q8tqOESryo/L3 emEQ== 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; bh=GiY4+QiT/AY/Z/a8K8W0oYps875PzAtQx8Asj6Q1aPg=; b=yUqqLDhm6vw1FGfuee8W9H+twRDY4/o00U+zYTCP51QrlnUjL06wF4bWUM87hly+ZH kDktlQyZivv+LI/oDEnzyUjGjKp3cyEhx2Fh5dr/B8ranZg6VciI4HoolB8hBDYvsJaI QhuvBL6LDpcPMaDVA/2bwCTOd76LHPbGjytIEPiXu1RO6bqVqDUA1lPdAFocKzucgoha VGl6i7ILs4Ncj49RnroDEmhwmswHpKMLGe5/4suajLPn1byJh9zkDHbfTlZQPXadgddl XyZs07x6w8DIZ1zryHsUHMFdv07Pith/vu4Cx3O3pNiDz+VsLRnp+hWD57YqgJmRcsHz v5ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FM+3ch1b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si6970629ejr.748.2020.07.18.10.45.33; Sat, 18 Jul 2020 10:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FM+3ch1b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727925AbgGRRmt (ORCPT + 99 others); Sat, 18 Jul 2020 13:42:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbgGRRmt (ORCPT ); Sat, 18 Jul 2020 13:42:49 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5467C0619D2 for ; Sat, 18 Jul 2020 10:42:48 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id b30so5428772lfj.12 for ; Sat, 18 Jul 2020 10:42:48 -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=GiY4+QiT/AY/Z/a8K8W0oYps875PzAtQx8Asj6Q1aPg=; b=FM+3ch1bDzhsiXNk+T+LOrHD4qkMShboABLic2xzn+DKHMi9Cgt2kWfMijpega0ALy JQOhddwsoTpnDE/eexxgbiNkVKH9MQ+fSTpjlS2vysSTAT+7EO9kqxZg+1gtIEYIjgfu Yt2hjqDc5MP/2HjiXc67Jpa/06la4Hw8kgZiw= 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=GiY4+QiT/AY/Z/a8K8W0oYps875PzAtQx8Asj6Q1aPg=; b=DgsYhZILvLuIQzEMc2yBdi9W+jY2n0m+Sna2lJiQiUdsUg1ZHZszQhL0DmUffNLw/J ThpdyxaC5gQeaV49PEmL6uGxxvmbDgUCUqtq3QaiqfqDAwcurAxwe82X04bgz56p8PoW 6rusyZkLIqiNw3b48HJyEbhOgUIFoTw7+/jblkQv1oJfrjTQhiR0TlZU6p43cw81zjOE WZD9ZBIcGqTwWG0P4+ly6LzVJSg9SNAX1X9hoIs3DkZkCLzyQHJ6usUZtbTzjGO0gtp8 Ywcd/Vsj8PjU44hN9fvmKC1XbjXzXbQvcOaA7F5G+0IZgx6UaTgchSjP6YU9HI44oGxN 8UQA== X-Gm-Message-State: AOAM531n4I8OxVIehXk/1g/nXzrInt3zoX2osjVngucY+YBQW9hyGnhs hzqd8S/AT1MnpwRJ13TkfFTXpUMfCvU= X-Received: by 2002:a19:228a:: with SMTP id i132mr5894610lfi.178.1595094166479; Sat, 18 Jul 2020 10:42:46 -0700 (PDT) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com. [209.85.167.47]) by smtp.gmail.com with ESMTPSA id h26sm2293263ljb.78.2020.07.18.10.42.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Jul 2020 10:42:45 -0700 (PDT) Received: by mail-lf1-f47.google.com with SMTP id o4so7730012lfi.7 for ; Sat, 18 Jul 2020 10:42:44 -0700 (PDT) X-Received: by 2002:ac2:4422:: with SMTP id w2mr6995326lfl.152.1595094164495; Sat, 18 Jul 2020 10:42:44 -0700 (PDT) MIME-Version: 1.0 References: <20200717234818.8622-1-john.ogness@linutronix.de> <87blkcanps.fsf@jogness.linutronix.de> In-Reply-To: <87blkcanps.fsf@jogness.linutronix.de> From: Linus Torvalds Date: Sat, 18 Jul 2020 10:42:28 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Peter Zijlstra , Thomas Gleixner , kexec@lists.infradead.org, Linux Kernel Mailing List 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 Sat, Jul 18, 2020 at 7:43 AM John Ogness wrote: > > I expect this is handled correctly since the reader is not given any > parts until a full line is ready, but I will put more focus on testing > this to make sure. Yeah, the patches looked fine, but I only scanned them, and just wanted to make sure. Over the years, we've gotten printk wrong so many times that I get a bit paranoid. Things can look fine on the screen, but then have odd line breaks in the logs. Or vice versa. Or work fine on some machine, but consistently show some race on another. And some of the more complex features are hardly ever actually used - I'm not sure the optional message context (aka dictionary) is ever actually used. Yes, all the "dev_printk()" helpers fill it in with the device information (create_syslog_header()), and you _can_ use them if you know about them (ie journalctl -b _KERNEL_SUBSYSTEM=pci_bus but I sometimes wonder how many people use all this complexity. And how many people even know about it..) So there are hidden things in there that can easily break *subtly* and then take ages for people to notice, because while some are very obvious indeed ("why is my module list message broken up into a hundred lines?") others might be things people aren't even aware of. Maybe a lot of system tools use those kernel dictionaries. Maybe it would break immediately. I just sometimes wonder... Linus