Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1631349

Re: [PATCH] x86: convert threshold_bank.cpus from atomic_t to refcount_t

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject Re: [PATCH] x86: convert threshold_bank.cpus from atomic_t to refcount_t
Date 2017-04-26 12:20 +0200
Message-ID <tAsdc-UH-23@gated-at.bofh.it> (permalink)
References <tykts-14Q-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Apr 20, 2017 at 04:38:56PM +0300, Elena Reshetova wrote:
> refcount_t type and corresponding API should be
> used instead of atomic_t when the variable is used as
> a reference counter. This allows to avoid accidental
> refcounter overflows that might lead to use-after-free
> situations.
> 
> Suggested-by: Kees Cook <keescook@chromium.org>
> Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
> Reviewed-by: Hans Liljestrand <ishkamiel@gmail.com>
> Reviewed-by: David Windsor <dwindsor@gmail.com>
> ---
>  arch/x86/include/asm/amd_nb.h        | 3 ++-
>  arch/x86/kernel/cpu/mcheck/mce_amd.c | 6 +++---
>  2 files changed, 5 insertions(+), 4 deletions(-)

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] x86: convert threshold_bank.cpus from atomic_t to  refcount_t Borislav Petkov <bp@alien8.de> - 2017-04-26 12:20 +0200

csiph-web