Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1227445rdb; Wed, 24 Jan 2024 08:27:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5AEYf8a4Em1vA00R669GQZPD9wu6ZOc+uUFGb5sSAuiMIWKJDfdVWQEuLaMxKKAmaediZ X-Received: by 2002:a17:906:830a:b0:a2d:5f58:e7cd with SMTP id j10-20020a170906830a00b00a2d5f58e7cdmr563088ejx.105.1706113670896; Wed, 24 Jan 2024 08:27:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706113670; cv=pass; d=google.com; s=arc-20160816; b=KA86BMGGjI1dXkipea61pl6IHYnBW2Hu0+Bk9VnJtsTsLOKm6z0SPZWNCa96NUipy7 PotsEmN8SJ09K5mBTL54Y4t8fvMgU30Cs/efwrCCv80GXNuVqYhtCYLXP1aNiyGKBQz1 El1x+Q5ztEtkd4gDMCbyYvAwj8WbCZvcbTpAYkG2VmyPIrjzL1eH10rQ8epbtE5SwF1m nTDFDBrzKFTn8EwwSFTFUSE2KrH5sMiweQXF9per/1UVttJhSUyVxwgNaSQqbnerDxUk 8DSpeyQQjlZ+OniPMEX/MNOQ14RLrXRTmK8AdQJpjFKzDrW0uFB9j3Z0dHq7v4jIfYyC 76Dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:mail-followup-to:message-id:subject:cc:to:from :date; bh=ZzUwFOqR8+psx1k9fqDaIkhnszhYWIrDLPAD594rUrk=; fh=+rraf+TsSzFFfArQtG1yea+aVkYafe4MpMA+FeaqFY4=; b=v4+VTQiiJ+FUGlIlFgM5/jqXOajLx2nuuMTO+3IDXehR41Arx8E/TbLGdr4CpTVoNO xKnEeHy+Z/ssZOgeE84C6veJsfxoysomnGLreCYuDi/71orB8DnlHR14aLa25+6DKsJ2 RNTNWWcy2YU2zn/bVpirf0Hq0N84CJh774958Kq2cbu3L/Nzq284YLlUxjWlzzOaxEN9 5nMChHxGukltDKNfoO8UXoMcT/oxJtvFfbTZi79GwXJkDr/rbQO6JbezzYFVgOMFLGP+ TDUBRrHA7UoQ9+qfOGt+Mv3o2Yp3JF/gIOm0PH4W5iVCXV6GOP810l3A9Pwc38JZiN2K 2QhA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kevinlocke.name dmarc=pass fromdomain=kevinlocke.name); spf=pass (google.com: domain of linux-kernel+bounces-37332-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kevinlocke.name Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hb26-20020a170906b89a00b00a2af8d78a90si36452ejb.1033.2024.01.24.08.27.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 08:27:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37332-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; arc=pass (i=1 spf=pass spfdomain=kevinlocke.name dmarc=pass fromdomain=kevinlocke.name); spf=pass (google.com: domain of linux-kernel+bounces-37332-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kevinlocke.name 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 A44551F24B5B for ; Wed, 24 Jan 2024 16:27:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B8417CF3A; Wed, 24 Jan 2024 16:27:39 +0000 (UTC) Received: from vulcan.kevinlocke.name (vulcan.kevinlocke.name [107.191.43.88]) (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 2FCBC7C0AE; Wed, 24 Jan 2024 16:27:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=107.191.43.88 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706113658; cv=none; b=dcFlugMRhTeBW1MBC45ggdBRwP6KnvoTuE86aCDXVIc2gYE6sL8sDOXAl3RCLiWxV1p4mn2MzESm44TQLlT1IAF5UApj8SvOesRqSUpJuxHEphAZfG8vGmluKWT+nelZIj77dkgXlFLwFtrO9QlXjDxX/gtegHyg9GnxnWWje0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706113658; c=relaxed/simple; bh=8IXyuu4tjLj5dpYsQhlmFqln1I9NrNe8kqylwjs7rtA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=NTtU326ISKJJfiwvUOGF34ZnX5rQ4TnICWupvOFkHri5OVWcggO0HUtp0YVfyw1huC0fQV29q5gSHqX2FlKMp4s7kf6xzDEMwsxpTSHR8TTAShKj2NbYufmbdLiXdPTy7oqcbu868jaR9Gax5kSAvLlAiqedX6UeUvhXYGQjn48= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kevinlocke.name; spf=pass smtp.mailfrom=kevinlocke.name; arc=none smtp.client-ip=107.191.43.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kevinlocke.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kevinlocke.name Received: from kevinolos.kevinlocke.name (071-015-195-251.res.spectrum.com [71.15.195.251]) (Authenticated sender: kevin@kevinlocke.name) by vulcan.kevinlocke.name (Postfix) with ESMTPSA id 8873D41435DA; Wed, 24 Jan 2024 16:19:56 +0000 (UTC) Received: by kevinolos.kevinlocke.name (Postfix, from userid 1000) id 1387213005B0; Wed, 24 Jan 2024 09:19:54 -0700 (MST) Date: Wed, 24 Jan 2024 09:19:54 -0700 From: Kevin Locke To: Linus Torvalds , Josh Triplett , Kees Cook , Mateusz Guzik , Al Viro Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [6.8-rc1 Regression] Unable to exec apparmor_parser from virt-aa-helper Message-ID: Mail-Followup-To: Kevin Locke , Linus Torvalds , Josh Triplett , Kees Cook , Mateusz Guzik , Al Viro , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org 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 Hello Linux developers, Using AppArmor 3.0.12 and libvirt 10.0.0 (from Debian packages) with Linux 6.8-rc1 (unpatched), I'm unable to start KVM domains due to AppArmor errors. Everything works fine on Linux 6.7. After attempting to start a domain, syslog contains: libvirtd[38705]: internal error: Child process (LIBVIRT_LOG_OUTPUTS=3:stderr /usr/lib/libvirt/virt-aa-helper -c -u libvirt-4fad83ef-4285-4cf5-953c-5c13d943c1fb) unexpected exit status 1: virt-aa-helper: error: apparmor_parser exited with error libvirtd[38705]: internal error: cannot load AppArmor profile 'libvirt-4fad83ef-4285-4cf5-953c-5c13d943c1fb' dmesg contains the additional message: audit: type=1400 audit(1706112657.438:74): apparmor="DENIED" operation="open" class="file" profile="virt-aa-helper" name="/usr/sbin/apparmor_parser" pid=6333 comm="virt-aa-helper" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 The libvirt-$GUID file is not created in /etc/apparmor.d/libvirt and apparmor_parser is not executed as far as I can tell. I've bisected the regression to 978ffcbf00d82b03b79e64b5c8249589b50e7463. Perhaps the change in this commit causes AppArmor to deny opening /usr/sbin/apparmor_parser in preparation for exec? For reference, /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper contains: /{usr/,}sbin/apparmor_parser Ux, I'd appreciate any help debugging the issue further. Let me know if I should take it up with the AppArmor or libvirt developers to better understand the issue. Thanks, Kevin