]> git.baikalelectronics.ru Git - kernel.git/commit
fs: handle failed audit_log_start properly
authorSasha Levin <sasha.levin@oracle.com>
Thu, 4 Oct 2012 23:57:31 +0000 (19:57 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Oct 2012 03:33:37 +0000 (23:33 -0400)
commit911f605b6b38ecfbd2f871296f8b4ac033e7ca63
tree4020ac7f88154d5dd919fdf371472ea9153a656e
parente44e5cb5fb1cd3dac55175d4cc39d97d073b473b
fs: handle failed audit_log_start properly

audit_log_start() may return NULL, this is unchecked by the caller in
audit_log_link_denied() and could cause a NULL ptr deref.

Introduced by commit 93d59b63 ("fs: add link restriction audit reporting").

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/audit.c