summaryrefslogtreecommitdiff
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2022-02-09 14:49:38 -0500
committerPaul Moore <paul@paul-moore.com>2022-02-09 16:04:26 -0500
commit7a82f89de92aac5a244d3735b2bd162c1147620c (patch)
tree87ccbb01f4c5d75eac090a45840bfc64f39446ce /fs/cifs/connect.c
parentf26d04331360d42dbd6b58448bd98e4edbfbe1c5 (diff)
audit: don't deref the syscall args when checking the openat2 open_how::flags
As reported by Jeff, dereferencing the openat2 syscall argument in audit_match_perm() to obtain the open_how::flags can result in an oops/page-fault. This patch fixes this by using the open_how struct that we store in the audit_context with audit_openat2_how(). Independent of this patch, Richard Guy Briggs posted a similar patch to the audit mailing list roughly 40 minutes after this patch was posted. Cc: stable@vger.kernel.org Fixes: 1c30e3af8a79 ("audit: add support for the openat2 syscall") Reported-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'fs/cifs/connect.c')
0 files changed, 0 insertions, 0 deletions