Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp948221lqo; Wed, 8 May 2024 23:16:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTvfis+eNeiyon9rSVl7VwVmI8odhrZMbmsI+K9Vj6vV3VSpz7N0R+SizahA3dnvxyb07qIR+FKFuXlqQUK28tv+I38PcP00I7VV550A== X-Google-Smtp-Source: AGHT+IEGjfYbyweaCvNp0zWh3gNfjCzFcpCPjHNhd17XPsMxKChBlfXWJdHJnPUx7lF3qsvKbh4C X-Received: by 2002:a5d:5288:0:b0:34d:a159:48e6 with SMTP id ffacd0b85a97d-34fc9893babmr3796537f8f.0.1715235413182; Wed, 08 May 2024 23:16:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715235413; cv=pass; d=google.com; s=arc-20160816; b=C3mk4KwkIfzN/wSArc1LziD9w3LNH1wy/Ap7n2CpQl5OuoWvjTdQkgJreV32gFtuxM Uyk2kJnqwykyPnmpXGApns6VZ6/Hd9Z5ohp8DOrOh20HwRlVJopxNAT3/eS+55d4SLTb ysFBoxg1DsmxosOduOZeOmbxwLjOcdx6x+NlDminW4lfczckyn9KvGXeS+zGQtSmVLG0 yAuVLottR8iaCG0s9X1hECCfJgKzyCOpT+r9ZWZR4hRVFuufytGcfhWTx8IoDwexcoB+ vn9FWfHmCfcguFvgCVAzdCuxnVayVIs++GRjivXVCZxP036eRBSoDi0l1wtzm4ip7nVY DkEQ== 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=8s5ogdUt9IfEZlAdYuj7aMmz3fDPUoN3crsNCifKctI=; fh=QmL6XRwAhXiSicCbhDLm3OCShAtHYmajKFmhEVwcJgw=; b=Ke5kRqLv8gpBOQEPdbRlqSwLYHh9TzdfyK9ls1gvi2hghUGGasFlNsYe/87xV6UPsr hizkB8PW2Njg60IeibPZnc1eLLFqq9FTmCaYJZ+1XpkzYFW5Vf+5G33wrHeWHUENcZkw ZsqyRJeYNW8e9VQaT9c/7Y4tyWKH/z51VmmvtOywra9uu8r+42U6qyWzabUNsICwl6T5 ogmRFQwYpSr0lSr5xv9yOMI+TdcDEjiZzoAUPbzul/+Sanuwvu/uWmhxtd8LM/2+GH6F ft59wPWSO8SjoDxoxKYOF55OmQf1X04EVvLqCn0isWsxKa3tbO7WqhKs7ie1Jdv4MHAi 6snw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mFw1Qnul; 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-174188-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174188-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a179466ddsi47814166b.77.2024.05.08.23.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 23:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174188-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=@chromium.org header.s=google header.b=mFw1Qnul; 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-174188-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174188-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E3C5A1F235AE for ; Thu, 9 May 2024 06:16:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 304BE149C51; Thu, 9 May 2024 06:16:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="mFw1Qnul" Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 14F25146D69 for ; Thu, 9 May 2024 06:16:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715235395; cv=none; b=uREpEpZZ8LyDZgobOXr7TU9ZlJLfc6mUTnmAPz218BQrslr2ue7T7aJJrjvQP7HFBNCAg8dkLM+Tj/bVwfTpQifRbBp7UHQKd1P8HM3cDUYhkwv7h/7ZksklObH8FUMFtNfqqVBR4l+QETvIPllECHhNztgDyv6buu9sdEH34XA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715235395; c=relaxed/simple; bh=PtJHMj10OXb0kdkgkrb8tgubNV8cNGlXUgK81dDn4uA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VoElRcbf6aCQFqrimUdXtpdSeUty2C6o/XUNMjwxXcsQRxaKuxdTsK3skctYQubHwJNoWfJRebmTLcz7suNZYGzx9ulNqZC04HTE8Zjbnt2eXAB5QB70kfK57r+1775l39yLjyWmPRXEAsFZhuEQy3Qi8NasGlb5UIgOY87i7tU= 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=mFw1Qnul; arc=none smtp.client-ip=209.85.216.43 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-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2b4952a1b51so460819a91.0 for ; Wed, 08 May 2024 23:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715235393; x=1715840193; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8s5ogdUt9IfEZlAdYuj7aMmz3fDPUoN3crsNCifKctI=; b=mFw1QnulXKtHwMeqJ36x/CQP7UOYa+CMrVvUctDELyB1e8/B1Nlq9LWQ7JSGUF0+Oz YkiLhgARY53CVU3AaGl3EOhkQWX3VDonqooPYPhiDZnb44M4rJQ92bmUzoLEh+hfQiHF 0xdQbi6Q2e8dr4FUGKJEJIk2qbVxLBlO+af9c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715235393; x=1715840193; h=in-reply-to: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=8s5ogdUt9IfEZlAdYuj7aMmz3fDPUoN3crsNCifKctI=; b=LA8A9JruTY7+HIH+jd863/vVVa4bVIQm3UKWOMBeZjDT249CMGJ0VPmv84hs5w1yWO YSBg1UeJEszAnYbm02eN+IR/2/ZQ+1o6Gt6oWK+2ZezwYNvjAT+g2Iw+tdJgNCD1jcC7 LDEx1H+XrEwTe0VK5Ywco7R0oMymfeMgOd6pAQQRPbuD0QTMKcavo89anNBhSn2pOjzO OWDRPtWPGbPmCAC+SKvWxwaHKL5aLBBrb3ujK2NSU0Tq+hzaIzSi5q4jOu39dA5NJ3dD 32OjVe1zQulGtXUx0Bl7h7G+ocS6FGzh+0hfFQDw9YnSWY6IylPfISnDoXx514/s+UIt HkSg== X-Forwarded-Encrypted: i=1; AJvYcCUF64y2HmUy2tN5795wR/FV/aWfqoFls1z0QE6JI8BY7WzPOSf091NqLsrFIA7hGQEpspeguBTBTUXeBB3WXpY00KYQPmjtcoygZYJk X-Gm-Message-State: AOJu0YxVu2++JOkSHplxMA8f+O8O3jpC1PLt2/ZfmqnfrZgJ/1QPIP6P IdXLAoJoxMQcKQWtmOHY35VQ50/z9k1kQpbsUcCdwqnBVVU/xJcOoCGhKZAqCw== X-Received: by 2002:a17:90a:ac03:b0:2b5:6d47:9e12 with SMTP id 98e67ed59e1d1-2b61639c8a6mr4341255a91.2.1715235393466; Wed, 08 May 2024 23:16:33 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b628ea6a83sm2490804a91.56.2024.05.08.23.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 23:16:32 -0700 (PDT) Date: Wed, 8 May 2024 23:16:32 -0700 From: Kees Cook To: John Hubbard Cc: "H . J . Lu" , Chris Kennelly , Eric Biederman , Shuah Khan , Muhammad Usama Anjum , Fangrui Song , Andrew Morton , Yang Yingliang , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Mike Rapoport , Rui Salvaterra , Victor Stinner , Jan Palus , Al Viro , Christian Brauner , Jan Kara , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 1/3] selftests/exec: Build both static and non-static load_address tests Message-ID: <202405082312.D922795@keescook> References: <20240508172848.work.131-kees@kernel.org> <20240508173149.677910-1-keescook@chromium.org> <1f6a2905-395d-4f81-9ee0-57c541fb2486@nvidia.com> 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: <1f6a2905-395d-4f81-9ee0-57c541fb2486@nvidia.com> On Wed, May 08, 2024 at 07:54:13PM -0700, John Hubbard wrote: > Didn't we learn recently, though, that -static-pie is gcc 8.1+, while the > kernel's minimum gcc version is 5? Yes, that's true. If we encounter anyone trying to build the selftests with <8.1 I think we'll have to add a compiler version test in the Makefile to exclude the static pie tests. There's also the potential issue with arm64 builds that caused the original attempt at -static. We'll likely need an exclusion there too. -- Kees Cook