Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp460149pxb; Thu, 21 Jan 2021 11:08:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqnZbEvYLBYLjNxXlq0VRPhlgwifj8fPA4tP39YlolPmMUUO15e7IAKAXXgIm/vDWaczx8 X-Received: by 2002:a50:fb96:: with SMTP id e22mr491815edq.118.1611256131581; Thu, 21 Jan 2021 11:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611256131; cv=none; d=google.com; s=arc-20160816; b=AqqgIj64uIL27ZJ+K4z6Aqj+V16orXQzjofDvWwLmAWxcgpZ0O6cx/J5Z5q06O2SAL 1Fp2RanIKdw2dPzIs4X5pVSUNpmlAN6IAdQv+QIie4JlgehYdPxvRYP/ciDEys2fekYS lu7OV3gf2o4is9KrPthxm6hA8SZrsaznWEBdHly8RtktTWch6zpt0mqW6D1WrEMIoO46 fZCiRcHsvhmGsFBAFM4GdzrsZQgiJg8UZq2gBY53gC4xkxpIxdASmbajrokCGApQP5DQ fJefWFZ7iO97v0IT7gC+2tzMJV50CHgkH/JYqjXaoI2wiVX5KTgtYKWb+R7pCzokRypX cKog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=pIGZ7IHl3sy0Lk94N7kf+/WsHttuKwteT2zoVx5q/SA=; b=vnaLF71QcEz2rEfvdV5uJkL4n+e4RadIaH/WOSmpCPOsKCflYlEn4Z1kLLIXZuDhcu rdTGczVlbBfKq0XRS4nMQesNkiCz6J/+yjjQylOvqfJOz851LJOw+bWYdpV07+ZYq/6s RZsn3GYmwkoUM6/zpx+nU3J97bKxhStBiKfIQ8zEJYCa5XLTd3oSKqX8XoRchlWxcuKj v1BFr7kaPZPAUJHbP7O/yqUXPgGRfgcwFu5ZU93XjqzB7efgmG/6540TuWip5RtBDLJ8 D15Ir/sgEyOhdIlh1c27ePj2Dx7uje4LPSLSOYtdmEZix9cJxOlehwG4palHOO9WElWK 0WNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=b6VHXC9q; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si2696574edw.197.2021.01.21.11.08.21; Thu, 21 Jan 2021 11:08:51 -0800 (PST) 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=@walle.cc header.s=mail2016061301 header.b=b6VHXC9q; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726002AbhAUTG1 (ORCPT + 99 others); Thu, 21 Jan 2021 14:06:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbhAUTFG (ORCPT ); Thu, 21 Jan 2021 14:05:06 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6971C061797; Thu, 21 Jan 2021 11:04:13 -0800 (PST) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 2EC9922F99; Thu, 21 Jan 2021 20:01:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1611255684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pIGZ7IHl3sy0Lk94N7kf+/WsHttuKwteT2zoVx5q/SA=; b=b6VHXC9qRDl74L3WjiKc5vZEaRIQr7+UfqoSAmgSwLjjWaWKFCtl78eShg0Ey5Cgwl5nJP tV+7UnIeycZlfWm8lM9SsgWYZvgrqB9OJ2jqilDTBHzc/5VLi9y6hGr1KV8Tc9agAAzXWw WrjbMSJcPsG5ksdBVpjp+t2KGPU25Gw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 21 Jan 2021 20:01:24 +0100 From: Michael Walle To: Saravana Kannan , Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , stable@vger.kernel.org, kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] driver core: Fix device link device name collision In-Reply-To: <20210110175408.1465657-1-saravanak@google.com> References: <20210110175408.1465657-1-saravanak@google.com> User-Agent: Roundcube Webmail/1.4.10 Message-ID: <10c82099cb39f176dde96c16d9cc6100@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 2021-01-10 18:54, schrieb Saravana Kannan: > The device link device's name was of the form: > -- > > This can cause name collision as reported here [1] as device names are > not globally unique. Since device names have to be unique within the > bus/class, add the bus/class name as a prefix to the device names used > to > construct the device link device name. > > So the devuce link device's name will be of the form: > :--: > > [1] - > https://lore.kernel.org/lkml/20201229033440.32142-1-michael@walle.cc/ > > Cc: stable@vger.kernel.org > Fixes: 287905e68dd2 ("driver core: Expose device link details in > sysfs") > Reported-by: Michael Walle > Tested-by: Michael Walle > Signed-off-by: Saravana Kannan > --- Greg, any news here? -michael