Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1370627pxb; Sat, 9 Jan 2021 17:54:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJy87V9zuiWxVQW4CAqKX9Jzx7G+at7EF2r3KCNF2CiUAzlaic8hMa9oiXtsRjsbLVe/wy5d X-Received: by 2002:a05:6402:50ca:: with SMTP id h10mr9696415edb.181.1610243664270; Sat, 09 Jan 2021 17:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610243664; cv=none; d=google.com; s=arc-20160816; b=RItxh0sVFDNcWmSwVS/t/z1FQfdRSULD0afJTwLwY2TAesAT4OZhVsEmV5mTcjwTT1 EIhv3/mllmN/X0S+clhVeq5YDrzA6Byz9RindZt7C+Uk/7SpX72YtT9SJzibqbW3B+lr +qV+0u3vN4wDXNYfde467+pY11sM76f13bzoOYU/y80fMJn1gMuyrF/x2JiBkl3MpDuT wYsrdyDMYYEwBsxd618a47ICPB7IljhEh1mC1NGzBfrlQYDdYg/xxJ55FrUvU1HX4bwY mFONW2pzHSGe9244RsosGFTbrCLNTVe7T4lxJx0EYoGvSt/RiWJ8DJ7WuHDBdnWgadWR iDDA== 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=16pmvivc9vFTk99NqF9j4WTSYp42RpBOCt/XNxbgRtA=; b=IAgNes5wT4nKGt8sXUGmkQjoKXEjuxJboXVaNAP7b3rW2FmfdJP7+VAzgfFd/yjqn3 FfGH027ZcbRG342xGpSwy2UDjcFOVI7OFP0ElWQQ5Td1u2iiNPRu7x9aqCkTk1y0R7Fn mAWkIZAfgx3dcp2Pw9mxyQ7lmpmyicSNj2aJtZOzc8UAxXMCubZIwvHMcipORpQiGLGa jGpYkcygBTkx3uQXXvgEZ0DJ+fNklLVlkYq3zAz7Tjo3ngsVGfrwzzJkV2SzTeEYfh4V b/DLCUonLXOcidzFV89fktlD0v4coK/Oj6czNeRcMk/FCs6oKqLQUOpqqDRG6Twc4V6E 2/pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=iGOorF0P; 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 w5si5490850edf.510.2021.01.09.17.54.01; Sat, 09 Jan 2021 17:54:24 -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=iGOorF0P; 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 S1726376AbhAJBxM (ORCPT + 99 others); Sat, 9 Jan 2021 20:53:12 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:47153 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbhAJBxL (ORCPT ); Sat, 9 Jan 2021 20:53:11 -0500 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 6A08022708; Sun, 10 Jan 2021 02:52:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1610243549; 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=16pmvivc9vFTk99NqF9j4WTSYp42RpBOCt/XNxbgRtA=; b=iGOorF0Pg1R2Lz421FCYlE0ICtda/WSEpJbhFiRWk0j/zpv9mdVf/hBJsVKdsoImZoUTam wu0WwKO7a6lGbFq0Fur8yUkTYhGYfGTokaxmMobWVUpMOG6DmRlZyFIce1nLSa9c+39i13 /F2t+2KRtNHJQ99Q3HoMl6CjTm/kies= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 10 Jan 2021 02:52:29 +0100 From: Michael Walle To: Saravana Kannan Cc: Greg Kroah-Hartman , "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: <20210109224506.1254201-1-saravanak@google.com> References: <20210109224506.1254201-1-saravanak@google.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <5d8ea5751e761df7511a3f2db4de1273@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-01-09 23:45, 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 > Signed-off-by: Saravana Kannan Tested-by: Michael Walle Thanks! -michael