Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3016578rdb; Mon, 4 Dec 2023 14:15:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPd2pquP81ha7etI6/m3bEyKtCExmiEgxvCHoEXtNlXnNyvy5rZs6gOgGGQnpZuEyvceuG X-Received: by 2002:a05:6a00:3317:b0:6cb:a0dc:3d56 with SMTP id cq23-20020a056a00331700b006cba0dc3d56mr306594pfb.0.1701728103323; Mon, 04 Dec 2023 14:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701728103; cv=none; d=google.com; s=arc-20160816; b=GRXRrb4538vDV7X59kfOnMset1FCJOR+3H99heQ0poT2QLVZh2hzcoYGA7czdV749x VfezsJ3Zp9bGFjqCNITQimRxJxfRL3ETJKmq1YiVXjVuuVI5UFUVIx5BxartcsYy25fD wehpEYrAGXC6oOSIm9oHUteegf50P/1B7aqGulkNEQ5iBJcnElBkMPbM8GbRp+zbjqAZ u1EXK5XXp2V0ShsG/Eyf0/5CmkUjPM6csZkBbbwVeof0AEMjhMBxMxxcamfqYQj69uPU H4gM516D9RDBX3llfwVXg6npZSLH1DJt/8XSzHfGJpE6Ayk2NY2Nbng3VMHLnI7hHwM8 FglA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=o7NAHp/MgTm9SnzSWNXfFwt/FdMVpyaPo3ZgisLjz/I=; fh=5AwoD1nwIkB4+OrhHRLytj2QW6BUNyOeqcoemuAb+N8=; b=S8CIW3/sPxa7T7zBJg/M0ZYrhyZE7cLPf0qDco+j4WwO5YFSDQQIDNuY6ALk5m+r1k SUCkrhHVIKw5TWrrxAbeaCNRvTJMskbZwTd5ecVryL0H534J9sjmDIiqS77LW7+cMFAr iaU/9jZxvck6husxCag/JiBlWKhsyRsxCkrtEFt18zeYdwg510htjVlwlZWxAhKeQE5G VbWYKulThrgNNiFd2IFjsbkNyyv4fcQgcES5xTpFXx2uev1a5P2boVoTzrKtp5IreFMS P21/MN7obuoIs7+g9DQTUgsFfSR/09gyNH/tf/zBDiyZziP9TjTZzoOx6KDqccV6YqHV 8mLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WRb+46fT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id u8-20020a6540c8000000b005add209e106si8138324pgp.442.2023.12.04.14.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 14:15:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WRb+46fT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 48FC080440C3; Mon, 4 Dec 2023 14:15:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231411AbjLDWOs (ORCPT + 99 others); Mon, 4 Dec 2023 17:14:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjLDWOr (ORCPT ); Mon, 4 Dec 2023 17:14:47 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EAE3FA for ; Mon, 4 Dec 2023 14:14:54 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-5c69ecda229so618002a12.2 for ; Mon, 04 Dec 2023 14:14:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701728094; x=1702332894; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=o7NAHp/MgTm9SnzSWNXfFwt/FdMVpyaPo3ZgisLjz/I=; b=WRb+46fTXqd5sRdJUueaTb020qZkOMghj3gRWtOIcX5OORMR1f759TGn9hNrPjV1fa jOF6uUinAkleHsKcOr7UPmTJsnAat8VVbMua8PRWX9RjEaOIHU3OEvjP2NQBBdR/NKDy Y3tF22aS/ES5WNGUohCppwFUSxUXyz7R2FD2A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701728094; x=1702332894; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o7NAHp/MgTm9SnzSWNXfFwt/FdMVpyaPo3ZgisLjz/I=; b=tXRgjU5kcuKaibQS+7MZAC/5wos/5AcQecs6rmOsco/9jdu1ArdaHlJSZoSyA6lbSr M+dJ6miG3dy1iuwh3eSL0yJ+25wXB+v2/+HRPGMtAH1ucBfAzXJg9FNH9sLw5pyhmuRn 21U3Ca/V4iPOVNM4aVGBB2T4VuNFqjHFZ86IO1JUobmLn5TFaz5Vtp8tmDgkquhqO2Zd drBRJEBN/2vp9ZWRY9It//0WW1oE8oMciOWPh5KNtDMHT+Ss1Zcyn5quyrvbbMq1C676 uKnST2op+kmy3NbO8e3s61OQt+LFNpJ6Z+mf1GrxyTD4W4OAVNz5AfrAaM2fTsl4NpC8 kR2g== X-Gm-Message-State: AOJu0YzAETYe2VEtc4QPC9esToGLXApcs13jdDlrbJEu4JfOuvP/Q2hG o1ANUzuI7xzVLtlhrinmHDcXwQ== X-Received: by 2002:a05:6a21:1cb0:b0:18f:97c:9276 with SMTP id sf48-20020a056a211cb000b0018f097c9276mr1608801pzb.91.1701728093815; Mon, 04 Dec 2023 14:14:53 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id d5-20020a17090a8d8500b002867adefbd4sm4108188pjo.48.2023.12.04.14.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 14:14:52 -0800 (PST) Date: Mon, 4 Dec 2023 14:14:51 -0800 From: Kees Cook To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: "Gustavo A. R. Silva" , Luis Chamberlain , Iurii Zaikin , Greg Kroah-Hartman , Joel Granados , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 08/18] stackleak: don't modify ctl_table argument Message-ID: <202312041414.441475830B@keescook> References: <20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net> <20231204-const-sysctl-v2-8-7a5060b11447@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231204-const-sysctl-v2-8-7a5060b11447@weissschuh.net> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 14:15:01 -0800 (PST) On Mon, Dec 04, 2023 at 08:52:21AM +0100, Thomas Wei?schuh wrote: > In a future commit the proc_handlers will change to > "const struct ctl_table". > As a preparation for that adapt the logic to work with a temporary > variable, similar to how it is done in other parts of the kernel. > > Signed-off-by: Thomas Wei?schuh Looks good -- thanks for catching the table-modification cases. Acked-by: Kees Cook -- Kees Cook