commit | bee348fab099b0f551caa874663e82a7f3bb64b3 | [log] [tgz] |
---|---|---|
author | Will Deacon <will@kernel.org> | Fri May 15 14:43:11 2020 +0100 |
committer | Will Deacon <will@kernel.org> | Mon May 18 17:47:33 2020 +0100 |
tree | db1a964bc311bc58ad1f6ad54831825977ce80c8 | |
parent | 51189c7a7ed1b4ed4493e27275d466ff60406d3a [diff] |
scs: Move accounting into alloc/free functions There's no need to perform the shadow stack page accounting independently of the lifetime of the underlying allocation, so call the accounting code from the {alloc,free}() functions and simplify the code in the process. Tested-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will@kernel.org>