Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1538357ybg; Thu, 11 Jun 2020 12:25:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA3Ad9M2BRg0sPLHP9hwQEyEX8fYYjrYlI2PXVtnI4uFxt/L+ejheFtrn9NHUWeWtbustM X-Received: by 2002:aa7:c6d1:: with SMTP id b17mr8817307eds.39.1591903529672; Thu, 11 Jun 2020 12:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591903529; cv=none; d=google.com; s=arc-20160816; b=GpNdCAZMtwAasE+ztQUZItdlMbOI9wgzVvm8ZeOX+0l5Fov3EBgrhYfAOQ8aFcqGNg PiDpIL1GRu95B7w6zK6S22wOgPNB/mBSqwUk3zjUcq/6W0SfZj2S6DIhbryZh5H62zoF QyZVbrDTArh7W82eeW4MU2S13Z0GPEZVu+R0OSM7iomyjtx+OMRFIDB7xtmcT3XCHeFI fUcdKQlgH+3BWitBPD+9Cl3KVUS0yTg5xdaBnel+vzIhw67wD73DCaurXkbFUfKiapWn quEDxdnPdnQg2DrmPRJnC1xNMhae0m2gpqdnXyABb6CyqsMvuicrs25UBPLLxPLzF2WC jv0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=s4hOWN3trx2m4cNx9OpcwY9rzWbe6XnQocdqyxZvBh4=; b=pkR5gYOnvtULrUQymkcOsoK6xEDCO22SCoSxEzIdyQHndzeExBjy5sw8Sjz/Bpm02Q 87cApehVt+pWcvSgUUXmPPT3aykxVTHK9UR6m97XC8+s2tBa9p4S9ojBuTVzjbzBb8bN 53GCbOGS9wFJuCOGDSjt0/r0nh7IGLjw/ue5LzPM/n/UILS1NsEObX4SB6XVUYxgg6Vk oCtD0Y3S4PwMVKWKhLeaJMqaq5hOV0RSym2Hgi0EuNXcJBbnYOjONo7+GHO2TdxKhOrP 49q55TcFyvCaJMz9AFoIlTtBJS6iyi32Ve0C40ciy8mVqVLLvgls3Ifk4oOK3a1DThog t/EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TLDdSHo6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h10si2386046eja.608.2020.06.11.12.25.06; Thu, 11 Jun 2020 12:25:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TLDdSHo6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728246AbgFKTLE (ORCPT + 99 others); Thu, 11 Jun 2020 15:11:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:58476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbgFKTLE (ORCPT ); Thu, 11 Jun 2020 15:11:04 -0400 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 559262073E for ; Thu, 11 Jun 2020 19:11:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591902663; bh=oCuaCcJcNwL+Kgm47//LjwIWmVDvEilE+aEhhdbEjzE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TLDdSHo6/NkPPsh9H7qy3Sfbes8dvePZ8zDWtPhNtpjmwUOh3hrYehtn4hF73sBD8 sI4xuz69EyihQAiCpepJv/fPgvFjr9c1IbyBrKpy+zZlhif+aPvCTU2JHxHyatyLq+ fEXhRUos3y/LVy4RS0idohYf2lb3IPlF03royts4= Received: by mail-wm1-f41.google.com with SMTP id f185so6091459wmf.3 for ; Thu, 11 Jun 2020 12:11:03 -0700 (PDT) X-Gm-Message-State: AOAM5318INrFSE02NwUJq6UpYUyJ1bI8yDx8WOKpHMWmgejVVKcocJdJ 1+T+zRMosh7JW9Lql3/ek3Rj/MRb7r54fDN8q0j5Rg== X-Received: by 2002:a1c:80d4:: with SMTP id b203mr9576464wmd.138.1591902661891; Thu, 11 Jun 2020 12:11:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andy Lutomirski Date: Thu, 11 Jun 2020 12:10:50 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Perf: WARNING: arch/x86/entry/common.c:624 idtentry_exit_cond_rcu+0x92/0xc0 To: Naresh Kamboju Cc: open list , X86 ML , cj.chengjian@huawei.com, Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Thomas Gleixner , Andy Lutomirski , Minchan Kim , Andrew Morton , Michel Lespinasse , lkft-triage@lists.linaro.org, Dave Hansen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 11, 2020 at 11:56 AM Naresh Kamboju wrote: > > While running perf test and selftest x86 single_step_syscall_32 on > i386 kernel linux > next 5.7.0-next-20200610 kernel warning noticed. > > steps to reproduce: > -------------------------- > perf test > and > cd /opt/kselftests/default-in-kernel/x86 > ./single_step_syscall_32 > > perf warning log: > ---------------------- > [ 57.260865] ------------[ cut here ]------------ > [ 57.266576] IRQs not disabled as expected > [ 57.270583] WARNING: CPU: 1 PID: 500 at > /usr/src/kernel/arch/x86/entry/common.c:624 > idtentry_exit_cond_rcu+0x92/0xc0 > [ 57.281092] Modules linked in: x86_pkg_temp_thermal fuse > [ 57.286406] CPU: 1 PID: 500 Comm: perf Not tainted 5.7.0-next-20200610 #1 > [ 57.293190] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS > 2.2 05/23/2018 > [ 57.300577] EIP: idtentry_exit_cond_rcu+0x92/0xc0 > [ 57.305280] Code: 8b 89 d8 05 00 00 85 c9 74 ae 80 3d b1 64 2c d4 > 00 75 a5 68 94 2d fb d3 89 55 f8 89 45 fc c6 05 b1 64 2c d4 01 e8 8e > f5 2b ff <0f> 0b 58 8b 55 f8 8b 45 fc eb 83 8d 76 00 e8 5b fd ff ff c9 > c3 89 > [ 57.324017] EAX: 0000001d EBX: 0d00022a ECX: 00000027 EDX: f5b9e14c > [ 57.330274] ESI: f2a2ffb4 EDI: ffff0ff4 EBP: f2a2ff8c ESP: f2a2ff80 > [ 57.336531] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010096 > [ 57.343345] CR0: 80050033 CR2: 08700a58 CR3: 14ad7000 CR4: 003406d0 > [ 57.349608] DR0: 080dfb80 DR1: 080dfc00 DR2: 08700a58 DR3: 00000000 > [ 57.355866] DR6: fffe0ff0 DR7: 0d00062a > [ 57.359697] Call Trace: > [ 57.362143] exc_debug+0x84/0x1b0 > [ 57.365487] ? exc_int3+0x1d0/0x1d0 > [ 57.368981] handle_exception+0x145/0x145 > [ 57.372991] EIP: 0x80dfbcd > [ 57.375694] Code: Bad RIP value. > [ 57.378918] EAX: 00000000 EBX: 00000005 ECX: 00002400 EDX: 00000000 > [ 57.385175] ESI: 00000003 EDI: 00000004 EBP: bfd59798 ESP: bfd59770 > [ 57.391431] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000246 > [ 57.398215] irq event stamp: 1896 A regrettable property of the current entry code structure is that we lose any real indication of the vector. Presumably this is #DB, hence exc_debug. I don't know what perf has to do with it. I'll bang on this after lunch if no one beats me to it.