From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6A03C433E0 for ; Sun, 10 Jan 2021 01:53:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 988A0235F7 for ; Sun, 10 Jan 2021 01:53:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726398AbhAJBxM (ORCPT ); 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