From: Paul Moore <paul@paul-moore.com>
To: sashiko-bot@kernel.org, audit@vger.kernel.org
Subject: Re: [PATCH v2 1/3] audit: compact name entries and context fields
Date: Mon, 16 Nov 2026 17:05:50 -0500 [thread overview]
Message-ID: <67f550346acfdbcd1679156103ab3a40@paul-moore.com> (raw)
In-Reply-To: <20261106150342.670199-1-cgoettsche@seltendoof.de>
On Nov 6, 2026 sashiko-bot@kernel.org wrote:
>
> Group the inode metadata and the small scalar fields of audit_names to
> remove padding, while keeping the pathname next to its length and the
> file capability revision next to the file capabilities. Store the
> per-name file capability revision in s16: it must represent both the
> eight-bit on-disk revision and the -1 AUDIT_INODE_NOEVAL sentinel. Keep
> the existing formatter and its unknown-capability output unchanged.
>
> Move name_count ahead of the embedded name slots to remove two alignment
> holes, and place personality before the task credential scalars.
> Preserve the first int dummy member required by audit_dummy_context(),
> all five embedded name slots, and the existing allocation and reference
> lifetimes.
>
> On x86_64 with SELinux this reduces audit_context from 928 to 880 bytes,
> leaving room for descriptor paths while staying below 1 KiB. On the tested
> arm64 configuration without property-bearing LSMs it falls to 872 bytes.
>
> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
> ---
> v2:
> - keep name next to name_len and fcap_ver next to fcap
> - move name_count below the names_list comment
> ---
> kernel/audit.h | 15 +++++++--------
> 1 file changed, 7 insertions(+), 8 deletions(-)
This is better, thanks. Merged into audit/dev.
--
paul-moore.com
prev parent reply other threads:[~2026-11-16 22:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 15:03 [PATCH v2 1/3] audit: compact name entries and context fields Christian Göttsche
2026-11-06 15:03 ` [PATCH v2 2/3] audit: return the collected entry from __audit_inode() Christian Göttsche
2026-11-06 15:07 ` sashiko-bot
2026-11-16 22:05 ` Paul Moore
2026-11-06 15:03 ` [PATCH v2 3/3] audit: retain file paths for descriptor PATH records Christian Göttsche
2026-11-06 15:12 ` sashiko-bot
2026-11-16 22:05 ` Paul Moore
2026-11-06 15:09 ` [PATCH v2 1/3] audit: compact name entries and context fields sashiko-bot
2026-11-16 22:05 ` Paul Moore [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67f550346acfdbcd1679156103ab3a40@paul-moore.com \
--to=paul@paul-moore.com \
--cc=audit@vger.kernel.org \
--cc=sashiko-bot@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.