]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: failing to allocate more ECB space can cause a crash
authorKris Van Hees <kris.van.hees@oracle.com>
Fri, 21 Jul 2017 02:51:44 +0000 (22:51 -0400)
committerTomas Jedlicka <tomas.jedlicka@oracle.com>
Thu, 14 Sep 2017 09:11:59 +0000 (11:11 +0200)
commit61877e691cc22462476fe529c9aeb70ecc7c6433
tree0d52a8cefa58254782b9554c0071732745fc109a
parentbc32b19051c6b4ea2cb0438b20d881301d52cc18
dtrace: failing to allocate more ECB space can cause a crash

The existing code was not taking into consideration that when the
table of ECBs needs to be expanded, the memory allocation can fail.
This could lead to a NULL pointer access, and a kernel crash.  We
now check the result of the allocation, and bail out if it fails.

Orabug: 26503342
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Tomas Jedlicka <tomas.jedlicka@oracle.com>
dtrace/dtrace_ecb.c