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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 514A9C433EF for ; Fri, 15 Jul 2022 20:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QseDT4u/YnZ4GA5S8W6gzAaq/7psnVR7m12iXTKmZ3I=; b=ahw2q+nAuOwPSL 6aUaagbsYC4wqqn1KwG/XQ51DbCq71VpECqjJCvsIRvMOmCYHJ+19FRU7g9MrBp1V5eHMxKEUD1Sy Kr0ITpH0c9ic6W6dXBPhp9piOLpp8jHJyxv+BQKWu5Pv6AQRLec4fL7Aa9PYOUM7sP+RVndR1mqJS QgjW9Q19GNq0UHI07HCR6vUno25DLe/GFsnz3J3CVnjzC6GZUft/gwXabk7CKDpoFlOhlayes1DqZ AnbpNs9+B4RzrbRqzV514R+6c7R+1hRjU8Z0S3nQKCmWEDSbgNvWdw8+0YJSkszyFr4pi5wZkJg9R +6MH1d+rtbdfUbiPEt7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oCSF1-00AHMe-ED; Fri, 15 Jul 2022 20:48:51 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oCSEy-00AHLq-5t; Fri, 15 Jul 2022 20:48:49 +0000 Received: by mail-ed1-x532.google.com with SMTP id m16so7732001edb.11; Fri, 15 Jul 2022 13:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hezb8LC6VHhsVv2dBKdkiaPfHcKVomwV2NQgIck5DiA=; b=Tq3ph/DejmAhUdUnV/JlESyMZHwcbbvwsbqDyONdf2PoZYL5sTPOQW3l+3djGe21AW exlkz+WqTjsLukDWZ9z5cGKAF9OXPAfu9ZLPsjvPo5IE3yb29+WgnMA4dqZHoLJ7e4Fx /UlliBn0U99ltvo523p4f/yZ2C3upzo6XXgczcADPhyokG7g1kZyEzUWMgiUvD8uuAEn NwSd7z2ejZiWY+8Zit+20+Pt8ffsv/p4jl2PsJu8EUbPJAbs158z8o2re6XM7n/0m3ml DKCRfQ8zxcb2R+Ra3ubr5ZHftWB/fNzWWpduY/MIUQ3WRk2q/WOnE/8Pkv3vEQdA0H7p BJzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hezb8LC6VHhsVv2dBKdkiaPfHcKVomwV2NQgIck5DiA=; b=Rolpxme0KR69RXNdU5F0L2tQZiQKEhFnVT9Vabn0ShtYOT+/1wBL7DAQPgik6xHi9p c9v593ARYeLFNP4VgA6hlZO2DzrO8Qj4bkTw41KI+cFsfOWBSbzlHu97RPCU7TbwYUHv jhFXcftmcgT6Fkh5z144do0yqnxN/jIKGLhC+vo0fJufeJxWDFW8bras+BEtbW7ecXmE 7lLRf0VCJOcuEc0VVis3jlaY+p5lwAWuBRIfjARYP3lIIzEFHedhvdKeoq96+SxlUAfW yMPjmYW1onPmp6Gh01pMytHhogwFmKN2h/KUJiaDKXHKJIpEBk7c7tGSuLLTIXbwxvOl oppQ== X-Gm-Message-State: AJIora+BlSLpeQkAIA1u3GbuQfe7mur26YWXxPb/v1AMI8nI5OuOSdz5 7YqKVZrkROKx0/D+Afcl5gY= X-Google-Smtp-Source: AGRyM1s+Y76WXlbBm2G6MIgUB/L/JKHKdvm9y3kQlZgGEy8jIEzPyxJkhr6XpR9Q9VObhdQhKtQt5Q== X-Received: by 2002:a05:6402:1d97:b0:43a:7b45:8e14 with SMTP id dk23-20020a0564021d9700b0043a7b458e14mr21354226edb.418.1657918125279; Fri, 15 Jul 2022 13:48:45 -0700 (PDT) Received: from skbuf ([188.25.231.115]) by smtp.gmail.com with ESMTPSA id kw5-20020a170907770500b0072f07213509sm742435ejc.12.2022.07.15.13.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 13:48:44 -0700 (PDT) Date: Fri, 15 Jul 2022 23:48:41 +0300 From: Vladimir Oltean To: Andy Shevchenko Cc: Russell King , Andrew Lunn , Heiner Kallweit , Alexandre Belloni , Alvin __ipraga , Claudiu Manoil , Daniel Scally , "David S. Miller" , DENG Qingfang , Eric Dumazet , Florian Fainelli , George McCollister , Greg Kroah-Hartman , Hauke Mehrtens , Heikki Krogerus , Jakub Kicinski , Kurt Kanzenbach , Landen Chao , Linus Walleij , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger , netdev@vger.kernel.org, Paolo Abeni , "Rafael J. Wysocki" , Sakari Ailus , Sean Wang , UNGLinuxDriver@microchip.com, Vivien Didelot , Woojung Huh , Marek =?utf-8?B?QmVow7pu?= Subject: Re: [PATCH net-next 2/6] software node: allow named software node to be created Message-ID: <20220715204841.pwhvnue2atrkc2fx@skbuf> References: <20220715201715.foea4rifegmnti46@skbuf> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220715_134848_261529_8F8D7111 X-CRM114-Status: GOOD ( 21.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 15, 2022 at 11:33:40PM +0300, Andy Shevchenko wrote: > On Fri, Jul 15, 2022 at 11:17:15PM +0300, Vladimir Oltean wrote: > > On Fri, Jul 15, 2022 at 10:57:55PM +0300, Andy Shevchenko wrote: > > > On Fri, Jul 15, 2022 at 05:01:32PM +0100, Russell King wrote: > > > > From: Vladimir Oltean > > > > > > > > Allow a named software node to be created, which is needed for software > > > > nodes for a fixed-link specification for DSA. > > > > > > In general I have no objection, but what's worrying me is a possibility to > > > collide in namespace. With the current code the name is generated based on > > > unique IDs, how can we make this one more robust? > > > > Could you be more clear about the exact concern? > > Each software node can be created with a name. The hierarchy should be unique, > means that there can't be two or more nodes with the same path (like on file > system or more specifically here, Device Tree). Allowing to pass names we may > end up with the situation when it will be a path collision. Yet, the static > names are easier to check, because one may run `git grep ...` or coccinelle > script to see what's in the kernel. So won't kobject_init_and_add() fail on namespace collision? Is it the problem that it's going to fail, or that it's not trivial to statically determine whether it'll fail? Sorry, but I don't see something actionable about this. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel