Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1265282rdb; Wed, 24 Jan 2024 09:33:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdS8Gq0cYiGtNqSAgZA8CbXMgPhYFAyuNJI9F3PxgmNo/VfgbVffDPTyuK6lu9fVxFOTQd X-Received: by 2002:a05:6870:7095:b0:210:c28b:3f5d with SMTP id v21-20020a056870709500b00210c28b3f5dmr3566056oae.98.1706117586388; Wed, 24 Jan 2024 09:33:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706117586; cv=pass; d=google.com; s=arc-20160816; b=VfJSJAHqpxtemuNj42x4uaEnyxkCzzKHu2ePFdFoaX5UoL/LSYm/VCAEZx76k1e+lF Uw66TofGCSAny4fWPd2EokzJJoJMMfvlO2VkCR/df8k1wXM5sE5gl+X1EBLSjdXGJ5vZ p63ao80vqiJGM5idEgDZJ1iJyurz5qZ4RjlT5S89sUKiLiN9bXhtA7hVkRrMn4Ahk2tS ITgqXt0zU5+XLutfQtf+ykpvBFZUUDIcn4CWofy4uyuUTLisZ6yFNGugNY7s2k+3V/uk NgqEDYftBgh/XmqQE8zPAK2Ffx8iqkAa6EpWvM75Hdbwes8xh7i40gbbiq5KH643RcUs v6/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=zTlbGsImqxn7RX+/XBkYgj6lDq/Avh2rTF8zOkCv5JM=; fh=vEyhGAtG8HQNiq2dPKrs1TN/cRLM9E83yUZb7T5qaTU=; b=qFuhOmRvhTlK78X685I+qWCWz1e6EdyoFhZMX3mv8cS3mPQlqo+JCAY05J12WpfjMZ jpEXFcvIJor6+BwLFjlym7BKXtQNzXvrcqR5g6erdVud4jfVk7camV2Iy2N3Jhx/mCpE y8N41S+9T3ACd5C1GsQqPGrCC36kri7jd8Gh/fpGAFZf78AsOGxVnDi+3HSrQnL/Rwfv eSRe7+oUM06YhugOTY1G5qrCaV20PQUZm57NZRrnf850QfIu+NIE9IOEq0dpCet5GLFq oxUqu73Vw8pWBNFiLkgGyQovHL0tJcuYWIZKUKpbZDBVtwH85HZeh4rCqNphxpBD60zV 4Awg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SvGXjCdW; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-37427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37427-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h1-20020a0cf201000000b0067efac3f6f5si10366786qvk.67.2024.01.24.09.33.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 09:33:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SvGXjCdW; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-37427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37427-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C561E1C245DB for ; Wed, 24 Jan 2024 17:30:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB0FF823CF; Wed, 24 Jan 2024 17:27:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="SvGXjCdW" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 230317E78A for ; Wed, 24 Jan 2024 17:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706117275; cv=none; b=IJ+GOrxkCso2rMnlOgxu677s4b+LKjx7AchZzMDYiFZuN1maUkdw2UJ70c2sfFYzaVit9fTiSYa1xZM5wbEAjEhOYxEDPZfgsGABRGV61lUKG3EUZPe+a7S+YkvDlDyzBu3q71K2tOO3B5YXVoTxT/doEnOIDMOmLYYfZCISq6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706117275; c=relaxed/simple; bh=z6BjyMQCnB/4rQCdDjotQhHRjXz7UoU01MQEf+XrLlI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gaBjE3Vt8QH++ftEbcKePo7Ip6T7tOrL2PCCcbWJPHOb+N8Pu/85TjDg+TLo5bYA4d6bsbjNs9VZ2vktsBaD8TADNUpPGk0+C7Aoy0O3zKwfTa4rO/tr2cwN2OT1fOQRbvIAS0/x5FvSdtQPqnaQAfITxyxuZby5lcebNGFpxrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=SvGXjCdW; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-55a3a875f7fso6330463a12.3 for ; Wed, 24 Jan 2024 09:27:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706117271; x=1706722071; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zTlbGsImqxn7RX+/XBkYgj6lDq/Avh2rTF8zOkCv5JM=; b=SvGXjCdWQ583KEVmiYYexUS3zEIYuWQ4wPEPRQhydsb2+08ONPZqteuABDBSVeB9aU dIQbevDGSW2O6AHiAezGooZEAgVzm8YuDTC7blChWGde0dRCM2EIc39b67mLjwXF+jMP IqFpwja29nj6xc50P9fJ5UiosHhGFgiUFQUgU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706117271; x=1706722071; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zTlbGsImqxn7RX+/XBkYgj6lDq/Avh2rTF8zOkCv5JM=; b=pUzBJLabnp7XBXstFXQlN9DYxDrbdgDZU8Qu/oUwqBs65O06MiJBvGBaVcmMIf3/gZ xQKoJPYsYLHBofIYEDPRvgpE3Y8QNOIP3bLsELgGDPCP1MBUdXiu1BoWRsP5H1VqzAUd zcfQHD5ja8i5MsJFFqd66FV1yg9tASD0jk8+QtEWDiQOdDyIbLEixpkoAu0NQ04buzek 7787YP+NkctSrb7zGk2urj5JL2+JlqrM0MZPeFdGO/caLU5PCenZPTtvj957FKTtYAC3 Q1zo4f0Zar3GdkaUskZOvtUUs/V/tOi14knQ5NfKYx/W6tbDjZwByfvGvKryD0C/ZKir yjmg== X-Gm-Message-State: AOJu0YyLb3wezI44I4p0KH0jAnt1IiwAfPb4KUOE799CAr9IGfhFdBnu oR53uIcMJKArxYLGCzZrnjVbUbLJyt8yLYGrYE/HaSXKgaWwWwiKGmCxGhbOMJroPVfBQmYhJ9B VIdd97A== X-Received: by 2002:a05:6402:2744:b0:55c:c851:4595 with SMTP id z4-20020a056402274400b0055cc8514595mr958226edd.42.1706117271124; Wed, 24 Jan 2024 09:27:51 -0800 (PST) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com. [209.85.208.47]) by smtp.gmail.com with ESMTPSA id p11-20020a056402500b00b005598ec568dbsm10620148eda.59.2024.01.24.09.27.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jan 2024 09:27:50 -0800 (PST) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-55c33773c0aso3624028a12.1 for ; Wed, 24 Jan 2024 09:27:50 -0800 (PST) X-Received: by 2002:a05:6402:34d4:b0:55c:7444:153f with SMTP id w20-20020a05640234d400b0055c7444153fmr2637292edc.60.1706117270433; Wed, 24 Jan 2024 09:27:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <202401240832.02940B1A@keescook> <202401240916.044E6A6A7A@keescook> In-Reply-To: <202401240916.044E6A6A7A@keescook> From: Linus Torvalds Date: Wed, 24 Jan 2024 09:27:34 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [6.8-rc1 Regression] Unable to exec apparmor_parser from virt-aa-helper To: Kees Cook Cc: Kevin Locke , John Johansen , Josh Triplett , Mateusz Guzik , Al Viro , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 24 Jan 2024 at 09:21, Kees Cook wrote: > > I opted to tie "current->in_execve" lifetime to bprm lifetime just to > have a clean boundary (i.e. strictly in alloc/free_bprm()). Honestly, the less uinnecessary churn that horrible flag causes, the better. IOW, I think the goal here should be "minimal fix" followed by "remove that horrendous thing". Linus