Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2146890pxb; Sun, 30 Jan 2022 06:34:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrte7lnAmXu3lBKX2i05MZYtXDDrXYs7h+TbXn5WTKvcTsP5xN5qLaKbhY377UQRp0XDx2 X-Received: by 2002:a17:902:eacc:: with SMTP id p12mr16990657pld.123.1643553272117; Sun, 30 Jan 2022 06:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643553272; cv=none; d=google.com; s=arc-20160816; b=ggjYglrFRslBkM+IdtphEBppKL5bcZpgHXZ0KgT/tDD803RBW0XSNDI9AiRcjLih1t WZ+qsRakCvL17TAUFCQwnF/eHgj+0vD1U9bMAOCYTA2T8fUYEynHmNJOyciBKRBmHZK+ ILEZ1BsNhdKYtFsXZK27qm6P1MdHQ7kD5WAba0TS7WZnRQ6BAQHx33xTdlh1M/VmHIzG 4QDON8tyVg1etueaLafR7RRzDJLUhCGzNR8TFDSQd9Skgu+0KPxSevZ0CUpPCxWzOfxL YqOw5jLWz5AHoSzDN+sy949YNo8DddGTf7oOiaFfpnw+7w0qcyJsDtaYKw9oyCOZMj9a UeSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nuNqyV6I50dd85AMCad10g9jypm9x0TneXnEG7ThEVQ=; b=xcYtvPVhR4zo4/RQrAgctA0EceParg+3EdZ0B7s/KShy6s2iXl+lFYrQP0xARN8Rdb EvK/WVh6dka7oDBj7OeCxnk51b2+e0cN0xEmmf4LsWOviNQH92zQy4ppNzRejaRUieW5 B1ZLNhBCHFHbr5m+mNw8JoCocWNrE3vbvKmdoz6YOaS8/Aa2bHB3fpW4bP0Eh5iZZ2qC gYAf0C0RzbyztqooJwBVMtMgH0Topwyl3sLNp1OmiAdyfrx7XskKLfqeoPMeki5maysk csE7YT88ecrJTtT3ajpLC7EXEqsl8klVst3rDdFhfDuvEqRAPHFcydTxC0U220aLCymp /irw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="KzR/YTPp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nl1si6351371pjb.178.2022.01.30.06.33.54; Sun, 30 Jan 2022 06:34:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="KzR/YTPp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347165AbiA1IGd (ORCPT + 99 others); Fri, 28 Jan 2022 03:06:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237542AbiA1IGc (ORCPT ); Fri, 28 Jan 2022 03:06:32 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C032BC061714 for ; Fri, 28 Jan 2022 00:06:31 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id a8so13245314ejc.8 for ; Fri, 28 Jan 2022 00:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nuNqyV6I50dd85AMCad10g9jypm9x0TneXnEG7ThEVQ=; b=KzR/YTPp22CZq1d4oZb+5h3agMmrBQLQ4Dz/A8uM5qkccqNW0tUmakMqE1J81EvnDE I+//qu9w6owbtTR71o6MnOdubM/5EkiuGShFnejuyM8ZXdygSINju8GAC9P2p7muuLJA nZ56g/1+R7P6nh1f2lD699Erq9t5YRv/Q0gIs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nuNqyV6I50dd85AMCad10g9jypm9x0TneXnEG7ThEVQ=; b=D+N3BK0B1nBljiOS+VizVQWWKKx3SdGo6x72xISlg7g00cD918jUSi5HRUiAVW7QOT q0YxYVVYdjZugTbcparHAMLyx9WXb141FqNoGP3nZdChhp2ZbCmCa6K5En5Jf2gbmHY2 nJzHmVrVrrpTpOcpSfoDPB5f39dJviTMk4iPWZJ14Gqo4AoBwL/CVjbGXm9pDREsaMti Gs6jFn4WrJzoUW91Njx37YwrZhi8NbxRqiKjk0ZEUKJOUYs/bq+InUB5ejVFNh0xa8TN HWQ11Yt7plIFEpyE7Wl0cw8kN0lQialdijlVpF2S4I5FOpqvNRk+GCMXDpNYx5zHIfxB pdOQ== X-Gm-Message-State: AOAM531IsEvmuh7PM5a0hGoKjsabI/L8lAvZsrWcj8UfFQyzI38HCjpK jssNycg4vAfqEA46X6I9a6InOviyONUwSGZ9 X-Received: by 2002:a17:907:8a27:: with SMTP id sc39mr6068063ejc.314.1643357190211; Fri, 28 Jan 2022 00:06:30 -0800 (PST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com. [209.85.128.41]) by smtp.gmail.com with ESMTPSA id g9sm1323658ejm.152.2022.01.28.00.06.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jan 2022 00:06:29 -0800 (PST) Received: by mail-wm1-f41.google.com with SMTP id m26so1285975wms.0 for ; Fri, 28 Jan 2022 00:06:29 -0800 (PST) X-Received: by 2002:a05:600c:1912:: with SMTP id j18mr14547193wmq.155.1643356845250; Fri, 28 Jan 2022 00:00:45 -0800 (PST) MIME-Version: 1.0 References: <20220128065310.GF8421@xsang-OptiPlex-9020> In-Reply-To: <20220128065310.GF8421@xsang-OptiPlex-9020> From: Linus Torvalds Date: Fri, 28 Jan 2022 10:00:29 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [ocfs2] c42ff46f97: sysctl_table_check_failed To: kernel test robot Cc: Luis Chamberlain , Jan Kara , Al Viro , Amir Goldstein , Andy Shevchenko , Antti Palosaari , Arnd Bergmann , Benjamin Herrenschmidt , Benjamin LaHaise , Clemens Ladisch , David Airlie , "Eric W. Biederman" , Greg Kroah-Hartman , Iurii Zaikin , Jani Nikula , Joel Becker , Joonas Lahtinen , Joseph Qi , Julia Lawall , Kees Cook , Lukas Middendorf , Mark Fasheh , Paul Turner , Peter Zijlstra , Petr Mladek , Phillip Potter , Qing Wang , Rodrigo Vivi , Sebastian Reichel , Sergey Senozhatsky , Stephen Kitt , Tetsuo Handa , Xiaoming Ni , Douglas Gilbert , "James E.J. Bottomley" , Jani Nikula , John Ogness , "Martin K. Petersen" , "Rafael J. Wysocki" , Steven Rostedt , Suren Baghdasaryan , "Theodore Ts'o" , Andrew Morton , LKML , lkp@lists.01.org, kernel test robot Content-Type: multipart/mixed; boundary="0000000000000063d405d69fd5be" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000000063d405d69fd5be Content-Type: text/plain; charset="UTF-8" On Fri, Jan 28, 2022 at 8:53 AM kernel test robot wrote: > > commit: 46e33fd45a52bf03769906e64d8a8a1ab317777d ("ocfs2: simplify subdirectory > registration with register_sysctl()") Well, it's apparently commit c42ff46f97c1 ("ocfs2: simplify subdirectory registration with register_sysctl()") in mainline now. What worries me a bit is that the commit was auto-generated, and when reading the commit message it reads as if it wasn't supposed to cause any semantic changes at all. Is the cause of this that 'nm' is supposed to be a directory, and register_sysctl() doesn't handle directories? I don't know this code at all, should it have been simplified even further with something (TOTALLY UNTESTED) like the attached? Linus --0000000000000063d405d69fd5be Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kyy482md0 IGZzL29jZnMyL3N0YWNrZ2x1ZS5jIHwgMTMgKy0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQs IDEgaW5zZXJ0aW9uKCspLCAxMiBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9mcy9vY2ZzMi9z dGFja2dsdWUuYyBiL2ZzL29jZnMyL3N0YWNrZ2x1ZS5jCmluZGV4IDczMTU1OGE2ZjI3ZC4uZGQ3 N2I3YWFhYmY1IDEwMDY0NAotLS0gYS9mcy9vY2ZzMi9zdGFja2dsdWUuYworKysgYi9mcy9vY2Zz Mi9zdGFja2dsdWUuYwpAQCAtNjYxLDE3ICs2NjEsNiBAQCBzdGF0aWMgc3RydWN0IGN0bF90YWJs ZSBvY2ZzMl9ubV90YWJsZVtdID0gewogCXsgfQogfTsKIAotc3RhdGljIHN0cnVjdCBjdGxfdGFi bGUgb2NmczJfbW9kX3RhYmxlW10gPSB7Ci0JewotCQkucHJvY25hbWUJPSAibm0iLAotCQkuZGF0 YQkJPSBOVUxMLAotCQkubWF4bGVuCQk9IDAsCi0JCS5tb2RlCQk9IDA1NTUsCi0JCS5jaGlsZAkJ PSBvY2ZzMl9ubV90YWJsZQotCX0sCi0JeyB9Ci19OwotCiBzdGF0aWMgc3RydWN0IGN0bF90YWJs ZV9oZWFkZXIgKm9jZnMyX3RhYmxlX2hlYWRlcjsKIAogLyoKQEAgLTY4Miw3ICs2NzEsNyBAQCBz dGF0aWMgaW50IF9faW5pdCBvY2ZzMl9zdGFja19nbHVlX2luaXQodm9pZCkKIHsKIAlzdHJjcHko Y2x1c3Rlcl9zdGFja19uYW1lLCBPQ0ZTMl9TVEFDS19QTFVHSU5fTzJDQik7CiAKLQlvY2ZzMl90 YWJsZV9oZWFkZXIgPSByZWdpc3Rlcl9zeXNjdGwoImZzL29jZnMyIiwgb2NmczJfbW9kX3RhYmxl KTsKKwlvY2ZzMl90YWJsZV9oZWFkZXIgPSByZWdpc3Rlcl9zeXNjdGwoImZzL29jZnMyL25tIiwg b2NmczJfbm1fdGFibGUpOwogCWlmICghb2NmczJfdGFibGVfaGVhZGVyKSB7CiAJCXByaW50ayhL RVJOX0VSUgogCQkgICAgICAgIm9jZnMyIHN0YWNrIGdsdWU6IHVuYWJsZSB0byByZWdpc3RlciBz eXNjdGxcbiIpOwo= --0000000000000063d405d69fd5be--