Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2234478rdb; Thu, 21 Sep 2023 12:19:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrvuEpYlZFWBRbZK0XWok3rDClDnKmG2qklXQDzBO7CVr988pGzJSurgJqAZoMRYto+Flj X-Received: by 2002:a9d:7ad4:0:b0:6bd:93e:460b with SMTP id m20-20020a9d7ad4000000b006bd093e460bmr6639168otn.19.1695323982619; Thu, 21 Sep 2023 12:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695323982; cv=none; d=google.com; s=arc-20160816; b=yG+OxkHZMet0muxIdO/jqrha0BEg4poGyeycMP2JlL5hdiahK6OqfBlsUKSabREqEX n+Xi9XRpXYQmqh9oh5whdPiT8Si04VFHxGjT2xCrtsOyC2JYSmrTeW2eYuoKRuFASnV8 m379ZjNiFi3SOTzKOlS4Xt714owN5sZRwUTiQlyuKEOfZNX7lfpiSOyT5ECYKiA9S1D2 2xX5QXzVJ37zZ+nYz6ub8sNhp5HZ1+2E93YYvh8ucjWcovOJEkmlZQfvDDGY6i1OcaEi 2/zjSbj59YChq/424XGbzyyr5s+vChNzOwm5iUY60Y55W2r9qhlhSRNyag8xu7lum9MT 3Pag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=2YvLEhWqpp10DHQybiMtOstRD38rvF1Ru/Oh6BvcZMo=; fh=MLvsbwBl8IHLVJhTn/K1l3DAHdvtszq7Dc57yHFOHJE=; b=xfkt2mZwpTzR0cf7igLqYfqk9cvEGfJPrzrnX8UtcfPCs0Acv6XZ6VEATnf3X6SpnL vBIagwn5Ow+9HKjqzYaYz0q5uFQFOFjOPbM9rsULfl0UfFWfSgfJ7TqENpx2dd6keAC5 0ZEQAW5Gr/gIHW3b7qJBFFk5EbjVtoJ6y7s5azOamBjfXTs+DXb4acQZacxIKBV5ZECl 1ungbZ3hsNCtefIO2RB2gMU2fsZc59jUpA+HgxrAhqPidS+w1na/5ACliVoVcJAID6R2 pTV+vvoQWMeOof552QMzfG1RKVY2IIZLegx8biA7eVNfFPg3Fmwzu1sdbxqKl96ArsMn 6c4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y3Bqy2zL; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Q9Dl4IIB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e4-20020a635444000000b00573f7d09445si1961031pgm.330.2023.09.21.12.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 12:19:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y3Bqy2zL; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Q9Dl4IIB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5A1A880AF253; Thu, 21 Sep 2023 12:08:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbjIUTEb (ORCPT + 99 others); Thu, 21 Sep 2023 15:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjIUTEG (ORCPT ); Thu, 21 Sep 2023 15:04:06 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 790405AAA8 for ; Thu, 21 Sep 2023 10:50:11 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1695280434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2YvLEhWqpp10DHQybiMtOstRD38rvF1Ru/Oh6BvcZMo=; b=Y3Bqy2zLhdU6TwfJW0h8nIvZPZeS1ke61eAinG1mPar+gYmpfVOKo71bU7LNyjPVSloj8p zpAfnuswyWFQIN9ytSgNHVXiIQ9LDp5Ln8kfDaEseyzpvkJxDaoR81/gkSGcb3v/wGPrMS RkeZsT/tFOfCgc82Me+sigei5ltY/+MdliGElpRWyPpbgL8F3ao6pxFD6ZdzzC14kDWSF4 RlMYgWByuQTQFUBWnJCySHfG8WopCdJieSoZRRCQNgOk4XRTT/PnMzeRIyil1Xm9DEj0xT yAdVA1vKOBrAIIEP4+YuMIOGpvm0F8ooXss/z6KiEYWmBFC4OufldIjXdsHF9Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1695280434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2YvLEhWqpp10DHQybiMtOstRD38rvF1Ru/Oh6BvcZMo=; b=Q9Dl4IIBPIEbU6p64zQsM7T0ZXaoSGW7kshpj0lcgUEYZKzVSE7OU4CgqHJ9ci4gvPg/RM u1+upMriXhYrOmAQ== To: Sergey Senozhatsky Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH printk v1] printk: fix illegal pbufs access for !CONFIG_PRINTK In-Reply-To: <20230921021859.GA14418@google.com> References: <20230920155238.670439-1-john.ogness@linutronix.de> <20230921021859.GA14418@google.com> Date: Thu, 21 Sep 2023 09:19:44 +0206 Message-ID: <87led0f17b.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=0.9 required=5.0 tests=DATE_IN_PAST_06_12,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INVALID_DATE_TZ_ABSURD,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 21 Sep 2023 12:08:16 -0700 (PDT) On 2023-09-21, Sergey Senozhatsky wrote: > I wonder if anyone really use !PRINTK kernels. Can we get rid > of CONFIG_PRINTK? It is used. It is one of the big annoyances during the last several years of the rework. I get bug reports relatively quickly after breaking !CONFIG_PRINTK. The reports come mostly from the kbuild robots, but also from real people. If someone has limited space/memory requirements and does not care about dmesg, they can save a considerable amount of kernel size and memory by turning all that off. The problem right now is that !CONFIG_PRINTNK is horribly hacked together with dummy implementations and useless real functions that pretend to do stuff. After the rework we can work on splitting out the code based on functionality. If done right, it will be trivial to "implement" !CONFIG_PRINTK in such a way that changes to real code don't explode every time on !CONFIG_PRINTK. John