Received: by 10.192.165.148 with SMTP id m20csp1414990imm; Sat, 5 May 2018 11:29:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZptK+dFyR1vP99H0Y/Nx4TR9BD1wSw0THfBxN+5dY6HMN8jzqdirlB9AnGYi35NGhoAsHJn X-Received: by 2002:a17:902:8b85:: with SMTP id ay5-v6mr829122plb.30.1525544983320; Sat, 05 May 2018 11:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525544983; cv=none; d=google.com; s=arc-20160816; b=TUNLhLEqGN3tlI4YRa8Ot82gjCXMGv8Nui9rWj7Z6CqH7Y5VS2sF6OsBv0KOev74O0 CEXglfp77WFiLOJWm3e7sZE7PcKh3EHx+fEI/qxFIyWZj/lP/sk6S0hwPNAuAbQ/3Uzy A+FeCh3ZPBhC6uB9IjCIZ/H+kLnYH+FDEQw0GyA68CS8kuCPx3zNJjRRTycNqEdMjpE6 fmauixYggi+9VF/nf6YQHLQTw0I1GzqNsWmc5D37qEEVOokBlmncL+BRo9PGPUfF/bYK bEji6aGRmuFY2SfIUkpvSrKbvXruE1QMudAVe7aTlOqwZLcDVuZn7mMXDigc45WkYKFW gzFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=t6bbiq95YyAO06N/LBMnA5IWuVCxFuDux9ebcGVkkmk=; b=dlsr22qZrXN8YXzOFN6Wdcu6ho2mu/OKj0E/e4672tU6+5kof89ns8bQURBm8JLRIU vFDCk2eu1PivlitYxGjikEaGISisSnvSEO6/oRkb8g6PpiC8QPjwDwmWTTZ3PQsAC7fL oXAHXMdmuQowYGAUXpfwqzM6r1ZzXoz0mf2dfUCqTx3S5X57wum9emnBSDRPj1UOtv6a MIbObhh8OfKRQZKu4klt9R2iBg2Z0AerVLVGH0O7bVr3eCKDr4pE9CY0saJXsgpKfBM3 TIArVa1QgFkCtfVTQ+b43NIC0ia3Eb9CSMlM9kiJyb2n334h1do25ECnTnONv9qOH96L JO5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si18983190pfj.292.2018.05.05.11.29.27; Sat, 05 May 2018 11:29:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbeEES3P (ORCPT + 99 others); Sat, 5 May 2018 14:29:15 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44960 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751235AbeEES3N (ORCPT ); Sat, 5 May 2018 14:29:13 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5174F831064A; Sat, 5 May 2018 18:29:13 +0000 (UTC) Received: from treble (ovpn-120-232.rdu2.redhat.com [10.10.120.232]) by smtp.corp.redhat.com (Postfix) with SMTP id CA51E10848F; Sat, 5 May 2018 18:29:12 +0000 (UTC) Date: Sat, 5 May 2018 13:29:12 -0500 From: Josh Poimboeuf To: Vince Weaver Cc: Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Thomas Gleixner , Andy Lutomirski Subject: Re: perf: fuzzer causes stack going in wrong direction warnings Message-ID: <20180505182912.llj7jb3v7yd43t5h@treble> References: <20180111192112.d35nkotzklicd27c@treble> <20180501135850.enx4waqd5d7yowlj@treble> <20180501220458.p3rgwzh3jcqt4jmm@treble> <20180502205009.codkvscnh4j4hm6b@treble> <20180504162557.iodmglq3duomz6c2@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Sat, 05 May 2018 18:29:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Sat, 05 May 2018 18:29:13 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 05, 2018 at 11:38:16AM -0400, Vince Weaver wrote: > On Fri, 4 May 2018, Josh Poimboeuf wrote: > > > > The 'nmi_restore' warning points to a bug in my patch, but the others > > are head scratchers. Here's a patch which combines the first two > > patches, plus improves the existing warnings a bit. Can you try it? > > with that updated patch I hit > > May 4 21:51:20 haswell kernel: [19245.450607] WARNING: stack recursion on stack type 2 > May 4 22:21:29 haswell kernel: [21055.268717] WARNING: can't dereference registers at 000000006546ba71 for ip ret_from_intr+0x6/0x1d > May 4 22:36:22 haswell kernel: [21948.106762] WARNING: stack going in the wrong direction? ip=native_sched_clock+0xe/0x90 > May 4 22:36:22 haswell kernel: [21948.115377] WARNING: stack going in the wrong direction? ip=native_sched_clock+0xe/0x90 > May 4 22:36:22 haswell kernel: [21948.124086] WARNING: stack going in the wrong direction? ip=native_sched_clock+0xd/0x90 > May 4 22:36:22 haswell kernel: [21948.124088] WARNING: stack going in the wrong direction? ip=intel_pmu_handle_irq+0x12/0x4a0 > May 4 22:36:22 haswell kernel: [21948.124097] WARNING: stack going in the wrong direction? ip=native_sched_clock+0xe/0x90 > May 4 22:36:22 haswell kernel: [21948.150189] WARNING: stack going in the wrong direction? ip=native_sched_clock+0xe/0x90 > May 4 22:36:22 haswell kernel: [21948.150199] WARNING: stack going in the wrong direction? ip=intel_pmu_handle_irq+0xe/0x4a0 > > the last bit repeated for a few minutes (flooding the log with a few > thousand entries that look mostly similar) Thanks. I can recreate now, so I'll stop bugging you for a bit. This fuzzer is really good at finding unwinder issues. -- Josh