From mboxrd@z Thu Jan 1 00:00:00 1970 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 14FBD148FF9 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="mFw1Qnul" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2b6208c88dcso444594a91.3 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=JIt0MzVVb5XrQIFj7oU9JmLVPZcxPQ48sexxRf+oLfTV07Ewrk7Y5Zpa2oQ6OzXcyN vd/KV4dtssKraWleRMr0S0/n9+mBn9Lnb+atCnjT7+KMy8DWvdcmuPTXNZs9GhpfEuKf MqN9BYSxfOVvks5GD0L2Ai28bQ8ymRZ/+4F/vzm6YdBHN3VquMspE/FknAU5drMY2fHy 5zDjzlQJmmlnw1iXG3uinH4TCmFfQNx+LtryNXWYnPPkDGNFcjYZWRZ0cKCGPPrYUtft qVQ878Vy7AaHkJwcakZ2yrIgiyBOMbSNQXVGUYtQOv2ufwmI5SlYm4Zkvh/u5/rWLOMn Q1YA== X-Forwarded-Encrypted: i=1; AJvYcCWBKmXAKZlhL1t4qr2XHztR+HMyNJcURDXRCA2Zx+ZUm+G1MoDQ0kOfAHaVSIjzuq6GyKFGvNLbrhOSEZREtNjBgw6oXBjPNQk3pe4ZnpuE X-Gm-Message-State: AOJu0YwW8JoO4cRuxL5UIBuoNo6jJ+iWkP7dgQrO+17QEGoNOiWJchmt xPCE5Lv56y8DKOYNrAF878griwtM+cnCwuSpzZU1Aoq3zLPRpFRathoxc4okLA== X-Google-Smtp-Source: AGHT+IFqzikMESBMZG+WVvk+WptHcSgh5kqTqoDaOrL0B6tQBKEyulj/ZA+fDWbKAGEbWorXR4unvw== 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-kselftest@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