Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp725355imm; Thu, 13 Sep 2018 06:53:13 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb68KPzUxSJVS7pJ1qgr2OPO6sxu4BRPFjRhc/uWS4q0G+bO3H3qaJotkswHput+Jcm93Iq X-Received: by 2002:a63:a619:: with SMTP id t25-v6mr7263826pge.288.1536846793062; Thu, 13 Sep 2018 06:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846793; cv=none; d=google.com; s=arc-20160816; b=V7hi5dmt0JgrNgUpQNFKShOF1l0syuhAA3f7TxzECzxozNj+7dccgHu+lAqoq/+LlA i3bJGbFBg6fCbS7+CVTa6sZfUJgTRQqtaoPKbqLEH9ANEJ3rDWp0stzcvCwYngi5IKoL uxLEUvPJ5D/1S98Y31Tn+I21A7Mbijd/JXpK4kXJ1X16mGmZNWmXhifezCQSeB+z4Ixe u5eFPYO+tN5cq3riKdJMonfYTr0u9JF0mjre0kE7zuN9h2idAAHRQYyUJ7qyoQgHLyre vJOJLW/l2sXZ/CpWy4JJ3BWrawpgEzezsrk26HbjMi0RUHDpFlv9PeBBPni11aTHBdCd za9g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=XpBh81tpQo/BuCxmcptR2O0UEniV/bnIy+okVGMsbLo=; b=WS+55vA3D4wDmXY3mAH1EB2z/rTjtXdyOhD8535P/3y1s83NIi/ftnsLYMAwNk/sDa A+7oOeKXDHVyoih9od88q5SKX2DH/dTTVPKaQYEKqKGohCsEDWrlcOtAhCx/elxJYYbZ VRwzQ6rWP52G0U3C52MNHBsGaD3rEdz/lNpJ4dD+ZKfKVoNntUva8Kvbb2ppBwm9tl2r SwkR0JSyF9wtSdO+6kDSfWvaakOdvknYGwVY28KWKv4ynYlhGxbXiKdXNe+sAwqlSSk+ QSwTeyYK80gdm+jSOnVNoyPqiJejXdbgZTIiUduvi/+HzllcOkxS5m7OsmKsKU7uuwUi lWyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14-v6si4386416pgg.67.2018.09.13.06.52.57; Thu, 13 Sep 2018 06:53:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730589AbeIMTAa (ORCPT + 99 others); Thu, 13 Sep 2018 15:00:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33220 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728484AbeIMTA3 (ORCPT ); Thu, 13 Sep 2018 15:00:29 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9DC8DCFE; Thu, 13 Sep 2018 13:50:54 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Herbert Xu , Ying Xue , Cong Wang , "David S. Miller" Subject: [PATCH 4.18 017/197] tipc: fix a missing rhashtable_walk_exit() Date: Thu, 13 Sep 2018 15:29:26 +0200 Message-Id: <20180913131842.260703416@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Cong Wang [ Upstream commit bd583fe30427500a2d0abe25724025b1cb5e2636 ] rhashtable_walk_exit() must be paired with rhashtable_walk_enter(). Fixes: 40f9f4397060 ("tipc: Fix tipc_sk_reinit race conditions") Cc: Herbert Xu Cc: Ying Xue Signed-off-by: Cong Wang Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/tipc/socket.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -2675,6 +2675,8 @@ void tipc_sk_reinit(struct net *net) rhashtable_walk_stop(&iter); } while (tsk == ERR_PTR(-EAGAIN)); + + rhashtable_walk_exit(&iter); } static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid)