Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8067992ybi; Tue, 9 Jul 2019 08:38:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUS3F7OjJZO9cRjAF5MlT9aa0NZy4QwQoBgNSbm+4U/R2OJvQy0TBJzeyDGCFjFFrC02on X-Received: by 2002:a17:902:2d01:: with SMTP id o1mr33601352plb.105.1562686728383; Tue, 09 Jul 2019 08:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562686728; cv=none; d=google.com; s=arc-20160816; b=A5PlG50o2VEzW57guzi/VTyG9yXyppsa6HOKNLG/aLLBgk1wPuEADlCgWsJxUamNr4 JDYh+/VeEsnQZ9w5mD1l/oWaj5A0wl3TL+Q5cqVtwVz/XyVpiNW/y55wryGeER+pK9sm /RE2x4xQJ2co2nqWO2rP4w6FGU5T9frgi21FHvBw3NaZppv+DJAugVxmA8snZBrMtQLW KGIzbLWq+o+6/GAyT64jH0mN1vFy1an4CCewcPQOMATbVoKGOvOMLLLMj6sV7mJxFzQm HehA/N6TilxdF9GJXQ+VavIt094ciILDqEvqWwXK4zmIydLUyMErKtuTEDct1WcqGIhn yeiw== 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; bh=SUo0FPPPxGPFMjhDCECUgDV4xJRaSSWdfTYK2+/gNLA=; b=P6f5/RCvHEXAtFzPHqO/QNkeOo9uMlZjH1U6IuGkIIL9MAO/IawOq41WSJov6ZqpVE 5FpM7/9nbs0NxLRZafCfwncFTzK3vRoRxOxnlMveTs5Tgn+WRUH0DJUc8mU52QY83qTr 6Fa6uNjJdUWKXnohE7s3O5I4tcu2pZ7scnpHvhm+ySOlMmqYnhp0Q0mwjs5kM8KUgA6M 09Ir8GagLWnbS8ffVvYDMSN7oNQU9B4xU8IO+/u8wasPgL6BrGlAJ3AAWpyDP44F2OZU A76k6a3TPNmy418BVbHloK6JJl9qhqZpQa2UkFXDAA1yYyEptilMVFnUjOSxKFqlptWx IzEQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si21226020pln.70.2019.07.09.08.38.32; Tue, 09 Jul 2019 08:38:48 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbfGIPiA (ORCPT + 99 others); Tue, 9 Jul 2019 11:38:00 -0400 Received: from foss.arm.com ([217.140.110.172]:46260 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfGIPiA (ORCPT ); Tue, 9 Jul 2019 11:38:00 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3E31E2B; Tue, 9 Jul 2019 08:37:59 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DC2773F246; Tue, 9 Jul 2019 08:37:57 -0700 (PDT) Date: Tue, 9 Jul 2019 16:37:55 +0100 From: Mark Rutland To: Steven Rostedt Cc: Masami Hiramatsu , Anders Roxell , James Morse , "Naveen N . Rao" , Anil S Keshavamurthy , David Miller , Masami Hiramatsu , Linux ARM , Linux Kernel Mailing List Subject: Re: kprobes sanity test fails on next-20190708 Message-ID: <20190709153755.GB10123@lakrids.cambridge.arm.com> References: <20190708141136.GA3239@localhost.localdomain> <20190709213657.1447f508bd6b72495ec225d9@gmail.com> <20190709112548.25edc9a7@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190709112548.25edc9a7@gandalf.local.home> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 09, 2019 at 11:25:48AM -0400, Steven Rostedt wrote: > On Tue, 9 Jul 2019 21:36:57 +0900 > Masami Hiramatsu wrote: > > > On Tue, 9 Jul 2019 12:19:15 +0200 > > Anders Roxell wrote: > > > > > On Mon, 8 Jul 2019 at 17:56, James Morse wrote: > > > > > > > > Hi, > > > > > > > > On 08/07/2019 15:11, Anders Roxell wrote: > > > > > argh... resending, with plaintext... Sorry =/ > > > > > > > > > > I tried to build a next-201908 defconfig + CONFIG_KPROBES=y and > > > > > CONFIG_KPROBES_SANITY_TEST=y > > > > > > > > > > I get the following Call trace, any ideas? > > > > > I've tried tags back to next-20190525 and they also failes... I haven't > > > > > found a commit that works yet. > > > > > > > > > > [ 0.098694] Kprobe smoke test: started > > > > > [ 0.102001] audit: type=2000 audit(0.088:1): state=initialized > > > > > audit_enabled=0 res=1 > > > > > [ 0.104753] Internal error: aarch64 BRK: f2000004 [#1] PREEMPT SMP > > > > > > > > This sounds like the issue Mark reported: > > > > https://lore.kernel.org/r/20190702165008.GC34718@lakrids.cambridge.arm.com > > > > > > > > It doesn't look like Steve's patch has percolated into next yet: > > > > https://lore.kernel.org/lkml/20190703103715.32579c25@gandalf.local.home/ > > I forgot to push it after sending it. :-( > > > > > > > > > Could you give that a try to see if this is a new issue? > > > > > > The patch didn't apply cleanly. > > > However, when I resolved the issue it works. > > > I'm a bit embarrassed since I now remembered that I reported it a while back. > > > https://lore.kernel.org/lkml/20190625191545.245259106@goodmis.org/ > > > > > > Both patches resolved the issue. > > > I've tested both. > > > > In that case, the later one (move postcore to subsys) seems good to me. > > > > Delaying the test is just avoiding the issue that the selftest found, > > since right after init_kprobes() are called, the kprobe is ready for use. > > This means that the selftest must be run as the first user of the kprobes > > and it must be run right after initialize kprobes. > > I agree. I pushed to my repo in the for-next branch. Care to test that? > > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git I've just given that a spin with KPROBES and KPROBES_SANITY_TEST selected, and it boots cleanly for me. FWIW: Tested-by: Mark Rutland Thanks, Mark.