Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp659186rdb; Thu, 22 Feb 2024 15:50:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeZ/HJvSG9ZaNhY2AkemROVqQYMWFqcxmEbZQ3/kwJyzBsyIPeCuIikmQ1fa5PTWCYLfhVCEQe9RFVWWnaXpEqj9I5G2De9ocAbMMckg== X-Google-Smtp-Source: AGHT+IEccDJ/HOpzTSQ0zWYXc6gTjIrvMsnGAuWGaVNR6oQpGG9jWwvurbgz4mm34y7F0o7zbCyi X-Received: by 2002:a05:6358:703:b0:17b:5635:b78b with SMTP id e3-20020a056358070300b0017b5635b78bmr364693rwj.14.1708645838040; Thu, 22 Feb 2024 15:50:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708645838; cv=pass; d=google.com; s=arc-20160816; b=L98SxeSy6bxmgVseoeZtM5pg4r6tQb90gpA4dbAgTKjYN4tCQcEnRDpQx+2ksK/HeI l20ZRco6Z9QrTOxLvRxozrlaNgdi6Ai1jH6U+vY8AR4QRBqVg2MLU0TFkIz+WL9ob3jl MvZPew7wGSLZhWxXkomytjZ/65ppJLBx60zTNc/BLd5Tt0bWfrh/SDygI+296er5oZxy QvsDjSHlwHwn5XGKFVA+vsamUaoZhPtufF27GfJ43FJ0D7HWEFc8SYpkg1tFRnNawjID WU/hs4IYnn2eLKQRyx50YI2S/2xibGef+9ErXZoxHafXcOPYgJ9dUWOjBr6yziBbKTXs fDkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=ILw8Lb9NRgVjbv3d3fgqIKL7GVVXnpquofQj0VHt3qc=; fh=0aoC5z3jhPVpxLZEZUtXriQUvITXUQGn5kA5DDoVkzU=; b=UfiOghcP2g+XG51Xo5K7I1MZ4F61CKjKWNMhCIKF6CVo393skyydtTs+bIBs1aSwSm KQ7QNvcD5BvCfTjLZMl64d8X0zez8Wc7kxyzl08Hep9xf6QcISXQ8KpO8Rds3bM/jQ6L MLm+dFvfrEZ54/gI3NOYNhP2ksrVYZuvoQAEG5cvDg53lbJb5qRmIGxgGlHBQxBXth0Y bfBzN2X/0rY5ALyptzUHRvQY5DOGhdPYSuL93SVW2re6IrABlxEw8MESN+aQQ7lBGhiT JcX6zeW28LIkkKel0htBeSmqfGur/M/SfQdXjH0CkV/kYTO7/SSXFHds4ypY3NQOZTcM IKCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm3 header.b=FSbouayq; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=H1FMMH0I; arc=pass (i=1 spf=pass spfdomain=tycho.pizza dkim=pass dkdomain=tycho.pizza dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-77545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77545-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s29-20020a63af5d000000b005dc97ac8afcsi11037092pgo.125.2024.02.22.15.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 15:50:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm3 header.b=FSbouayq; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=H1FMMH0I; arc=pass (i=1 spf=pass spfdomain=tycho.pizza dkim=pass dkdomain=tycho.pizza dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-77545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77545-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 598D5B212A6 for ; Thu, 22 Feb 2024 23:49:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DA2D13BAEA; Thu, 22 Feb 2024 23:49:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tycho.pizza header.i=@tycho.pizza header.b="FSbouayq"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="H1FMMH0I" Received: from wfhigh5-smtp.messagingengine.com (wfhigh5-smtp.messagingengine.com [64.147.123.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48E0732C84; Thu, 22 Feb 2024 23:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708645774; cv=none; b=Hcb49pO1+/gQMke+H3HyUWtKhnPqbhUHlxWvYXJVC0LcYbi6KORw3qlK+n3YuRH+KUVvo7PWmqT2b22Q3mdN/FEldvLOn/teGoZcmUfsD51TfKUVHaUFLqYMI0ibF0YNkhSeieNUHekCSH4yQNjX8NzVlCWtZ0sOmIwCMvbeeJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708645774; c=relaxed/simple; bh=Rf4YFZGCoDZ1bCrs/37WDyG/DW+iNIONt5UEqAWkVq8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hP7Bc5rBd4Y6QrEFCmV10A1+wU0tOEmR6bys0bnljFdcue9IHfY02qPh+7OBWgXUVZVwex98B8AD62u7p5ZZ5pG1DpAWVLbbADhSW+gs//X7rZ8P/tvOeklGE4KilAQZ5lWnQXCRV9iS5PLQg3Akiz9qwE34V7o+16eKS3sALMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tycho.pizza; spf=pass smtp.mailfrom=tycho.pizza; dkim=pass (2048-bit key) header.d=tycho.pizza header.i=@tycho.pizza header.b=FSbouayq; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=H1FMMH0I; arc=none smtp.client-ip=64.147.123.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tycho.pizza Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tycho.pizza Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.west.internal (Postfix) with ESMTP id B8262180011D; Thu, 22 Feb 2024 18:49:29 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 22 Feb 2024 18:49:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho.pizza; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1708645769; x=1708732169; bh=ILw8Lb9NRg Vjbv3d3fgqIKL7GVVXnpquofQj0VHt3qc=; b=FSbouayqr83HDce0dLvghbHifh fg7AEv+KzCVmVsK1bHQgMVZN1LMw2AS68mtxAg+tJWGqU9QydknKVDhKLfOz4SM7 laOAwGxsLxKJjJXeA5IS9/CadvmnOmyprAFcEIzv/Jwe26hui4y8jl7c4gzF7eHZ fTCrip5I9n3/mzctP5MCjuzZV6bSi+WKXiWV++jpBCtCsXb7mCMszAb/6Oamz4cd S+yzbg1vXkHROpgE8spmFIWdSPiVk/1Kr4BtgAXG0kFa0sz+HErvq1CGhtd6TTX/ xZqixqVMsK7nVWMMlg177P1PmMIuFiIKtxFmCUkYGDLbS2nwvbs169NUPRtA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708645769; x=1708732169; bh=ILw8Lb9NRgVjbv3d3fgqIKL7GVVX npquofQj0VHt3qc=; b=H1FMMH0If/yP9lEBc2BZCSuNCo4ZS+ao8n+tCJstsGSj cuu7GImKal3QF7hc7CupvyNqMBISdHevjoJIezleCourEcNKL6iIN5m/5MRktttf RltUIoQn+qzl/YdLkTVgNklNnhsSa5Xb1WuHqtoGnJPK1cUTUfagS9x4ivqBAUDm DP1uHkWsslrSLREyTcaDrGdImLu3MBVTUHtAoCJfTdQrqpwlmneLnzbpQ75eq9Bx mK8fQvl/kT3teltV2APibNCu1hBd9rJ3PLld+h9g7iXTaZ9HDKbLLi7Q3JTw1sH9 3IMXzFUd4B6ukfjszpslg3S3abviB6YH9rBbcv1o3w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeehgddufecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvhigthhho ucetnhguvghrshgvnhcuoehthigthhhosehthigthhhordhpihiiiigrqeenucggtffrrg htthgvrhhnpeeutedttefgjeefffehffffkeejueevieefudelgeejuddtfeffteeklefh leelteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hthigthhhosehthigthhhordhpihiiiigr X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Feb 2024 18:49:27 -0500 (EST) Date: Thu, 22 Feb 2024 16:49:26 -0700 From: Tycho Andersen To: Kees Cook Cc: "Tobin C. Harding" , Greg KH , Guixiong Wei , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] leaking_addresses: Provide mechanism to scan binary files Message-ID: References: <20240218173809.work.286-kees@kernel.org> <202402221249.FA17A8940@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202402221249.FA17A8940@keescook> On Thu, Feb 22, 2024 at 01:00:40PM -0800, Kees Cook wrote: > > This does bring up some interesting questions. From off-list > > discussions with Tobin, I believe he is not particularly interested in > > maintaining this script any more. I was never set up to do the PRs > > myself, I agreed to be a reviewer to help Tobin out. I'm happy to > > adopt it if that makes sense, but I'm curious about the future of the > > script: > > > > 1. is it useful? (seems like yes if you're adding features) > > Yes, LKP runs it as part of 0-day, and it's found leaks in the past[1]. > (Though its usage could be improved.) Oh! That is good news :) > > 2. does it make sense to live here as a separate thing? should we > > perhaps run it as part of kselftests or similar? I think that e.g. > > 681ff0181bbf ("x86/mm/init/32: Stop printing the virtual memory > > layout") was not discovered with this script, but maybe if we put it > > inline with some other stuff people regularly run more of these would > > fall out? Maybe it makes sense to live somewhere else entirely > > (syzkaller)? I can probably set up some x86/arm64 infra to run it > > regularly, but that won't catch other less popular arches. > > We could certainly do that. It would need some work to clean it up, > though -- it seems like it wasn't designed to run as root (which is how > LKP runs it, and likely how at least some CIs would run it). > > > 3. perl. I'm mostly not a perl programmer, but would be happy to > > rewrite it in python pending the outcome of discussion above. > > I am not a Perl fan either. It does work as-is, though. Address leaks, > while worth fixing, are relatively low priority over all, so I wouldn't > prioritize a rewrite very highly. Yep, fair enough. Tycho