commit | 4ece3125f21b1d42b84896c5646dbf0e878464e1 | [log] [tgz] |
---|---|---|
author | Sascha Hauer <s.hauer@pengutronix.de> | Tue Jul 02 10:00:41 2019 +0200 |
committer | Mimi Zohar <zohar@linux.ibm.com> | Mon Aug 05 18:40:28 2019 -0400 |
tree | e48c770e068bf33bc33a8835c496e22494667d5f | |
parent | f5e1040196dbfe14c77ce3dfe3b7b08d2d961e88 [diff] |
ima: fix freeing ongoing ahash_request integrity_kernel_read() can fail in which case we forward to call ahash_request_free() on a currently running request. We have to wait for its completion before we can free the request. This was observed by interrupting a "find / -type f -xdev -print0 | xargs -0 cat 1>/dev/null" with ctrl-c on an IMA enabled filesystem. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>