Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp523103pxb; Tue, 15 Feb 2022 20:46:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9jQsdun1Eyl7NxCTzY4RzVFjz0GMl8spowh8wepZGNdhshdXqVYggHezD3xIM5mIcYK9h X-Received: by 2002:aa7:dd1a:0:b0:410:9bb4:cba4 with SMTP id i26-20020aa7dd1a000000b004109bb4cba4mr1077976edv.364.1644986798264; Tue, 15 Feb 2022 20:46:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644986798; cv=none; d=google.com; s=arc-20160816; b=IxZuHYcYO4i6cms+uqHNVjTlarR1YH+k9FZhZPTqjeBRGuRJIO+qYLXd2AWn7/EfkU ILonX3NlUbRDCOgqxK3ieSE5MuyeTDb56nl1isF7Qm+nDP+fNOFzugZ5jHKi9x9tKkzd +hnU88P6/+puYcFrQlXw0zXNH0nlArsiHDvjFiB96iXchiRGiNh6aDEwiOEhogirsjHZ aqWAVKySI4P5mWsy7s9ksoWvn9xQOmkakqO3e8yDXudXPgpP4iot9gZE9IMHWWs5Nzst MGm+tV8SAOrUz1Q9akpNfn6N610kk7GHWQPfQqCl+LzYNfkqBmNp9nEahwZZlnDqRf0q BDzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zktFl6w99uZ6nPXkCOeE+LMXkSgYVha2946A+F3vYf0=; b=GAcuMugD6x8wKxH/4GgTabdxn1skYH/Pl77oRx7D2Io3bRhuSNeiB6FMFTwWfbkphI 4irfJ0vD6/kofsj+cQToPwq3/jIL8vXpicl3qDl2s5sQOX7bLx3EwqIuNThE7QVBKMg6 ytEJVpY4Q9j/W61wtaXdzwO4fDAOdncjHZuEmY0ycrcc8+1ETq4pGGNdFiV7rCw8J6WW I3COqprak/pmnJqlFL5KL7oceckqA/ZfI03NDzi1HX5+GJX6Rk7CDdDQ5m9P7m97YxY/ uTmg79cq1U4ecZZPVcfIM26F8LNLvI9GLyjVuYcHEMTziEHd9X9r+yIGNu8ZPCJ6t7yK jXcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AQoUEG2P; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m24si1652051eje.897.2022.02.15.20.46.15; Tue, 15 Feb 2022 20:46:38 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=AQoUEG2P; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243714AbiBOTgS (ORCPT + 99 others); Tue, 15 Feb 2022 14:36:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243697AbiBOTgO (ORCPT ); Tue, 15 Feb 2022 14:36:14 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2833C24A2; Tue, 15 Feb 2022 11:36:03 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 78E81B818F3; Tue, 15 Feb 2022 19:36:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE494C340EB; Tue, 15 Feb 2022 19:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644953761; bh=mXUYdWjAyAGnzfunbLEvRbzhk1LQeTeub57on144Gog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AQoUEG2PH9XDgvj9VgWfsiL+cXnmIUszgtgnX63DIOexHgyIxzm547vKPwBi55Rrg PlTl+2N2Su3Hhflt3+9AF6yjE0fPI+yWtvhvMsuQxAQdq0VjXg7PF9IDrlTrGcj4fU ss1Bl+2fP8Y0FobCLBxm7cUocwNLkc39f1vA8C9TmP1+LsMwU8aGEMg95cA2R4Rplc SfFCbWyQK7eeSqhYbdqJGdqQ0qW2EbDgfB3/WGJiearA3RcOwaOLM44eHqM17duxDJ PZ8MymJ/Y7F7EZmIZSt/ANDUP9lBpgIE3HPC/cQVNPgmAe3+wvA2u0U4i2Lm7sioQp cc7rhegLmsd4A== Received: by pali.im (Postfix) id D05BCF13; Tue, 15 Feb 2022 20:35:58 +0100 (CET) Date: Tue, 15 Feb 2022 20:35:58 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Armin Wolf Cc: jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/7] hwmon: (dell-smm) Reword and mark parameter "force" as unsafe Message-ID: <20220215193558.rorm3vrwyxa4gkj7@pali> References: <20220215191113.16640-1-W_Armin@gmx.de> <20220215191113.16640-8-W_Armin@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220215191113.16640-8-W_Armin@gmx.de> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tuesday 15 February 2022 20:11:13 Armin Wolf wrote: > When enabling said module parameter, the driver ignores > all feature blacklists on relevant models, which has the > potential for strange side effects. Also there seems to > be a slight chance for unsupported devices to behave > badly when probed for features. > In such cases, the kernel should be tainted to inform > people that these issues might have been caused by > the dell_smm_hwmon driver with "force" enabled. > Also reword the parameter description to remind users > that enabling "force" also enables blacklisted features. > > Tested on a Dell Inspiron 3505. > > Signed-off-by: Armin Wolf Reviewed-by: Pali Rohár > --- > drivers/hwmon/dell-smm-hwmon.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c > index 04a41d59da60..67d63932b48a 100644 > --- a/drivers/hwmon/dell-smm-hwmon.c > +++ b/drivers/hwmon/dell-smm-hwmon.c > @@ -87,8 +87,8 @@ MODULE_LICENSE("GPL"); > MODULE_ALIAS("i8k"); > > static bool force; > -module_param(force, bool, 0); > -MODULE_PARM_DESC(force, "Force loading without checking for supported models"); > +module_param_unsafe(force, bool, 0); > +MODULE_PARM_DESC(force, "Force loading without checking for supported models and features"); > > static bool ignore_dmi; > module_param(ignore_dmi, bool, 0); > -- > 2.30.2 >