From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3033C433F5 for ; Wed, 2 Mar 2022 08:24:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240081AbiCBIZD (ORCPT ); Wed, 2 Mar 2022 03:25:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbiCBIZC (ORCPT ); Wed, 2 Mar 2022 03:25:02 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52A1EB54E9 for ; Wed, 2 Mar 2022 00:24:19 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 0E072218A9; Wed, 2 Mar 2022 08:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1646209458; 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=WfoVSlzHAt6uberoJ6cxW7lWdvAvLBhosl6WhCDRJSI=; b=eFBLsZ8tP0BShGiv+pvL4PoqjnjvGTx6AFcI+QeJX7QB1g2lhGtEyoNsVW9NNEJu0HkSSl nlJzi1FenwH98KLf2YgMfxGNwLICgHmdP8jZxmF21caJp9FHZcACKK+0M+xOn1yd3k/yK+ jY68slo7C+yuFMzcehcximIQv8b3xFM= Received: from suse.cz (unknown [10.100.216.66]) (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 D082CA3B81; Wed, 2 Mar 2022 08:24:15 +0000 (UTC) Date: Wed, 2 Mar 2022 09:24:12 +0100 From: Petr Mladek To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Igor Zhbanov , Borislav Petkov , Andrew Morton , Sergey Senozhatsky , Steven Rostedt , John Ogness Subject: Re: [PATCH] printk: fix return value of printk.devkmsg __setup handler Message-ID: References: <20220228220556.23484-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220228220556.23484-1-rdunlap@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2022-02-28 14:05:56, Randy Dunlap wrote: > If an invalid option value is used with "printk.devkmsg=", > it is silently ignored. > If a valid option value is used, it is honored but the wrong return > value (0) is used, indicating that the command line option had an > error and was not handled. This string is not added to init's > environment strings due to init/main.c::unknown_bootoption() > checking for a '.' in the boot option string and then considering > that string to be an "Unused module parameter". > > Print a warning message if a bad option string is used. > Always return 1 from the __setup handler to indicate that the command > line option has been handled. > > Fixes: 750afe7babd1 ("printk: add kernel parameter to control writes to /dev/kmsg") > Signed-off-by: Randy Dunlap > Reported-by: Igor Zhbanov > Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru > Cc: Borislav Petkov > Cc: Andrew Morton > Cc: Petr Mladek > Cc: Sergey Senozhatsky > Cc: Steven Rostedt > Cc: John Ogness The patch has been committed into printk/linux.git, branch for-5.18. Best Regards, Petr