From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DA8638C2C6 for ; Wed, 24 Jun 2026 07:52:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782287550; cv=none; b=NwopO7vZxYhvOk+4XZbFAuYEbLSzNK/Tsh5RsaUO1LM0G6WuOnax+dCwOrkezob+Ma3IodkWC9ecbmeYkiU/zB0zMPLfEglGkI/ZFbjeXOcrr1DXVx8VdE8nFmg0O6hVD/DcmFgZ755z9NtT1W8ntfD5t2PRC+ZLfHIC4Is8Bvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782287550; c=relaxed/simple; bh=BNHbIhI8fYlY3Gz/ljttwoab9P6cOHHKthP5tZ7A4Qk=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:Content-Type; b=YILwzbTiQW6UYLhNHVpFhQrMXd6iRRI/fPkRqz0zxvaWwqONXHREG+IFmfdREK+NpsmcWUrJEBuBGrIoUEM5bUi+vrPL/VWnyZGTl9HFltWE+E78oLPIwIguP4nrgV1XeDLAV8yLmYySC8s2Dtjg8eqNvA9OR8G0uy9+xgvjmuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com header.b=huvVevHj; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com header.b="huvVevHj" Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 9D66B3F60C for ; Wed, 24 Jun 2026 07:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20251003; t=1782287540; bh=zyuDThvFKNA9hKZ6doSi/S2ledcLIeUnidYZypZ8L6g=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:Content-Type; b=huvVevHjaaYDXX1KsksMN+aaDH38fmT/GMgusjAkokzP0qyWDUQxSwpa7h7bA+U4h BQ3LqHgsMupSdbpjfk+Ivo2ObUohWb52Zmk9BZ1qikHaC6LzGboP+FtJ2rrgPLavhb ZgyQGCDuDZr792U/hRDoUyzzfeslE89bFw8dftBX4pqoemzpVnIGrfZLW+DISsJiyS 7EvjIzmElXKgwU3jZt5KjkF6DguCHgIjNuuoBvijpSKTS3NIMxHM9rEetd3EKjVv34 LBmSp2P6Y9FnBRh0rrJFlgpANetE+PyVop8vPvz3G9RwPq9gzbV4cs7e9BxX7ET1IG A3vAjn6pd58GKqJc+Doj5c0XZVc+xFgjtBuQfZuclLOIYfGXp+3rh+RGvmFmNgrZi6 f1k1R+w3WOkEeU1hDx/nqNEV4M0Vv1qGNVirG4lMm+VZN7uMRZM8s9/qBH3NcYsC8N Y++REVgok1eAqtZdgTUtyTCJoRDQWJteDuuCFcKuYj2P/RG0JHr+baeFzzW7nvd0kI scTqXM7Na/lY9wziaAUQ+9YeYPurpgq5O+VtAPus8fYz5jTWjEDCWY0Br1HzwjDbAM kHdmSkidbnH5p7LKgP4NZLaRpTfSNi82CQSdcAudBh0pTC47RMireqYt5o2YyFHf/P HHOd0z3N/0jFpFnULURog7hI= Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-84256bee9a9so653025b3a.1 for ; Wed, 24 Jun 2026 00:52:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782287539; x=1782892339; h=content-transfer-encoding:organization:autocrypt:content-language :cc:to:subject:from:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zyuDThvFKNA9hKZ6doSi/S2ledcLIeUnidYZypZ8L6g=; b=btQx17mEoW/coZ2eA0+HYzqRpO9LPAgS3UEDJAVWIhvLFA1RoEWtqN6nrsg2yezbdb T/fVSHQfUy5+EKIV0q8EBymmBIU0evI0kQ60LoNjjdJ7p/51tc6je0wVVAAMi6kEXSJa bpTsL9R/LFVg/4s3QjSQL3wHoe/SYw03HWx3m3mlCo0oMHk8xH8KT4Wd6v/0BojsYKwb 8OJJLakNhciRGxvWLAWm/EKJS/dqE4hyfCpcb/Rg/V5of5WGFnGzsawx3VDrUsp9HNJF WWWJ2JvLbJZMR91XD1AEPyR8ASGD7QgiMGnLaUSNYqUls0xGAVIUw+mtdItpL191jt6e TFYw== X-Gm-Message-State: AOJu0YwHxMXFe9DDFhSVIotp81Sn1l0Td2bBuRIi6KnYgqY+EzIwy/qd XFvBTWzrW/tAoOYAZP4wxf653VtxIhrvbQufW8lf7X+zk2WQgpp1r6L8NeV9LSCiI/eZcrtIk8m kUhNgOaeDrE8gzjVK6pDOTnlz+t8Nto6SWBXlCr2SHnwmkWitANzjBU8fO7jTRGP7eSUUD3zbhh SHOQDbe0A85hvSjQ== X-Gm-Gg: AfdE7clG0ZPjZLs1gHCG74i6p8zjau77Pi9iwWrkqN0utyDMBJex81hM7+rxAjwVFbm igOQZwsg+jypl4pr9p0A9LwBoJF5XQ+jbMGd9bTyr465kO9TmC+dTm4KCfdBItzlUX8YrZbi6RF /VN8KQmHsPO/wtJPmxgwYewV5YSQ4S57ar5m6u/U3Kvo2x+SX2TvbGp6Mi7crFqtmzbLQ26mGJS 8XT6tyOBQuz4ZeVU+k8rvDlagoio8rx2vlayzvA4AcKqUZKo7O13KDNXIyZJF98FqV6dhgOW+jx eVt5UEp5VYW8h87ShqUcfkeEqY15i7hdzArxvnrmzNd/ODmR0LOimMea/9JKOA7WXEaJeIimZBh K2Tqx45ZTFYwfeH3VYnq+a1XLNA== X-Received: by 2002:a05:6a00:4105:b0:842:74e3:48a9 with SMTP id d2e1a72fcca58-845a26f7998mr3045735b3a.12.1782287539188; Wed, 24 Jun 2026 00:52:19 -0700 (PDT) X-Received: by 2002:a05:6a00:4105:b0:842:74e3:48a9 with SMTP id d2e1a72fcca58-845a26f7998mr3045710b3a.12.1782287538784; Wed, 24 Jun 2026 00:52:18 -0700 (PDT) Received: from [192.168.192.71] ([50.47.147.90]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-845a41474cfsm1361545b3a.61.2026.06.24.00.52.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jun 2026 00:52:17 -0700 (PDT) Message-ID: Date: Wed, 24 Jun 2026 00:52:16 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: John Johansen Subject: [GIT PULL] AppArmor updates for 7.2-rc1 To: Linus Torvalds Cc: LKLM , "open list:SECURITY SUBSYSTEM" , Georgia Garcia Content-Language: en-US Autocrypt: addr=john.johansen@canonical.com; keydata= xsFNBE5mrPoBEADAk19PsgVgBKkImmR2isPQ6o7KJhTTKjJdwVbkWSnNn+o6Up5knKP1f49E BQlceWg1yp/NwbR8ad+eSEO/uma/K+PqWvBptKC9SWD97FG4uB4/caomLEU97sLQMtnvGWdx rxVRGM4anzWYMgzz5TZmIiVTZ43Ou5VpaS1Vz1ZSxP3h/xKNZr/TcW5WQai8u3PWVnb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JzPEEyujduesuGy a+O6dNgi+ywFm0HhpUmO4sgs9SWeEWprt9tWrRlCNuJX+u3aMEQ12b2lslnoaOelghwBs8IJ r998vj9JBFJgdeiEaKJLjLmMFOYrmW197As7DTZ+R7Ef4gkWusYFcNKDqfZKDGef740Xfh9d yb2mJrDeYqwgKb7SF02Hhp8ZnohZXw8ba16ihUOnh1iKH77Ff9dLzMEJzU73DifOU/aArOWp JZuGJamJ9EkEVrha0B4lN1dh3fuP8EjhFZaGfLDtoA80aPffK0Yc1R/pGjb+O2Pi0XXL9AVe qMkb/AaOl21F9u1SOosciy98800mr/3nynvid0AKJ2VZIfOP46nboqlsWebA07SmyJSyeG8c XA87+8BuXdGxHn7RGj6G+zZwSZC6/2v9sOUJ+nOna3dwr6uHFSqKw7HwNl/PUGeRqgJEVu++ +T7sv9+iY+e0Y+SolyJgTxMYeRnDWE6S77g6gzYYHmcQOWP7ZMX+MtD4SKlf0+Q8li/F9GUL p0rw8op9f0p1+YAhyAd+dXWNKf7zIfZ2ME+0qKpbQnr1oizLHuJX/Telo8KMmHter28DPJ03 lT9Q Organization: Canonical Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Linus, This is another round of bug fixing and some code cleanups, there are no new features. I ended up pulling in a few bug fixes late, and gave them some extra time to bake. The biggest thing to note is Georgia is being added to help co-maintain apparmor. Everything has been merge, build, and regression tested against your tree for Monday June 22. thanks - john The following changes since commit 254f49634ee16a731174d2ae34bc50bd5f45e731: Linux 7.1-rc1 (2026-04-26 14:19:00 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor tags/apparmor-pr-2026-06-22 for you to fetch changes up to 2f6701a5ce6257ae7a64ddc6d89d0a08d2a034f8: apparmor: advertise the tcp fast open fix is applied (2026-06-23 22:15:15 -0700) ---------------------------------------------------------------- * add Georgia Garcia as co-maintainer of apparmor * Cleanups - replace get_zeroed_page() with kzalloc() - remove unnecessary goto and associated label - change fn_label_build() to return err on failure instead of NULL or err - free rawdata as soon as possible - use explicit instead of implicit flex array in rawdata_f_data - use __label_make_stale in __aa_proxy_redirect - return correct error by propagate -ENOMEM correctly in unpack_table - aa_label_alloc use aa_label_free on alloc failure - add a conditional version of get_newest_label * Bug Fixes - mediate the implicit connect of TCP fast open sendmsg - fix C23ism of label immediately before a declaration - fix kernel-doc warnings - fix spelling mistakes - fix use-after-free in rawdata dedup loop - Fix inverted comparison in cache_hold_inc() - fix uninitialized pointer passed to audit_log_untrustedstring() - don't audit files pointing to aa_null.dentry - put secmark label after secid lookup - fix aa_getprocattr free procattr leak on format failure - release exe file resources on path failure - fail policy unpack on accept2 allocation failure - Fix return in ns_mkdir_op - remove or add symlinks to rawdata according to export_binary - fix NULL pointer dereference in unpack_pdb - fix potential UAF in aa_replace_profiles - grab ns lock and refresh when looking up changehat child profiles - enable differential encoding - check label build before no_new_privs test - conditionally compile get_loaddata_common_ref() - fix unix socket mediation cache update, and leak ---------------------------------------------------------------- Andrew Morton (1): security/apparmor/apparmorfs.c: conditionally compile get_loaddata_common_ref() Bryam Vargas (1): apparmor: mediate the implicit connect of TCP fast open sendmsg Eduardo Vasconcelos (1): apparmor: Fix inverted comparison in cache_hold_inc() Georgia Garcia (3): apparmor: fix NULL pointer dereference in unpack_pdb apparmor: remove or add symlinks to rawdata according to export_binary apparmor: don't audit files pointing to aa_null.dentry Hongling Zeng (1): apparmor: Fix return in ns_mkdir_op John Johansen (13): apparmor: add Georgia Garcia as co-maintainer of apparmor apparmor: fix shadowing of plabel that prevents cache from being updated apparmor: fix race in unix socket mediation when peer_path is used apparmor: fix refcount leak when updating the sk_ctx apparmor: add a conditional version of get_newest_label apparmor: enable differential encoding apparmor: fix rawdata_f_data implicit flex array apparmor: free rawdata as soon as possible apparmor: change fn_label_build() call to not return NULL apparmor: make fn_label_build() capable of handling not supported apparmor: remove unnecessary goto and associated label apparmor: fix label can not be immediately before a declaration apparmor: advertise the tcp fast open fix is applied Maciek Borzecki (1): apparmor: fix uninitialised pointer passed to audit_log_untrustedstring() Maxime Bélair (2): apparmor: propagate -ENOMEM correctly in unpack_table apparmor: fix potential UAF in aa_replace_profiles Mike Rapoport (Microsoft) (1): apparmor: replace get_zeroed_page() with kzalloc() Qingshuang Fu (1): security: apparmor: fix two spelling mistakes Rodrigo Zaiden (1): apparmor: fix kernel-doc warnings Ruoyu Wang (1): apparmor: check label build before no_new_privs test Ruslan Valiyev (1): apparmor: fix use-after-free in rawdata dedup loop Ryan Lee (2): apparmor: use __label_make_stale in __aa_proxy_redirect apparmor: grab ns lock and refresh when looking up changehat child profiles Zygmunt Krynicki (5): apparmor: aa_label_alloc use aa_label_free on alloc failure apparmor: fail policy unpack on accept2 allocation failure apparmor: release exe file resources on path failure apparmor: aa_getprocattr free procattr leak on format failure apparmor: put secmark label after secid lookup MAINTAINERS | 1 + security/apparmor/af_unix.c | 73 +++++++++--------- security/apparmor/apparmorfs.c | 119 ++++++++++++++++++++++-------- security/apparmor/domain.c | 97 ++++++++++++++++-------- security/apparmor/file.c | 12 +-- security/apparmor/include/apparmorfs.h | 12 +++ security/apparmor/include/label.h | 32 ++++++++ security/apparmor/include/lib.h | 21 +++--- security/apparmor/include/policy_unpack.h | 21 +++++- security/apparmor/label.c | 26 +++---- security/apparmor/lsm.c | 20 ++++- security/apparmor/match.c | 22 +++--- security/apparmor/mount.c | 17 ++--- security/apparmor/net.c | 3 + security/apparmor/policy.c | 35 ++++++++- security/apparmor/policy_unpack.c | 6 +- security/apparmor/procattr.c | 2 + security/apparmor/task.c | 2 +- 18 files changed, 368 insertions(+), 153 deletions(-)