Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1476866ybl; Thu, 22 Aug 2019 15:28:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhDxr5qNnqbqC84+aEqvMxXgxGQXmM9Qym51NOpROKNfSmHYPja298444BPS29fn+LBVDx X-Received: by 2002:aa7:9e4f:: with SMTP id z15mr1550841pfq.89.1566512903008; Thu, 22 Aug 2019 15:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566512903; cv=none; d=google.com; s=arc-20160816; b=OUglVH2UMszGkUE5MWL2gPvO/ktynhAwghj6uSnb7MRr4XXcuhlxjKYB7H9Bsw0+za REf+RMb0Qdrj8oWGLdlhHKtK9FtEYE5ccBB4zrtF72WxyaV0K2R4PMBQYOeaaxlb1KdL Y1X7ocZA4mkULKJtCbmF26l23uuoMuTw8+rIiPl+LSCwBEh7UmAa+A8h3yOEQY14hUZC hWK7s42eTLUaskuXHjlk3XlZJeEKmniQrjs3wVuPrXRBg0TpSdGuyAhZPEDRSCIrYB1K cgzu0AvhDJk6kLJWYygQEf15ZPUvLdnU4VKzcEi6BD+hjsvO1FGY3swXnh9Dm8Ty7lEu Vmjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vxzJpFfsoD84FgxXhzZYuICPwni2rA/4CGQwgoHLeVo=; b=TDe90rbiRFGT8FHiUHDNQhy2bpTvSl7MzScqPiQzO3G18rVQCWZ4QWrX5HWt3anF65 whrxyAIZQeuwGeyPs51ybnJFo9NTup8A3nHzBabV+EPqphIVwHfOAqGZXXck+jG5y4Ae ZYdwMZM5ziPg3f03zca2Zs6ITv3lRzlMuDkrNDzu8k1hRLGk8bBvwyQNwqsH9fowvkGR dyJNkyHqqV7WMqgx7W/l1qyBLudbFd+c3vV9fVPV7i3rUTJop8G6OgeYrUpVbJBZnMU0 hmuJQg4En+wuM7pHy4Hv1imxa1YjOASSRUl2IBuV/C7hN8PcaQUn97mTlttDGWGymu07 oiqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eV5oyAIc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si811155pfo.68.2019.08.22.15.28.07; Thu, 22 Aug 2019 15:28:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eV5oyAIc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390880AbfHVRLE (ORCPT + 99 others); Thu, 22 Aug 2019 13:11:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:59648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390721AbfHVRJS (ORCPT ); Thu, 22 Aug 2019 13:09:18 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0663D23404; Thu, 22 Aug 2019 17:09:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493757; bh=DoT9S0gprPtByE9wu5OYh8hWRFkIVSatF+SD1AXibZc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eV5oyAIcwo/Wnz2epDMjVfKJl12QV18X41c1lm++vX5hxvMKNUp4JK409ozqO1dJj 44W9maemEp7OLJEw3ei7ptKvUWULwrV2ur3dqo+289ZwCYrLzltS6WzpIJ0ZRj5TtK Jgf5eIL1EPWTtSe1F2d7dQ+fibjP7vlHhDD20r6o= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chris Packham , Jon Maloy , "David S . Miller" , Greg Kroah-Hartman Subject: [PATCH 5.2 116/135] tipc: initialise addr_trail_end when setting node addresses Date: Thu, 22 Aug 2019 13:07:52 -0400 Message-Id: <20190822170811.13303-117-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Packham [ Upstream commit 8874ecae2977e5a2d4f0ba301364435b81c05938 ] We set the field 'addr_trial_end' to 'jiffies', instead of the current value 0, at the moment the node address is initialized. This guarantees we don't inadvertently enter an address trial period when the node address is explicitly set by the user. Signed-off-by: Chris Packham Acked-by: Jon Maloy Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/tipc/addr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/tipc/addr.c b/net/tipc/addr.c index b88d48d009130..0f1eaed1bd1b3 100644 --- a/net/tipc/addr.c +++ b/net/tipc/addr.c @@ -75,6 +75,7 @@ void tipc_set_node_addr(struct net *net, u32 addr) tipc_set_node_id(net, node_id); } tn->trial_addr = addr; + tn->addr_trial_end = jiffies; pr_info("32-bit node address hash set to %x\n", addr); } -- 2.20.1