X-Received: by 2002:a17:90b:ed4:b0:1bc:5dee:f350 with SMTP id gz20-20020a17090b0ed400b001bc5deef350mr64326pjb.234.1645464994192; Mon, 21 Feb 2022 09:36:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645464994; cv=none; d=google.com; s=arc-20160816; b=hmaQx5isWPjL67lkpDs/gUgQCfKD5KVR8zUkasUA2zOHF3lNDGzyaua/hx2JjJHvIB KJSVk8IoVunC4EgG8LDjIGe5+D6hi0ORV0A/VTjVhF1n53+c1+GB+Nm8+puFomm3KeGD X6sVFNFeUodAqrIFwvuCKLX/Bgvm71xY17+Gj4yIcpwkYfsem4rFSfZzVO9uANu1p/NJ 5ZvPWIqLHcsFQfuji9X/lNb3dOLAZRVPnG9O6uTF3RssFXnWHub11pczEUqf5WYoqOJN KCg1lb4NWcNKwPJ7/YfrNpJQBnk7wfDMPfN5ksEA2lJWKhVx4RwRMhfjohXVxy3sz11j irmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ibflDp1UJaQwt/IeyPpk+CWdnYfeRkR97c9Q//MOLN8=; b=l6JwVEcSaM7en9FRLErwhMROzOvC+MBKTjZXXD4L1Gg9QMGFOjZ52RWCW4IgcqHrUI 7Mbg6ksB6/eqJ1IWj6iUr6gSQJgznGgIk8PpFXDtMuuroZVKYP4la9/x795OK4U+Jwbo yu62KlsvbAjn2OYTVHUPPwtVF1LaJjIGHv8FEMxjjjbu3MGAe/UkRFHD1BCGS31QH7Ez dH7hEWDZt976l/eb1MX/AwtJV095NDIZZHgghzwmeXX3vgn/jAQ44yN0Gu2JYa1it8GW phpavA4N4oUZ8cRceYLUfVzpcRMjxT1coA0l37ZazNQ5xYpFqeyVtd5fcedQglzNiewc cEXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fnQ3I+aL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e27si15771720pgl.309.2022.02.21.09.36.18; Mon, 21 Feb 2022 09:36:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fnQ3I+aL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352106AbiBUJy7 (ORCPT + 99 others); Mon, 21 Feb 2022 04:54:59 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352983AbiBUJsF (ORCPT ); Mon, 21 Feb 2022 04:48:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE0210AF; Mon, 21 Feb 2022 01:22:12 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8DCE4608C4; Mon, 21 Feb 2022 09:22:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EF59C340E9; Mon, 21 Feb 2022 09:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435332; bh=2EEr04gVgGbLsytWBTlmHhQnd4tyf8xiRRSDPKxgK2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fnQ3I+aLn65PCCJEEnHoRCqHfuaVN5yES7yOFfc5vMDP/cq2lwb/tmEm4ezpLSxFh CbrNX5y4U6f4N3y52PaqCRgOZSRWlXWmqG9JcRQuAE0IZnVg6mBgSLfQinm+Y7eLcA 9uWEft/T4WDMJaKn3lahFk1Brnd95OxVRGRg2mqo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jon Maloy , Jakub Kicinski Subject: [PATCH 5.16 127/227] tipc: fix wrong publisher node address in link publications Date: Mon, 21 Feb 2022 09:49:06 +0100 Message-Id: <20220221084939.075238258@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Maloy commit 032062f363b4bf02b1d547f329aa5d97b6a17410 upstream. When a link comes up we add its presence to the name table to make it possible for users to subscribe for link up/down events. However, after a previous call signature change the binding is wrongly published with the peer node as publishing node, instead of the own node as it should be. This has the effect that the command 'tipc name table show' will list the link binding (service type 2) with node scope and a peer node as originator, something that obviously is impossible. We correct this bug here. Fixes: 50a3499ab853 ("tipc: simplify signature of tipc_namtbl_publish()") Signed-off-by: Jon Maloy Link: https://lore.kernel.org/r/20220214013852.2803940-1-jmaloy@redhat.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/tipc/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/tipc/node.c +++ b/net/tipc/node.c @@ -413,7 +413,7 @@ static void tipc_node_write_unlock(struc tipc_uaddr(&ua, TIPC_SERVICE_RANGE, TIPC_NODE_SCOPE, TIPC_LINK_STATE, n->addr, n->addr); sk.ref = n->link_id; - sk.node = n->addr; + sk.node = tipc_own_addr(net); bearer_id = n->link_id & 0xffff; publ_list = &n->publ_list;