seccomp: Switch from atomic_t to recount_t
authorKees Cook <keescook@chromium.org>
Mon, 26 Jun 2017 16:24:00 +0000 (09:24 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 26 Jun 2017 16:24:00 +0000 (09:24 -0700)
commit0b5fa2290637a3235898d18dc0e7a136783f1bd2
treefa350a4ac455aace74b1aa5b584a1f9afef8e770
parent93bd70e3330be45542c455dde11d8dc657ab3044
seccomp: Switch from atomic_t to recount_t

This switches the seccomp usage tracking from atomic_t to refcount_t to
gain refcount overflow protections.

Cc: Elena Reshetova <elena.reshetova@intel.com>
Cc: David Windsor <dwindsor@gmail.com>
Cc: Hans Liljestrand <hans.liljestrand@aalto.fi>
Signed-off-by: Kees Cook <keescook@chromium.org>
kernel/seccomp.c