Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4773769rdb; Tue, 12 Dec 2023 08:59:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFijrzC9Dnm3hzanjFdgEWPFnd2ty13e+AmYXwqAOJBAk8+ZPYnJRxuFbtbbtlty5Ofxsbx X-Received: by 2002:a17:902:da82:b0:1cf:d660:5b09 with SMTP id j2-20020a170902da8200b001cfd6605b09mr8457982plx.0.1702400341768; Tue, 12 Dec 2023 08:59:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702400341; cv=none; d=google.com; s=arc-20160816; b=Ms6c8N304mvBt7Y7qpYetPrw22gRom32ugtJCWqzrQkqA6l+JhlJYqFxMqqUn5VPON XCX5I2BhmIRp2clYSoCbxpkz7uaAxKPD4I08/FQ5KD7ZgHPQPQn9ppESP3wupR6lR8bM 8JnXlgvfLiTGyJgYcZuasVU7pr3QkHcVM9u+GVnRarjJvtFAuXOBUn8E7DtBa4n92ALK NW+pNr7FkZ+EBXvpre0kdv+aSwcJpHZ+6j/LP3mYdtMEaTQpR1Cf4ZE4Q9U6i5p0cGIq yX4V8XBswSXdeSVgDp2/1UcOsECOBAfSMXY2MaAEVQj1G7rm+qF4NY5IDHiJyakFtlTq CHmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jhBalFlX48WTtgwjKZojCIP/0MD0GEfIc7dBnLPHiHA=; fh=UElGjXFvFkO4bKmje7knhlvPEzGKceZ9d4na4rPCJME=; b=jymJcJgNrZ4ImZtgzJz1e4qnY42gk5MBLLjRO3dxEycN+QhWN4958Igg3kSrNcnZhO PAKVjWzEzJmxy5ubZz2eZgedGEFRus37pq3va/X5fwPKh2WSwR+IschL+8wQvgKQ1Q44 KYNn0bcKy+v4P2kXTn5MlvQn9QmSqOj6jDyARfcqQKSVpPhXTHIi195Ez0D8Jh2FulB3 nuGekIHOEjgT4KgKClQDjuVGYdNeyaBlCySfXglPkjuldHoZ/DOeH5V6le3oJvUhQ8wQ iH3u4+bvQL/WAiEK+d0FSEuAgR/k6lIO6+JoSNKpH6zmAGIscUgnHq/04+OGQLIbnjlv VI/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EwkbD5g8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id c17-20020a170902d49100b001d054a8f128si8262827plg.451.2023.12.12.08.59.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 08:59:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EwkbD5g8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 94C8680B01DF; Tue, 12 Dec 2023 08:59:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232730AbjLLQ6s (ORCPT + 99 others); Tue, 12 Dec 2023 11:58:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232222AbjLLQ6l (ORCPT ); Tue, 12 Dec 2023 11:58:41 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D191D0; Tue, 12 Dec 2023 08:58:47 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BCEqSvo009428; Tue, 12 Dec 2023 16:58:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=jhBalFlX48WTtgwjKZojCIP/0MD0GEfIc7dBnLPHiHA=; b=Ew kbD5g83NfWt2d4l4w9Ptra9tXkGqsqAGg2EBj2DirTlYx7nxzZ2SNglEklywrPtf v8PAYWyJkJJ9B0w+VhGWjUwD+lerWQghj1vnk85pdnc9tFWGN1qYF11phDC0OLBM bA7mflr3ryEo8C1UCyRcwARREfWKDEditmL40h1BW5C+ZLvoE425Qw3QC2GmhBpQ 91r3+8Um6qW+7jNIdr3CIdr0JM1AIqtXGZiupwL1uRkKEA5Kqx/+vBJBGVfJMjgR JpaTC/KWIhf84WYAcwnfipAWZqQdayNyR4pqKKBNGKfVcNV0GeScsf5BPMZAS5xE Kt7YH1iZgDkfmi6FnBMA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uxsms0bub-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 16:58:22 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BCGwL9d017898 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 16:58:21 GMT Received: from [10.110.2.246] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 12 Dec 2023 08:58:16 -0800 Message-ID: <93ee22bc-b357-4291-b3d9-07ff2cd6c87b@quicinc.com> Date: Tue, 12 Dec 2023 08:58:16 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 3/3] check-module-params: Introduce check-module-params.sh Content-Language: en-US To: Christoph Hellwig CC: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , "Nicolas Schier" , Jonathan Corbet , , , , , , Greg Kroah-Hartman , "Rob Herring" , Carlos O'Donell , Randy Dunlap , Arnd Bergmann , Bjorn Andersson , Todd Kjos , Matthias Maennich , Giuliano Procida , , , Dodji Seketeli , Trilok Soni , "Satya Durga Srinivasu Prabhala" , Jordan Crouse References: <20231212020259.2451253-1-quic_johmoo@quicinc.com> <20231212020259.2451253-4-quic_johmoo@quicinc.com> From: John Moon In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 5h373aL0YDslVqiXd_u9Y6Cj9sS6r_Pw X-Proofpoint-GUID: 5h373aL0YDslVqiXd_u9Y6Cj9sS6r_Pw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 mlxlogscore=820 mlxscore=0 priorityscore=1501 adultscore=0 bulkscore=0 impostorscore=0 spamscore=0 malwarescore=0 clxscore=1011 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312120131 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 08:59:00 -0800 (PST) On 12/11/2023 11:41 PM, Christoph Hellwig wrote: > On Mon, Dec 11, 2023 at 06:02:59PM -0800, John Moon wrote: >> One part of maintaining backwards compatibility with older >> userspace programs is avoiding changes to module parameters. > > Really? I don't think module parameters are a UAPI in the traditional > sense. Agreed, they're not UAPI in the traditional sense. But, we're trying to establish tooling to help the community stabilize all interfaces that cross the kernel <-> userspace boundary and module params do fall into that bucket. > Now if you break a heavily used one you got to fix it, but > applying strict stability guarantees on module options which are not > availble to normal users or even normal programs doesn't make a whole > lot of sense. > True, but unfortunately we don't have any heuristic to determine if a param is "heavily used". However, in this rev, we added the ability to parse the permissions of a module param, so we could add a filter which does not flag change/removal of params with 0{0,4,6}000 permissions. It's also obviously fine if the community has no interest in the script. We just wanted to share it as we find it to be a useful supplement to our code reviews and thought maintainers may find it useful as well. Cheers, John