Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4482766imw; Tue, 19 Jul 2022 07:26:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tNxiVHPKyDac4LBlkrs/k9tU2m42Zui754xiqAYK8Wz2hLdrCjntP8tHFpBgLSqipFS39e X-Received: by 2002:a05:6402:2696:b0:43a:de29:96ca with SMTP id w22-20020a056402269600b0043ade2996camr44958308edd.250.1658240799739; Tue, 19 Jul 2022 07:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658240799; cv=none; d=google.com; s=arc-20160816; b=mwEpjFaKXsLtV7Y05kf7K4yroylYEWM0u7GanCBxh1btxrbRzXQj0IDDbcJgBwmvPw D6YCOvISGrkZl7lhyAdZ+OZUDqqQKbXTy2/1Qbkam52S+1DNFiiXVcJGYWADbJABXm1v INRXrycwb2pee62RcXZg1Mkh49aBhg9C0c0acCoSu00AmjxqIvt1iDQz7Iwq36ZONwUQ R3JL6NdTAk5LA3yGZfq4jKZRuba6jgQB5MX6Nj59ijoAnW+CobfWHi4XAFi6HpHTrQ0d aAvogr8qwGgGdhxLEA7ueMMGFsBUMX1HTIk5wjZixZ5STfqhpNPoB7eWEaLsR1zg4rJr q4rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gDMSEZAHF3OcaIQOo45rhG/KwG5Za+30FTUI4M4qetc=; b=vPJXK73tyWf+eM5UlSdkFqAir4+bnTJ7l8/SKIubjol9iuV3wCMN4B3i9N+XYHNTRm tEIwmSDMLVHbfo0kSW4KD8A+gA4zYEYSk79jiGo/Ai1fQwpoKXI1gDYflq7UZSSJnc/E FHiu2mYhQjHtOAFTMaYB2TzWjm12SmFwvgd4Tdv2IFw9dT3wy5DRFZZMzgxQLX0OzJMM ebxNvsQKtktmS0aSLucPH932h3cYTnYUflZ75EigTn6mfYVMtTBJDhoXpzyvfX5Y6wEL im0/6n9qZ7DTPBk2IYng69B1sKlvIt9J2qVhGfGjs/y9cx+Tik2pbaz69WjKjQXqZbF/ hXTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=O7f3wtjA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs9-20020a1709072d0900b0072f1f41bf94si12366294ejc.244.2022.07.19.07.26.14; Tue, 19 Jul 2022 07:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=O7f3wtjA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235414AbiGSNrQ (ORCPT + 99 others); Tue, 19 Jul 2022 09:47:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237158AbiGSNrB (ORCPT ); Tue, 19 Jul 2022 09:47:01 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7085243E5F for ; Tue, 19 Jul 2022 06:00:58 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id C180235176; Tue, 19 Jul 2022 13:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1658235656; h=from:from:reply-to: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=gDMSEZAHF3OcaIQOo45rhG/KwG5Za+30FTUI4M4qetc=; b=O7f3wtjAq62zIFs3du8GibUs+Jp3LEwHn6l8j7rPaASXzgoosiwNeTs3C80vufjBvNINSE /vADMqBHetBZdsFYXMLY8DZhjSlK343v04fIe45HItc5Kat0kuOJI8kUk2f1wO6Nz5stzX e7TrKgi+CkJwTj3PCVA52HofRWTzSz8= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 69AAB2C141; Tue, 19 Jul 2022 13:00:56 +0000 (UTC) Date: Tue, 19 Jul 2022 15:00:53 +0200 From: Petr Mladek To: Chris Down Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Sergey Senozhatsky , Steven Rostedt , John Ogness , Geert Uytterhoeven , kernel-team@fb.com Subject: Re: design: was: Re: [RFC PATCH v2] printk: console: Allow each console to have its own loglevel Message-ID: References: <20220714154452.GB24338@pathway.suse.cz> <20220715124935.GE2737@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2022-07-19 13:11:25, Chris Down wrote: > Chris Down writes: > > Ok, I will incorporate the EINVAL return for sysctl in a separate patch > > first, and then add the new sysfs one to the existing changes for v3. > > :-) > > Thinking more about this, I will probably not change the existing > kernel.printk semantics to return EINVAL, since it could silently(ish) cause > regressions for existing misconfigured systems on boot. I'll just add the > clamps to the new controls. I guess that you are talking about the obsoleted sysctl 'kernel.printk' that has 4 values. And about syslog behavior. I agree that changing he behavior might be risky. But I think that we should return EINVAL in the newly added interface. IMHO, people should know when the entered value can't be used instead of silently changing it. When talking about the new interface. I would either do not create /proc/sys/kernel/minimum_console_loglevel or I would make it read only. IMHO, this value was supposed to be a built in value and was exported without much thinking. I guess that only few people know what it really does and it is better to hide it. Best Regards, Petr