diff options
| author | Kees Cook <[email protected]> | 2017-07-12 14:35:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-07-12 16:26:01 -0700 |
| commit | 101ede01dfd5072651965e974bc6e30c8d0748e2 (patch) | |
| tree | de85b9884a50812354b9f9ccdc3193a30239fa4d /tools/perf/scripts | |
| parent | 5ccc8fb54f1c083f1dc7e073150ec18d43457872 (diff) | |
ipc/sem: avoid ipc_rcu_alloc()
Instead of using ipc_rcu_alloc() which only performs the refcount bump,
open code it to perform better sem-specific checks. This also allows
for sem_array structure layout to be randomized in the future.
[[email protected]: Rediff, because the memset was temporarily inside ipc_rcu_alloc()]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Manfred Spraul <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions