Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11914275ybi; Fri, 26 Jul 2019 01:43:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+UoehvqCID3hRZX4iBoG0sjzCQALYn5TzPJVhsOrpTUv4UOK68q2BuUtBKypWSxqItRwI X-Received: by 2002:a65:60cd:: with SMTP id r13mr64245652pgv.315.1564130615288; Fri, 26 Jul 2019 01:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564130615; cv=none; d=google.com; s=arc-20160816; b=jD4u3qwFN3zKpIe23zF30rmu40QgcVWkD9p7vYandpKBgXKwY+AxdPq+zBcA4hcnfD vAJAIll63pt7iYL5+BpDWEEW599KPSIM4Zzrf2Lym1nrKgxJhLqQvCg5BhoF83SSQ0jt EqkVXWnWXJi/YE1WUmMB8MejgMhluvop2kJ1uPPWvY3IsXspydToHPvkKLnn6XQGzwkl UP2tXEJd/HLTM4TPVs2l9f1RYL639W4XGhszbh8ERFgQl5nWkIBa32m2amIpNs/54ANN 1eBoJxKoBPPmrsjcvVsTKXrWbFI590VABztrw4N+aLwfhPwI/4k/fAaP34TxVzTzVQ4o /drQ== 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:dkim-signature; bh=jYUSqWjZIkQuvfvX29TYXmW0Ahszajmok49WyiJlS8w=; b=s0CRIKXrcARNsae6idDzEEPWseRiNObY6Xszb0MV6lpb9/p9xpgnoE3C9M2w19W188 PplMXUyF3QsvF0RMei/S298bZEkq44gFvR+3NSFxtA8NZJm0wlDmYqwrI6tm3SpE6T8q adfjXt4+z15UqKrPaF64fvdJv6vjv5cVVYb3c8mb+L/UwK3rs2eHDA+j4wmNNKBLZcPk zp/5ooiBtsDhnhvHKX4VZEKdkbPKmwLGitC5HG4/fwggi/kuMOUgYG2VI2KBgJWTDc57 Kz4mHz5MWT0lDmMtzbOdzjMuiRdTKkY1RIi4AIlmEC8VO3zhQ3QAOkQeauQXTuibgvjL /5Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AqDr367c; 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 141si18734295pgh.166.2019.07.26.01.43.19; Fri, 26 Jul 2019 01:43:35 -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; dkim=pass header.i=@kernel.org header.s=default header.b=AqDr367c; 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 S1726184AbfGZIlb (ORCPT + 99 others); Fri, 26 Jul 2019 04:41:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:53438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfGZIlb (ORCPT ); Fri, 26 Jul 2019 04:41:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 6EBFF2166E; Fri, 26 Jul 2019 08:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564130489; bh=u9hE5TPAuhfE3I5+DNmN/ANWL4HwopSUkPDD7JGenyM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AqDr367cELkWdsKg7/xTTW+mMoF2lxvrD+4VoeryF+ymEc4dncJKYUB9VHdcnJtWw 6HGs9KVD2otlVWphduu3Ov2QGZCNwZlvcsGOuBEMGgyWtRnFLrHgnJBsPBZabMwz5y W0IhqbTPXTMFAIkB+5ESIEvgjDm5JsljlEJbSU2M= Date: Fri, 26 Jul 2019 10:41:27 +0200 From: Greg Kroah-Hartman To: Sai Prakash Ranjan Cc: Geert Uytterhoeven , Mathieu Poirier , Suzuki K Poulose , Leo Yan , linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [Regression] Missing device nodes for ETR, ETF and STM after CONFIG_UEVENT_HELPER=n Message-ID: <20190726084127.GA28470@kroah.com> References: <20190726070429.GA15714@kroah.com> <165028a7-ff12-dd28-cc4c-57a3961dbb40@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <165028a7-ff12-dd28-cc4c-57a3961dbb40@codeaurora.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 01:50:27PM +0530, Sai Prakash Ranjan wrote: > On 7/26/2019 12:34 PM, Greg Kroah-Hartman wrote: > > On Fri, Jul 26, 2019 at 11:49:19AM +0530, Sai Prakash Ranjan wrote: > > > Hi, > > > > > > When trying to test my coresight patches, I found that etr,etf and stm > > > device nodes are missing from /dev. > > > > I have no idea what those device nodes are. > > > > > Bisection gives this as the bad commit. > > > > > > 1be01d4a57142ded23bdb9e0c8d9369e693b26cc is the first bad commit > > > commit 1be01d4a57142ded23bdb9e0c8d9369e693b26cc > > > Author: Geert Uytterhoeven > > > Date: Thu Mar 14 12:13:50 2019 +0100 > > > > > > driver: base: Disable CONFIG_UEVENT_HELPER by default > > > > > > Since commit 7934779a69f1184f ("Driver-Core: disable /sbin/hotplug by > > > default"), the help text for the /sbin/hotplug fork-bomb says > > > "This should not be used today [...] creates a high system load, or > > > [...] out-of-memory situations during bootup". The rationale for this > > > was that no recent mainstream system used this anymore (in 2010!). > > > > > > A few years later, the complete uevent helper support was made optional > > > in commit 86d56134f1b67d0c ("kobject: Make support for uevent_helper > > > optional."). However, if was still left enabled by default, to support > > > ancient userland. > > > > > > Time passed by, and nothing should use this anymore, so it can be > > > disabled by default. > > > > > > Signed-off-by: Geert Uytterhoeven > > > Signed-off-by: Greg Kroah-Hartman > > > > > > drivers/base/Kconfig | 1 - > > > 1 file changed, 1 deletion(-) > > > > > > > > > Any idea on this? > > > > That means that who ever created those device nodes is relying on udev > > to do this, and is not doing the correct thing within the kernel and > > using devtmpfs. > > > > Any pointers to where in the kernel those devices are trying to be > > created? > > > > Somewhere in drivers/hwtracing/coresight/* probably. I am not sure, > Mathieu/Suzuki would be able to point you to the exact code. > > Also just to add on some more details, I am using *initramfs* Are you using devtmpfs for your /dev/ mount? If you enable this option, what does: ls -l /dev/etr ls -l /dev/etf ls -l /dev/stm result in? What are these device nodes for? Are they symlinks? Real devices that show up in /sys/dev/char/ as a real value? Or something else? Do you have udev rules that create these nodes somehow? thanks, greg k-h