Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1833224rdh; Sat, 25 Nov 2023 04:53:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSHGNwmp5I8EotHHe4r/rZWeeMgbtNBsgEc9ZDnffUEzKn5JO9IlvnE9yX8h5U5c3OErUR X-Received: by 2002:a17:90a:de8e:b0:27d:dc9:c67d with SMTP id n14-20020a17090ade8e00b0027d0dc9c67dmr5396484pjv.36.1700916833146; Sat, 25 Nov 2023 04:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700916833; cv=none; d=google.com; s=arc-20160816; b=RU3Bjzw6e30ccnRLty4V9Z+PVUXiIVU+/l+4UkZ68GHGeM5yiF5C7P2+IUzZTiWvSn hUfYOU2OV8wBAEDksXQ+lo76MGPMhZBDlomnShAbucf8CQL10KTaEduwQtv4Qfc6iCqQ 7XPUR1OssflxrhvkT7GhXTIqYJMppghlV6yEQqyZ5AsiwuxbTRNGecZVhLm0vWbSTjht /RaNXt+EhJ3GckpkltLKv8p+rc04XL1x1DUM2JcYqna4BpMuVQysvMHPdoDrWe4yss4j mJoy4sW+pztfljkaZkpVqZ/f+SWsGP/CwIR3DAmiGRmBcbHUhChift8+GHo8UB62Oqnh 0zsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=IfZC0rCD+0RLFKIW7RHb4gPPIeZsdOLrTtbML5thq0Y=; fh=1v5zqbO9sIGUc9bsdyhYE0zxdK1knZz2xnJYWUWMFKo=; b=G3rUP0Y6pxWQ2uIYwE1/96Yu/sgr2SAxMJF3kGpW5mdytBwSZ5+STmjQtUIlWcLXqW YYwocO45xQgeJk1/9zkfZ4Z/Q5s9L3drPn7jXkFpXKYHFA5d8rPhBmAPBOrhkvRMgSof mHQJ3+4gPO2vD1Yguzzeox/OpPUd5l2otmB1S4OoFBbe+bSuFd4PrzBbgf0PSXJkR/Nj 2QSo5eAziSZzRbGN1WjBg5hOZBA0e7rqcMhBR8iHsqnAJIWqrP57yWta6E3vV6F2iKhB qe+RXNBRMmXfNyT47K1oegEo92VSwgmmNIv42HStg0a25WgRWx3mRF3sZ41eZ7cR7Wpe F+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=CRG3QeD3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id go14-20020a17090b03ce00b00280664dd1f4si5629212pjb.9.2023.11.25.04.53.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 04:53:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=CRG3QeD3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7064D8042780; Sat, 25 Nov 2023 04:53:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232159AbjKYMxH (ORCPT + 99 others); Sat, 25 Nov 2023 07:53:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231838AbjKYMwy (ORCPT ); Sat, 25 Nov 2023 07:52:54 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E186A5; Sat, 25 Nov 2023 04:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1700916776; bh=BXpS/WrMvo7OTDWmO9J+PqDzo439myYjgk+dpF5igi8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CRG3QeD32zcBVzyla/RRsF6DadjHrOG2/e79L8re92+jzT8/IfyAi2DfdoBcCYHur A2k3q/hsqBkuwUecbu+GEGdpdupAbwEVncN+nVgqJugk7OsLZPSTiq0NaWKPTVFFhw WrQ+wDYvJp5KEnU0jRyWQQ4/ErOC0NktBvbHAOxo= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Sat, 25 Nov 2023 13:52:53 +0100 Subject: [PATCH RFC 4/7] net: sysctl: add new sysctl table handler to debug message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231125-const-sysctl-v1-4-5e881b0e0290@weissschuh.net> References: <20231125-const-sysctl-v1-0-5e881b0e0290@weissschuh.net> In-Reply-To: <20231125-const-sysctl-v1-0-5e881b0e0290@weissschuh.net> To: Kees Cook , "Gustavo A. R. Silva" , Luis Chamberlain , Iurii Zaikin , Greg Kroah-Hartman , Joel Granados Cc: linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700916776; l=931; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=BXpS/WrMvo7OTDWmO9J+PqDzo439myYjgk+dpF5igi8=; b=z+1Fq4ACjRMgDdB2UJc/veEQ9uIu8xVFByIIB2mjo/BjJ4ZvZTeODnNikN1oDZrXJV49ka+Rn RVaoHTiMe4rBwUAOOe95hamAjfJyb+bsIZK7oVnnE++MoxZdg9QI0GG X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Sat, 25 Nov 2023 04:53:37 -0800 (PST) The sysctl core introduce an alternative handler function. Log it in the debug message, too. Signed-off-by: Thomas Weißschuh --- net/sysctl_net.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/sysctl_net.c b/net/sysctl_net.c index 051ed5f6fc93..29d871097ddc 100644 --- a/net/sysctl_net.c +++ b/net/sysctl_net.c @@ -132,8 +132,9 @@ static void ensure_safe_net_sysctl(struct net *net, const char *path, unsigned long addr; const char *where; - pr_debug(" procname=%s mode=%o proc_handler=%ps data=%p\n", - ent->procname, ent->mode, ent->proc_handler, ent->data); + pr_debug(" procname=%s mode=%o proc_handler=%ps/%ps data=%p\n", + ent->procname, ent->mode, ent->proc_handler, + ent->proc_handler_new, ent->data); /* If it's not writable inside the netns, then it can't hurt. */ if ((ent->mode & 0222) == 0) { -- 2.43.0