Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3898532imu; Mon, 7 Jan 2019 11:30:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN6CRhD0r8F1AFOVntoUEAsjTZJ3Fz2OJBXUHVKBwEEzXhA9W6ZTLZU58I9ze33KRIErQ7Js X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr47976268plb.70.1546889439043; Mon, 07 Jan 2019 11:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546889439; cv=none; d=google.com; s=arc-20160816; b=aXDN7kBqLnzY04f8Nmz3Hf4nyNJkrsALHk/12ofdu41/L4to1gqZsUciREsOH5Uh3v mJWIQ04AJ/oH87Zfr/K0lbahcIgztTqq/KRXrPw/yGhFq5lPqfwIRoS5l/UZI3E4D1vc VDqH+AZECzwNzPOBK7t1gqSjY7xnaUNmDaxrPXJvrDZZ1fQ0I529F6j1mslQJYoDBBqb Qe+Dgsy/neAqkoDams0mfwb9ArtPyNBg/H5l82r6i+ZZkBYKA+Op0kr5NGWHnGg7C9Ka hpptnGlNf8AuLyo5OFV0C8Gbz+YS03XMgf5xKvPF41UpdSsyw6O86yeW+BdNKhwGPDBP +7DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Vt2X3imKLbfqRMtR6vOlG5/v6kZVTQIIX95+48sS3Kg=; b=obkcKfPB08GJjA++Fe/37HzSRc8/YASNqE67/hRrXrNFiCXTcqoD/7sRYQtJa8coce rEiPQzKQxBzAm+LsMcD5qJvTvQ2bLFng7dEleKE29dI11MK5z7JXVFgbsf7obx1lkUoG 48C0GscbJuERZ+FJ7FkpBEfbtbDIyM/p+0S5yyPXpmTRO71KA1qX8CE78ottaqPiHDkq 6P13nxi1+C2ojHQTe+QkWp/yVBFXdF7Tr31muKrkSGCdO3c5c9+Kvr4aGFmwhPojf94i ihUahT6PBTkw/1hM2tqZL2lZBOkCpDjZ71pD6dirrC5e3rdR4xxIKHLgTE2xciVyQWoW B8ZQ== 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 i4si24169965pfg.218.2019.01.07.11.30.23; Mon, 07 Jan 2019 11:30:38 -0800 (PST) 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 S1728114AbfAGT1w (ORCPT + 99 others); Mon, 7 Jan 2019 14:27:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:51876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbfAGT1w (ORCPT ); Mon, 7 Jan 2019 14:27:52 -0500 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBC3A2085A; Mon, 7 Jan 2019 19:27:50 +0000 (UTC) Date: Mon, 7 Jan 2019 14:27:49 -0500 From: Steven Rostedt To: Andrea Righi Cc: Masami Hiramatsu , Ingo Molnar , peterz@infradead.org, Mathieu Desnoyers , linux-kernel Subject: Re: [PATCH 0/2] kprobes: Fix kretprobe incorrect stacking order problem Message-ID: <20190107142749.34231bb6@gandalf.local.home> In-Reply-To: <20190107183444.GA5966@xps-13> References: <154686789378.15479.2886543882215785247.stgit@devbox> <20190107183444.GA5966@xps-13> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Jan 2019 19:34:44 +0100 Andrea Righi wrote: > On Mon, Jan 07, 2019 at 10:31:34PM +0900, Masami Hiramatsu wrote: > ... > > BTW, this is not all of issues. To remove CONFIG_KPROBE_EVENTS_ON_NOTRACE > > I'm trying to find out other notrace functions which can cause > > kernel crash by probing. Mostly done on x86, so I'll post it > > after this series. > > Not sure if you found it already, but it looks like some of the > _raw_spin_lock/unlock* functions (when they're not inlined) are causing > the same problem (or something similar), I can deadlock the system by > doing this for example: > > echo "r:event_1 __fdget" >> kprobe_events > echo "r:event_2 _raw_spin_lock_irqsave" >> kprobe_events > echo 1 > events/kprobes/enable > [DEADLOCK] > > Sending the following just in case... > Ug, kretprobe calls spinlocks in the callback? I wonder if we can remove them. I'm guessing this is a different issue than the one that this patch fixes. This sounds like we are calling kretprobe from kretprobe? -- Steve