]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: validate argument pointer to d_path()
authorKris Van Hees <kris.van.hees@oracle.com>
Tue, 23 Jun 2015 10:51:35 +0000 (06:51 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Tue, 21 Jul 2015 06:51:24 +0000 (02:51 -0400)
commit2a5a3c7b83d9596366ee5583784175f5867e05c4
treec31a8f89d6774cce1de8dda293f2561f9c5d11f7
parentcd253ece949a2684ea9708ac7ebc43578a642982
dtrace: validate argument pointer to d_path()

When an invalid pointer was being passed to d_path(), the system could
crash with an OOPS.  This was the result of the kernel implementation
(reasonably) expecting the pointer to be referencing a valid path
struct.  We now validate the argument passed to d_path() against the
paths for files known to the current task.

Orabug: 21304207

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
dtrace/NEWS
dtrace/dtrace-module.spec
dtrace/dtrace_dif.c