audit: backport kernel audit enhancements and fixes up to upstream v6.10
JIRA: https://issues.redhat.com/browse/RHEL-35421
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=62377223
Backport selected trivial fixes, cleanups, and enhancements from upstream up to
version 6.10. This will help make Audit functionality more stable, bring useful
enhancements/fixes downstream, and ease future backports.
Selected upstream commits:
[cleanup] 97f576eb38ae audit: Annotate struct audit_chunk with __counted_by
[bug fix] 03adc61edad4 audit,io_uring: io_uring openat triggers audit reference count underflow
[cleanup] 3104d0e94f71 audit: remove unnecessary assignment in audit_dupe_lsm_field()
[cleanup] aa13b709084a audit: use KMEM_CACHE() instead of kmem_cache_create()
In addition, the upstream commit ea47ab111669 ("putname(): IS_ERR_OR_NULL() is wrong here") was
added to the list as a dependency.
Ricardo Robaina (5):
putname(): IS_ERR_OR_NULL() is wrong here
audit: Annotate struct audit_chunk with __counted_by
audit,io_uring: io_uring openat triggers audit reference count underflow
audit: remove unnecessary assignment in audit_dupe_lsm_field()
audit: use KMEM_CACHE() instead of kmem_cache_create()
fs/namei.c | 11 ++++++-----
include/linux/fs.h | 2 +-
kernel/audit.c | 4 +---
kernel/audit_tree.c | 2 +-
kernel/auditfilter.c | 2 +-
kernel/auditsc.c | 8 ++++----
6 files changed, 14 insertions(+), 15 deletions(-)
Signed-off-by: Ricardo Robaina rrobaina@redhat.com