From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751484AbdJEJ36 (ORCPT ); Thu, 5 Oct 2017 05:29:58 -0400 Received: from mail.skyhub.de ([5.9.137.197]:37294 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751278AbdJEJ34 (ORCPT ); Thu, 5 Oct 2017 05:29:56 -0400 Date: Thu, 5 Oct 2017 11:29:32 +0200 From: Borislav Petkov To: Kees Cook Cc: linux-kernel@vger.kernel.org, Tony Luck , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-edac@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH] x86/mce: Convert timers to use timer_setup() Message-ID: <20171005092932.4wjuip2pysuyk33k@pd.tnic> References: <20171005005425.GA23950@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20171005005425.GA23950@beast> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 04, 2017 at 05:54:25PM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. Adjust sanity-check WARN to make sure > the triggering timer matches the current CPU timer. > > Cc: Tony Luck > Cc: Borislav Petkov > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x86@kernel.org > Cc: linux-edac@vger.kernel.org > Cc: Thomas Gleixner > Signed-off-by: Kees Cook > --- > This requires commit 686fef928bba ("timer: Prepare to change timer > callback argument type") in v4.14-rc3, but should be otherwise > stand-alone. > --- > arch/x86/kernel/cpu/mcheck/mce.c | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-) Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.