Re: [PATCH] lsm: update the BUILD_BUG_ON() in audit_log_lsm_data()
Paul Moore <[email protected]>
| Newsgroups | gmane.linux.kernel.lsm |
|---|---|
| Message-ID | <CAHC9VhRRgLifObY4Adgxe4FBmXn-wbxYmx6unMXtmdTtbWYMog@mail.gmail.com> |
On Thu, Aug 13, 2026 at 2:08 PM Paul Moore <[email protected]> wrote: > > On 32-bit systems the newly added namespace fields in the > common_audit_data struct exceed the BUILD_BUG_ON(sizeof(void *) * 2) > size check in audit_log_lsm_data(). Convert the size check to two > u64 types to both fit the new fields and move to a size that is not > architecture dependent. > > Fixes: bb20ca26f960 ("lsm: add LSM_AUDIT_DATA_NS for namespace audit records") > Reported-by: kernel test robot <[email protected]> > Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ > Signed-off-by: Paul Moore <[email protected]> > --- > security/lsm_audit.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I'm applying this to lsm/dev-staging to fix the kernel test robot build failure, but as this is just the dev-staging branch, please feel free to comment on how this is a stupid patch, ACK, review, etc. as you see fit. -- paul-moore.com