From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH 2/4] x86: convert threshold_bank.cpus from atomic_t to refcount_t Date: Wed, 22 Feb 2017 10:27:48 +0100 Message-ID: <20170222092638.GA9953@nazgul.tnic> References: <1487588781-15123-1-git-send-email-elena.reshetova@intel.com> <1487588781-15123-3-git-send-email-elena.reshetova@intel.com> <20170220111727.7vohleiu2btmsx3g@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: Sender: sparclinux-owner@vger.kernel.org List-Archive: List-Post: To: Kees Cook Cc: Elena Reshetova , LKML , linux-edac@vger.kernel.org, "x86@kernel.org" , sparclinux , "linux-s390@vger.kernel.org" , KVM , Peter Zijlstra , Greg KH , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Tony Luck , "H. Peter Anvin" , Hans Liljestrand , David Windsor List-ID: On Tue, Feb 21, 2017 at 12:45:30PM -0800, Kees Cook wrote: > On Mon, Feb 20, 2017 at 3:17 AM, Borislav Petkov wrote: > > On Mon, Feb 20, 2017 at 01:06:19PM +0200, 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. > >> > >> Signed-off-by: Elena Reshetova > >> Signed-off-by: Hans Liljestrand > >> Signed-off-by: Kees Cook > >> Signed-off-by: David Windsor > > > > That SOB chain tells me that you wrote the patch and Hans, Kees and > > David handled it in some way and the last one - David - is sending it to > > me. It doesn't look like that though. > > Perhaps the least inaccurate form of this might be: > > > Inspired by atomic protections in PaX/grsecurity. > > Suggested-by: Kees Cook > Reviewed-by: David Windsor > Reviewed-by: Hans Liljestrand > Signed-off-by: Elena Reshetova > > > As this is something I'd suggested we implement based on the work in > PaX/grsecurity, David took the first (and continuing) stab at > conversions, Hans did more, and Elena has been doing even more along > with the heavy-lifting of keeping the series organized. That way the > first SoB is still the author, the last SoB is still the email sender, > and everyone's name is mentioned. > > Or just: > > > Inspired by atomic protections in PaX/grsecurity, based on work from > David Windsor, Hans Liljestrand, and myself. > > Signed-off-by: Elena Reshetova > > > I'm not picky -- I just want to see the conversion to refcount_t Me neither - both look good to me and actually explain what the SOB chain was trying to say. Thanks! -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --