]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
audit: widen ino fields to u64
authorJeff Layton <jlayton@kernel.org>
Wed, 4 Mar 2026 15:32:32 +0000 (10:32 -0500)
committerChristian Brauner <brauner@kernel.org>
Fri, 6 Mar 2026 13:31:26 +0000 (14:31 +0100)
commit125dfa218134df7cc112667e92984de9d8cd0bf6
tree4c3fb6fbb1206c591bc2f747610281d7f9602da0
parent96fefcabf340fcf8b3208dcd8685961955a66040
audit: widen ino fields to u64

inode->i_ino is being widened from unsigned long to u64. The audit
subsystem uses unsigned long ino in struct fields, function parameters,
and local variables that store inode numbers from arbitrary filesystems.
On 32-bit platforms this truncates inode numbers that exceed 32 bits,
which will cause incorrect audit log entries and broken watch/mark
comparisons.

Widen all audit ino fields, parameters, and locals to u64, and update
the inode format string from %lu to %llu to match.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260304-iino-u64-v3-2-2257ad83d372@kernel.org
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/audit.h
kernel/audit.h
kernel/audit_fsnotify.c
kernel/audit_watch.c
kernel/auditsc.c