Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2496534rdb; Mon, 5 Feb 2024 08:16:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbNNw+xtlSDjXDRFfXhO3gubPn4OjpzJ8q5yGnmY4KDxccL/f+1s/g/cCkF7389v7S6D8p X-Received: by 2002:a05:6359:c86:b0:176:5d73:34ef with SMTP id go6-20020a0563590c8600b001765d7334efmr304007rwb.24.1707149765775; Mon, 05 Feb 2024 08:16:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707149765; cv=pass; d=google.com; s=arc-20160816; b=SW4ZnbrvQFHVaL7xm1NchnDyqx9UchKuaNg1Ut7UR5ZG4tFFYs2VT19YVCvhRWzDnn K9c2jLgG5jAjEyCdsRPOhgV3ulVaRXRXlLloYpXwcmdGV43okngSanxCoWhIS0jOYB4K zLRwXFEBRJA+KXqawFEqF/vH6I7NaCg79vyRNZ8U9xbHkXD3VnloDn7nt7Cb7n0OMpgC yis6iCqKG7eElAys92YGPOKO9Xk9ucUgVHw8szrSKcd2XT5mSObdQaCXbITLXaI81Abk xKeJh0gChZQCZYs0nUpA3ZXpqXx32awnoG+iokgKxfHzJz1i3M53osNxEy8303ACYh+k Klow== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kosTlKckLwBkGwRZXFmlE0YMNTJwV5fsSDM4SiElA7o=; fh=FNnGSNgQCk9SQZBSvlTXdARMHoJ0MQpHliTz0DRTO1Q=; b=a/K7DxGnstjK06IuOATPkfjGwqv/raOIDC28Li1/hDhCgUd2El/goxM4fGa4toSpwg DIc75LB1YHY7YGf4nJrTclUYHfoF9YCJ7iz5sbjOcS1LE1Lsud0lTws6BtM9p3wgidGn HfwPLcUFZ141V/Lw1HR3tOorR4Is3FBeQnBNdtAuzZ0T5pT16LDXISdje2LHvH6wbeQp SgWOUyguSAxqqwjp6S2dLyIimtGhe3MK7Jq/EYNyrdmk9RchkSiib8e3FysNTGyAo5Oo TM58D2EKF8Y2ntoypoGrL1VDXj/xhOwKngUXZexc/MdgV5W7VgaT1WJ2PJucYqCRFao3 SZqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AihtT1nR; 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-52997-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=1; AJvYcCXMWl2+0ybGsQEAWWEYYOlBhqdAuGiWZZu5G6H9+F7IM6fZfM9D7xYqhkby7AOpr1uiqaMPFE9XRSYsBBSKHjfVkVktWDVg8j8Mm2HOuw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k24-20020a635a58000000b005d8b8f81dd2si86699pgm.700.2024.02.05.08.16.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:16:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52997-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AihtT1nR; 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-52997-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52997-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6A743282BBE for ; Mon, 5 Feb 2024 16:16:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0DE639FFA; Mon, 5 Feb 2024 16:15:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="AihtT1nR" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 743A73CF65 for ; Mon, 5 Feb 2024 16:15:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707149753; cv=none; b=WBaX6zgX/lKYHIC69NpGJ9qZcZqjGsHNEOzuqempKVM7H5a9L7eT8Nk+W4It6ncLOtxLRNj6KjdRrApAprOFMYNvjq/25cmW/uKdPD0aW42KKELFMp+17OId4r3MqiD3Gv5retC2qxXZmxEceIdXawbziA3o+TBX4niuo1RTlBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707149753; c=relaxed/simple; bh=QNZdJgtA0DvZ58oCoyunZk+TF/2wguhOSw1ImGIEIfs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=RCbfEB27hDleyTAIBks/bTJpWaWDeMsuq26DIbyQmlp+14HuqiYHBekNaZrIJXFf+1gpMEFwMGNxTHwZhJ24a1W4hqewhEMiGSBNik5MN+wfFA4RkfhtXTB7vD8tRRX83jJvucmmlODCD6eT+fX9H6NvXI80MK5MOfMwKbAWnts= 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=AihtT1nR; arc=none smtp.client-ip=209.85.214.173 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-pl1-f173.google.com with SMTP id d9443c01a7336-1d911c2103aso25068585ad.0 for ; Mon, 05 Feb 2024 08:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707149742; x=1707754542; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kosTlKckLwBkGwRZXFmlE0YMNTJwV5fsSDM4SiElA7o=; b=AihtT1nRzY9Q1LXp/euhQFTBVR4LdWCjLavZt+zVepRFYIwS+2BA2hNT1AhWJ0hcXf i473PED9Q1Wzy5idI3fTwCtIT2BRjw4XhLnxfA7BLHyBFz80vJn7iY7YadjG1ctCjevo olaudYz5l29utYAY8CsHaT33poQ2wsKbpsFXQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707149742; x=1707754542; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kosTlKckLwBkGwRZXFmlE0YMNTJwV5fsSDM4SiElA7o=; b=KLiq0HxqvABm+yG/COyBWNCnWehtJfW6CrBLvgtj3zZ9TP5Ih/OFNBpzJ0odGYx/uv +IXGbgbUGaLG43/pB6jeLr+NZ+nlS4fv+V3lsjUcqDX9z7UwXdVcfLbHGQ7kNT0GPF4u cdtn+zKUknFqNEUFtCayFSO7AabGEWp0GMl7Gxg49V1AMnfHxCKl03D60aP4fgoijmsi SCOyoxE1bVAiQ4wRA8QZ5MPQSGf2apvz6qP1hYheOX97w8x2+mHXLECIzmfP3Qhrw7wJ F5SoFuzl7sOqwhdWvjjMyxNmFkPxYhhzuWNWKhMYwcrHDeUexhYjmbXhJHoOF/mSubNc 92Zg== X-Gm-Message-State: AOJu0YyCTu2KbQND6Errlt6WfDrANf54S0XEJEMtx93eymj++KNk9iHv SGDG/lbQ75LD3460D0RIUYoiX+ZqvO25TwwelwAPWeIk85iSEd0ZRhUdIR+a5g== X-Received: by 2002:a17:903:32d1:b0:1d9:bf07:7e64 with SMTP id i17-20020a17090332d100b001d9bf077e64mr3001403plr.59.1707149742484; Mon, 05 Feb 2024 08:15:42 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUZBH5UjE+mTjIIU5//tNnFvU3qQhXdjyCTImS88gCJwr/FJwF/CKHGfSNWMH7KQmk42EpOA9ui/dhcWDd7fe5MRT/AULYUTLop/3lX6ohd6vgaKrNknnQ/HtJ2oJsNXGAdFDsqU5GV5fCO8HXBYdnNtO7mojtbXf8Y/4RMpFz9nVxkYdzzivHdJHWXhPgmWyarxT2CqOUzyg/hCEtojh+Qh2Bs4APvFk5/QaboerXG3nXT3kRpIfQuDu1DVpEEIyiuBoiFQqbTaqRezBAff+DllGLpvX/JItWwQKjC67uAi+ZVNthikw7P+lVIPpGQ9SBnahmG6rA= Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id l13-20020a170902eb0d00b001d5d736d1b2sm38326plb.261.2024.02.05.08.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:15:41 -0800 (PST) From: Kees Cook To: linux-kernel@vger.kernel.org, Max Filippov Cc: Kees Cook , Chris Zankel , Alexander Viro , Christian Brauner , Eric Biederman , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Greg Ungerer , Geert Uytterhoeven Subject: Re: [PATCH] fs: binfmt_elf_efpic: don't use missing interpreter's properties Date: Mon, 5 Feb 2024 08:15:31 -0800 Message-Id: <170714972859.1382644.2755936263342477379.b4-ty@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240118150637.660461-1-jcmvbkbc@gmail.com> References: <20240118150637.660461-1-jcmvbkbc@gmail.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="utf-8" Content-Transfer-Encoding: 8bit On Thu, 18 Jan 2024 07:06:37 -0800, Max Filippov wrote: > Static FDPIC executable may get an executable stack even when it has > non-executable GNU_STACK segment. This happens when STACK segment has rw > permissions, but does not specify stack size. In that case FDPIC loader > uses permissions of the interpreter's stack, and for static executables > with no interpreter it results in choosing the arch-default permissions > for the stack. > > [...] Applied to for-next/execve, thanks! [1/1] fs: binfmt_elf_efpic: don't use missing interpreter's properties https://git.kernel.org/kees/c/15fd1dc3dadb Take care, -- Kees Cook