Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1378507iof; Tue, 7 Jun 2022 04:34:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDoL4SB0F++0+tHFsIbCSkV7TNVJXTJe0RD/rVFpeMIeLfNfV6m4LDQ79njWotoC/T1/p2 X-Received: by 2002:a17:903:40ce:b0:164:248:1464 with SMTP id t14-20020a17090340ce00b0016402481464mr28864707pld.16.1654601666922; Tue, 07 Jun 2022 04:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654601666; cv=none; d=google.com; s=arc-20160816; b=fLUY5chpjW+uAdBQCetyWr3rQOx42otpExKeGcTv3z4NiTajetGCJOcynQkmZU4d1F WVbc8PE8YAgkRZmWPgaK0fdM3xN6vB1DGHFx9vYvra4N82tigOMByIthVMvUrqEtmUKO ORTzXJJaum3QvoRDIj/zuh3ueCD1ueXkk3e0BYr5OKIGyeKK0+dqBwPIz4dbmzn1kvGS urfOTgninSxPGvFXGT4Vv4R0ayQB7JAAg2T4HCxZQv94IgpQ9kz8MlFapbDlqQ9GLVZf xO1skXnneve8x5Wn4QLvZCEcKB4WxriH+02ji2aS7xbGP9tThi0+Qx6XH0+d9VMm/ZYD EVyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:cc:to:subject:message-id :from:content-transfer-encoding:date:dkim-signature:mime-version; bh=R7MJnysJhv2VicTlFbpSnJaDDTP55UbDLG13pjV5TKo=; b=Fm2MqLqD5NLBAa41V8Aj+oziRhgZMIoFwpID3m4ghUdCyzNWK0cNyFgdTp/NJOH9UV FGNh0XjnRvUmkXlYYNABkjzJAKlG1bRtQBEaa0H50N6AmxPBCI53dLMVP4JoLUMh/aDs oc6SwttuAEpwVMwl+GwjdkTQG17rr1QTSe4OkDBGq8fVnM6xHQTNUMJ0Ph9hPjTVQeNV 11U87OlIn4ZRyjZV3ihOS2TeWYJw1Loz/Jm9YybzWG3c1dNNm91HIMKfFKQuSfKQXbxl 5Wvnl/F9G5dYdDX4UMsR6u5JTpG7fIalZVZyDDyl6yYLRvrwuWblWxSgdDHSfD8ZIgi6 77VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pOUun0HA; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id em18-20020a17090b015200b001dcddce9c40si24988515pjb.143.2022.06.07.04.34.12; Tue, 07 Jun 2022 04:34:26 -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=@linux.dev header.s=key1 header.b=pOUun0HA; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232145AbiFGIgC (ORCPT + 99 others); Tue, 7 Jun 2022 04:36:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbiFGIgA (ORCPT ); Tue, 7 Jun 2022 04:36:00 -0400 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2984C6E44 for ; Tue, 7 Jun 2022 01:35:58 -0700 (PDT) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1654590957; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R7MJnysJhv2VicTlFbpSnJaDDTP55UbDLG13pjV5TKo=; b=pOUun0HAJt+xrnztwOzQLzcAN8/1Xyjh073hiDp/G9vamf3ljV26azZCPGtxiFZYYD6ZXe /4bOLNFAcghNbYmS4u2M101aBx5P9Hw0Cm2y0G5gInhuRehAd+We/TKdchNEfqsgE4mYfr 307wqws5QSPixn4BpqIVG3queAENb8I= Date: Tue, 07 Jun 2022 08:35:56 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Yajun Deng" Message-ID: <9150a4ffa0ff94ab4697d615c60ed9b4@linux.dev> Subject: Re: [PATCH] sched/deadline: Use proc_douintvec_minmax() limit minimum value To: "Daniel Bristot de Oliveira" Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, bsegall@google.com, vschneid@redhat.com, rostedt@goodmis.org, mgorman@suse.de, vincent.guittot@linaro.org In-Reply-To: <46b7ca44-a338-e1c1-e005-326e89576211@redhat.com> References: <46b7ca44-a338-e1c1-e005-326e89576211@redhat.com> <20220513024109.648471-1-yajun.deng@linux.dev> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 June 7, 2022 3:55 PM, "Daniel Bristot de Oliveira" w= rote:=0A=0A> Hi Yajun=0A> =0A> On 5/13/22 04:41, Yajun Deng wrote:=0A> = =0A>> proc_dointvec() is not applicable for unsigned integer, use=0A>> pr= oc_douintvec_minmax() limit minimum value.=0A> =0A> I understand your pat= ch, but your log message is somehow incomplete.=0A> =0A> Could you expand= on that, showing the problem using an example, and then how you=0A> see = it fixed?=0A> =0A=0AThis patch isn't a fix. It's just an optimization for= match data and proc_handler in struct ctl_table.=0A=0A> Also, could you = please add the Fixes: tag so this patch can land on stable trees?=0A> =0A= =0AThis statement 'if (period < min || period > max)' in __checkparam_dl(= ) will work fine even if there hasn't this patch.=0ASo this patch may not= need land on stable trees.=0A=0A> -- Daniel