Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp754740rdb; Sun, 18 Feb 2024 10:07:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX/1q4XCWR0EvNtx7Uy2U6mZDhj1vInbE52LGTQUPlQ2p/c+W9sG+IVenPp2zmmtkvgQb5QF3Yire9YMZr4UxtvqzpHGWSqp1OkwjEtJw== X-Google-Smtp-Source: AGHT+IEqrENtaMRQ0uJQ12dZXkTHaoC18ZlZTF7OVrTkARlefJjKGN+dt8BKo6mVnR9rGEN7Ak57 X-Received: by 2002:a05:6402:708:b0:564:8004:6f06 with SMTP id w8-20020a056402070800b0056480046f06mr10555edx.29.1708279660651; Sun, 18 Feb 2024 10:07:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708279660; cv=pass; d=google.com; s=arc-20160816; b=r0X4xgB/QZaLmuClqgaCW7bJvQ/U4r3axJ1r07Mm0XZvdfJqRthG3HCoigWbE9ttSh m2g8kj+HsAJMyf/jLWm2+uAu7DRvdgft8+iWiAutt92ch9UsQZnFlLOd/25DRLLn3GUj 7zok3UoAW+R+MZAp4gext30xyyXOSXQN0pN0M6APSgj6qRObI4KPz3GXXqQRXrwCmBsU kW4grNssAIomgM1CeekgLHaG64xBglMl3yT6Fe03vLREFF/I6l0i6epTuWxZ15AA5cRz ePTW/5QsLwZwXzmm8kNnBkDreloxBUgG/7eD+feq0j0cEUAToGDtsJgLxegtjtI4h5qW I00g== 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:dkim-signature; bh=CAg19Jwz/thvQfWuZLLQnWheYePOpCRUt6emLxYnfXw=; fh=67J2BK2naO2jI5b+7PH9++YEzYBG9tj58TmYJSnUYW8=; b=KluCawBv8PsMP0jLurW1SsUu9DdrzCluIo9OoKoklqr26RtwaBf42Eg2AFzk7oWjFC ghYeZvc78kVwUPq9FzWZxISmqV5ud73Ep2in6SkHXL9BhI1c2r/M6yHVwlZmae0SAdrX 9dGwi88c9zWij9kwY21fynsW+QNHwyw+p/va+RXimj+skPYySROuTYt9uUuR2uO1Rwy4 S889Zq22h/BJ3RVsEAqi69S2NlQZ+7W1DV7UXhQE6FU8YBZSmLxp28quUGrIXniavnW5 iZbvwhZrKcHMLXe4B3EJ5BOHx+XIsTxsVzXjTcNsp6ngYBl3pclo24fBE+5PuZ/bhoTL K32A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wJrEdVch; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-70477-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d26-20020a50cd5a000000b00564646c2f65si521934edj.52.2024.02.18.10.07.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 10:07:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70477-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wJrEdVch; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-70477-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6CD581F215EE for ; Sun, 18 Feb 2024 18:07:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDB6C6F072; Sun, 18 Feb 2024 18:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wJrEdVch" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EBE6B6BB4B; Sun, 18 Feb 2024 18:07:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708279652; cv=none; b=rYJCr2Y+Io+/qkz0ZWAcgdTaZFbUKJaZ9qPz4PWjnfmqci4+Glp4oLnnRicZC22vQVFK9IZNweetyZkNw0ChXbnCSx5wDLdG4b0PMGrrEd36kYJoZqKvu6uiCmaCCj6jGwFwumhisp3R7TJoeXGPpJKDVcassMd7QzUB7dE2hHU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708279652; c=relaxed/simple; bh=jGgx3XYerwESqbJmwaEqnKiJ4QqQCMl076he249Ejj0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hArrboev5lcfJrPnjkYqK6FGMYaa8R/ruog3UD8+OugpqDiVypBaWJJWHjvPmg3We/eEUj8QpKi40EIYvkV41PNBdzg38XNUd2gZ4ToIyjts+jcAyIFk5guAkGd4ItITMlr5UYu+5lQtn8Dv1hyoid/DIqxV0ncxdAfFnrthzok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wJrEdVch; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03DEAC433C7; Sun, 18 Feb 2024 18:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708279651; bh=jGgx3XYerwESqbJmwaEqnKiJ4QqQCMl076he249Ejj0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wJrEdVchWg4yUsR32PNN2bpRzp9LgL20yw+8UIoPiNWhwaGiO4M7j13DKaReKsdBx EzFBzLqtTENZkGrK35ymFSbKu5hiGOgIAuMR/l7YQuAlPQDLBT+YJmM4JAxuF06fJT kVTtQWfKGpTUGx3zlEC++j4QX/fNbaYQWKu6sikE= Date: Sun, 18 Feb 2024 19:07:28 +0100 From: Greg KH To: Kees Cook Cc: "Tobin C. Harding" , Tycho Andersen , 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: <2024021819-sacrament-violator-428d@gregkh> References: <20240218173809.work.286-kees@kernel.org> 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: <20240218173809.work.286-kees@kernel.org> On Sun, Feb 18, 2024 at 09:38:12AM -0800, Kees Cook wrote: > Introduce --kallsyms argument for scanning binary files for known symbol > addresses. This would have found the exposure in /sys/kernel/notes: > > $ scripts/leaking_addresses.pl --kallsyms=<(sudo cat /proc/kallsyms) > /sys/kernel/notes: hypercall_page @ 156 > /sys/kernel/notes: xen_hypercall_set_trap_table @ 156 > /sys/kernel/notes: startup_xen @ 132 > > Signed-off-by: Kees Cook > --- > Cc: "Tobin C. Harding" > Cc: Tycho Andersen > Cc: Greg KH > Cc: Guixiong Wei > Cc: linux-hardening@vger.kernel.org > --- > scripts/leaking_addresses.pl | 53 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 53 insertions(+) Nice! Acked-by: Greg Kroah-Hartman