Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2160038iof; Tue, 7 Jun 2022 21:45:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvCg41f39aNHqo3FYSeVoyQqBDl8syGilFSrYnu13pXVRgMOhpyEJwfpzlV5Ugf7j/4eY/ X-Received: by 2002:a05:6a00:14c1:b0:51b:eed4:c571 with SMTP id w1-20020a056a0014c100b0051beed4c571mr22575341pfu.72.1654663528464; Tue, 07 Jun 2022 21:45:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654663528; cv=none; d=google.com; s=arc-20160816; b=RdRU2XNIQ3DSDhORR88QBIjw2wCTfIwq844g3GcUB6qJuNmwLZ0FiUuONEQN9oh6Fk KKucbs0klkcV049UO5/5rA/FobRWtKumNMTgIkB732PRVLBFqNL3s82ye/T+Fey9GUcu HbVZlAUybe5L2sc7E+ELZICD0SDa2/21sGNv9iEzIkK2OFgItV46CrASqV/Z2uKZTJQ3 eHNznEbWB+3zDgCMQdh/yBFz98O8c/CPZc3gLKv7pNftrXjhalwnOLBhcswAObkW4Hvl zMnSdQko9MOIVeAOTaqkZiMqnrQcuKxJEOPRpTJQXjg91Kj1q4jojKbECiH6VKYE/Dzv EaQw== 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=bVXVoY401E+Nk0+o5bz9ITGg09p74OSriTIVAw9hojA=; b=ZtrvjC4ZwcI0PY1NIvZzldEENAfaO6S5cMIUu3RAkJ3TuyukjtvQo09iD7PYVymckY 306tf/Qy9p98kuZp0fFfdwI3dM6eBxLJ3odo5B10/7hpNEQ0Z50ku7FPFCllTmIt6FsA /iHHEbkO1zkH+nmfMIX/4GhvdUvwRCoF/Mkae2xD5xsDwEAWO0YlparPHLxpG4+xKCZL fv7fyk8Jw2Hv1KuyGLF7at5GF2VD2Ex5otNjzTOZISLeG7RprWZF7y46xOX9pO4GSLc8 SujVc8keXToWsSwN/o7mXO15aqB+SC9CMDpm95BWkSrzozIVzFaTBVgHZyInSOWBJ4j4 1zoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kn2fkZpE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t12-20020a1709028c8c00b00153b2d16667si26147332plo.623.2022.06.07.21.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:45:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kn2fkZpE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FDB4453228; Tue, 7 Jun 2022 21:22:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347622AbiFGWLt (ORCPT + 99 others); Tue, 7 Jun 2022 18:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379288AbiFGVJ0 (ORCPT ); Tue, 7 Jun 2022 17:09:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE67213E61; Tue, 7 Jun 2022 11:51:16 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 3F12EB8220B; Tue, 7 Jun 2022 18:51:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2AE7C385A2; Tue, 7 Jun 2022 18:51:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627874; bh=MDwfBG7S4XMz0GzRuwAmHXVTxzGrPYUTQCoPOICLb8s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kn2fkZpEaw4Wg/C6eFoe8PFdpMYytQFGJ+WF7M2tW9qRhz7WO4594K8Hl1AaUyee5 IDBjJAO6jwKusJ6k5O3LzN5aMyczm0XtXIIEN3p5Zs0kVE/olKVsZy4VkCtlLr5vBT Sb5A79AtdMqG9NJHHzamDarX6hljAB6FA1flO6Zo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, jianghaoran , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.18 125/879] ipv6: Dont send rs packets to the interface of ARPHRD_TUNNEL Date: Tue, 7 Jun 2022 18:54:03 +0200 Message-Id: <20220607165006.330043585@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: jianghaoran [ Upstream commit b52e1cce31ca721e937d517411179f9196ee6135 ] ARPHRD_TUNNEL interface can't process rs packets and will generate TX errors ex: ip tunnel add ethn mode ipip local 192.168.1.1 remote 192.168.1.2 ifconfig ethn x.x.x.x ethn: flags=209 mtu 1480 inet x.x.x.x netmask 255.255.255.255 destination x.x.x.x inet6 fe80::5efe:ac1e:3cdb prefixlen 64 scopeid 0x20 tunnel txqueuelen 1000 (IPIP Tunnel) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 3 dropped 0 overruns 0 carrier 0 collisions 0 Signed-off-by: jianghaoran Link: https://lore.kernel.org/r/20220429053802.246681-1-jianghaoran@kylinos.cn Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- net/ipv6/addrconf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 1afc4c024981..51e77dc6571a 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -4219,7 +4219,8 @@ static void addrconf_dad_completed(struct inet6_ifaddr *ifp, bool bump_id, send_rs = send_mld && ipv6_accept_ra(ifp->idev) && ifp->idev->cnf.rtr_solicits != 0 && - (dev->flags&IFF_LOOPBACK) == 0; + (dev->flags & IFF_LOOPBACK) == 0 && + (dev->type != ARPHRD_TUNNEL); read_unlock_bh(&ifp->idev->lock); /* While dad is in progress mld report's source address is in6_addrany. -- 2.35.1