Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp618747rdb; Thu, 22 Feb 2024 14:04:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXoaNNmxKxoO6E+x4JtpSQbT72QMgSd8Uv3+qGm2uYO72jWBi0B5MO85hoL6OEyAAf3Sdp+zKBJOFfGGQdgxM76xSW8MxXvjSLmP4SlMg== X-Google-Smtp-Source: AGHT+IEnxbgxyBxa6NDVNtgWFsE9SnIYq7x9UlAdr0ItnUJ7h+1As0Z5R756UPgqef+WTpOPRjNz X-Received: by 2002:a05:6a20:d046:b0:19c:9d7a:d59b with SMTP id hv6-20020a056a20d04600b0019c9d7ad59bmr422296pzb.18.1708639484334; Thu, 22 Feb 2024 14:04:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708639484; cv=pass; d=google.com; s=arc-20160816; b=T0fuEB/ZTGrabbpSyq+CNAM6E/lydNlE+pajSJgXeM4p589mfTDU3ie7tcxl4SyMa5 miZutqZnUXVFa89tqvbOcXIK8lFobR02sQ+MaSlRUC6CBpqJidclqHad5DsE5xDolTOa N26ZZ/JoXyHcqF9ErknNVW9BcZYkH8/l7ua0Acr95gTYJQ3ufYQILXVOB+gQNSKVOOxh KgOK2ispCyuVZUTGxCsLgsv7tPDW2xXd0+jt+Qxzu+qoQvqr8mNBjWJn9n0NVxiiKLlW nlgD2lvEx3vdSFVHINHeJokPo9WRXSOYgvCIgjOnNCmAaCFsH+A43NGgFyINtURK92gz 3IDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=HPkEnHNu93Xut7ylGeEwx3NBgivyxIrV8yPaocBRkWI=; fh=pVh1hyN8Mb9m5dygwsej3vYBOuMzWzDQfB2voVy2Rjc=; b=X9kt4x6RUTfk8bqsdnzS/b34KU+yYGse3hBxksHuZaqCSf9NnWOzRPFUDVx46lKCAz /Uye1o5ep28hfLjoo1YQ/G5Q1jyA7W3UWGTBxlKTqdQ8qb2kgleVl+VBa8NhpY64DrH1 4p+PyHj3/AL1v5FZn3TaMEUmNcqE5A7M7jXq+C6HqvKg5zYb9PAyCTpHc9XKuuIgQN+O W53ZlMhE1rxkvxNbfggZInnZdcGZ0ty9LDcO6baIAlXSerpER7BdT+6PqqI4oxcnJZXS IRqR/e8ay8+e/RfGR5WxZ6C8b1r6j76+7wlf6acuprmxy0k25gAOHA6nMnfqW2sRLUnr /JTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FcmFdY3L; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-77437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 r25-20020a62e419000000b006e37d642b66si9815179pfh.183.2024.02.22.14.04.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 14:04:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77437-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=@chromium.org header.s=google header.b=FcmFdY3L; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-77437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 220FAB23D85 for ; Thu, 22 Feb 2024 22:01:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FADC13BAD2; Thu, 22 Feb 2024 22:01:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="FcmFdY3L" Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1505A12D21A for ; Thu, 22 Feb 2024 22:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708639262; cv=none; b=ql3M0V15sr5kBOR9zxEDnrMhgtqRpNNEgSGpOBkaYY0cOmR5nhKnzbsYS+ZaJ+tflCT4YwsTZEXIlad++E+q8I8vSucmKThmKRjIU+1F7Dl8+GutVs1xYuOV1xNJtLaVr1zDbU6xMqP35FdKaumaujbDy7Ayy1MynqIDPbZxS+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708639262; c=relaxed/simple; bh=hbXGJ/YlyPpD27cmj4b3cp4Yzd2WD9bezI3PKuZsB5k=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gxiX+YPrvPNpmMFMeEC6p0Vy95F/E7LDc/U9/dmMpXOCzcygAEbaXDNt2z0CjVjHJ+7hTTH6YFWgpXKUPdMYAoCqGWFxnIuudsgdotJMnX8UwgpU7AWpll01NZAANA4M+eVQqAhhLEoukMEQ0CVcWEraT5eGJR/QzOo1skOL29k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=FcmFdY3L; arc=none smtp.client-ip=209.85.215.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5dc20645871so184793a12.1 for ; Thu, 22 Feb 2024 14:00:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708639256; x=1709244056; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HPkEnHNu93Xut7ylGeEwx3NBgivyxIrV8yPaocBRkWI=; b=FcmFdY3LT5D1jofQv/R9pi1nPRUuDWfCX75k6RGwJ+EDuPhQcrTcuAVTMwEXgNMm3N r+H5jOzoOm9PkcLQk77EOZGEGAP1H9X515eN10NVjKTuFsc/JuYOUStkKVEc0PHIaa49 tLdGo6IuZM5RJ2FTjGcC3VeMD4vn8t3akzIL0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708639256; x=1709244056; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HPkEnHNu93Xut7ylGeEwx3NBgivyxIrV8yPaocBRkWI=; b=Ayaf+PttpKQWZjmEXIvsPBFARvyhINuiEWQXWuwNX3im0hp7WHfb0MBpFJvIAX5Lz1 pOouxKl6VR+1WTpnFYdi4nUWYjmYq7w6xNTwyf33kGAzpoXT7hbdWIQDDnldqns2aVQj iyAC6JLDt4zgdemNd0t7XIz6kNJaBdSUWsaBe5Kek9lFlnFEMiJPdKHt1h2m0npQk26A CamNw7fYLpb6j0IR6C93+O4sKRCuc2A1WJ2HSJKhfQ2cQ8fDUCv4KRnOhpipguwr0QKh V2LSUJ/+umICqiHnqD7ng/iHiprBnDaQxgcPRrL7F7oedtZp+N+kuF6kgZ3Nqx56muYh tK4A== X-Forwarded-Encrypted: i=1; AJvYcCV/Xku8TWL3Gl7OFgNbCvjAPk7hDnsWJYjeDBAuQzKiFTwg/iJRXOu57clQlf6FOkxuu4cH3l9IaPVuVePmWX5FpgTdzziEeYfco8Bg X-Gm-Message-State: AOJu0YzjNKnFfnO3AnKTym3VPLAGXsCfYVagCkHkP0/4K/TQJ56ehZxv K+U1VsF6qoPnvlcbc/xBBEVpCWg29IB3U/uOLw5iJ6I1xAG3JVf+/3etd2JpVA== X-Received: by 2002:a17:90a:5915:b0:299:d975:89ea with SMTP id k21-20020a17090a591500b00299d97589eamr5305831pji.21.1708639256302; Thu, 22 Feb 2024 14:00:56 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id p4-20020a17090ac00400b0029a75101532sm86105pjt.50.2024.02.22.14.00.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 14:00:54 -0800 (PST) From: Kees Cook To: Tycho Andersen Cc: Kees Cook , "Tobin C. Harding" , Greg Kroah-Hartman , Guixiong Wei , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v2 0/4] leaking_addresses: Provide mechanism to scan binary files Date: Thu, 22 Feb 2024 14:00:47 -0800 Message-Id: <20240222215755.it.764-kees@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=719; i=keescook@chromium.org; h=from:subject:message-id; bh=hbXGJ/YlyPpD27cmj4b3cp4Yzd2WD9bezI3PKuZsB5k=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBl18QSB21XgR75CdHFMdboQm274FdSvsB0skHsd tLyagq8jnOJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCZdfEEgAKCRCJcvTf3G3A JlrCD/4rxBK5ZdiEM903WPKFmSyOx6fBKqejjipROUfR1COBQWejoVnMOCfp1s0tPxTsULjFbpF RkU85zfnuqSajfnklsFybDe67UM4J2zusweiQAKFCkuOheq49PQEgwWCL53IEKiY+/+oDyNJ6KR n1WSUKdo7rIyUhhEDQ9TpOwy8CWHILXTdcxTYd6VyNmkUQKEu+eClxqmgF4DqiVgxnMHzlET5l7 nxVAwDEclFBUxE28ZQCtN253gsYPX/nnXguzciBxioQqEbbgpOu2KYjDjUKal8TrnX09mkZyvdB Uq3HpV285oa6TgcVIz6TxX50dgJQga5WmKjZpnexZJnLlGJvUcT7JUU7RRfZq23e739Aa47Zh5S 8RFLvqZAQjfGhLEfviNmjlqobLLJnBsVz0v1ZsbSV8UT7yK4a6XTuh39F/bbj6hGRM1ZHH/+0lu dcwaZL1S6BpGjiFxahU0GJ53qikeiectsveucYA65vxo8tFbnXw3qqCyY4E+Ct2eh2W45HTNFvp BBbeZQybe529xNbzsLieuYQWZHPIyHZPGEav8iNlZ5W8ZGZBT0BwZI1IeszHT321HSIy7QKg80O E+jjr9CrJBd/hk+YhYilwmPAq0tcgnFGOtWkFcBd05P5znJb/jWF2PShRNApt2l8YO00QtPZsBR YxMbVGQE 26VLZMg== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit Hi, Since I was in this script for the binary file scanning, I did other clean-ups and tweaked the MAINTAINERS file per Tycho's suggestion. Changes in v2: patches 1-3, move hex() after ^0 skip Prior v1: https://lore.kernel.org/linux-hardening/20240218173809.work.286-kees@kernel.org/ -Kees Kees Cook (4): MAINTAINERS: Update LEAKING_ADDRESSES details leaking_addresses: Use File::Temp for /tmp files leaking_addresses: Ignore input device status lines leaking_addresses: Provide mechanism to scan binary files MAINTAINERS | 4 +- scripts/leaking_addresses.pl | 90 +++++++++++++++++++++++++++++------- 2 files changed, 76 insertions(+), 18 deletions(-) -- 2.34.1