From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755702AbbAaPKX (ORCPT ); Sat, 31 Jan 2015 10:10:23 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:24345 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752903AbbAaPKW (ORCPT ); Sat, 31 Jan 2015 10:10:22 -0500 Message-ID: <54CCF00F.5030709@oracle.com> Date: Sat, 31 Jan 2015 10:09:03 -0500 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Andy Lutomirski , Paul McKenney CC: Borislav Petkov , X86 ML , Linus Torvalds , "linux-kernel@vger.kernel.org" , Peter Zijlstra , Tony Luck , Andi Kleen , Josh Triplett , =?windows-1252?Q?Fr=E9d=E9ric_Weisbecker?= Subject: Re: [PATCH] x86, traps: Fix ist_enter from userspace References: <54CC2FA8.7070006@oracle.com> <261ebee6aee55a4724746d0d7024697013c40a08.1422709102.git.luto@amacapital.net> In-Reply-To: <261ebee6aee55a4724746d0d7024697013c40a08.1422709102.git.luto@amacapital.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/31/2015 08:01 AM, Andy Lutomirski wrote: > context_tracking_user_exit() has no effect if in_interrupt() returns true, > so ist_enter() didn't work. Fix it by calling exception_enter(), and thus > context_tracking_user_exit(), before incrementing the preempt count. > > This also adds an assertion that will catch the problem reliably if > CONFIG_PROVE_RCU=y to help prevent the bug from being reintroduced. > > Fixes: 959274753857 x86, traps: Track entry into and exit from IST context > Reported-by: Sasha Levin > Signed-off-by: Andy Lutomirski I was running something like that overnight, looks like it fixes the problem. Tested-by: Sasha Levin Thanks, Sasha