From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794536961; b=LuTib6/YBbwgdzPnF8ZCYT++oywyG6bVlVOaCcAkRlaTOjnr/7KBQvvv5kS1wfp0Tuws MDpueIWb4tSySzpkEa9D2w2kjZ+cNvNaFlsIKpmgvcUeavBCX9fRvpGAvIB7SXVu+VEe+ oNToCeua4ZIC4OXiNDoHex7+YxoeVPwUkpYkRxIyit26jwtiYBRrBQcNjP3pn8jY6YSFJ pyo4BZVpWB5lihdduwYLpQVZ4U9xn1GkvPXOGzW3H8dAkxQ8BiuQgbcTZPjvWbcw8ZX+c 5VhdElB/NUo6xdq1b4aVRl0kZHreRQcJMqc4JGOi9zq8R0p6n8qTf8oYwUjH5e9D/MQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794536961; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=TghEp7p8+eQn+xXccg/iuYCg44RMlbPitTII5OfFE0U=; b=GO1jafc0hCAmR29tyiNaCttE4XQFGN1SUo8b4v0Cqk/X29MCoVnV5qV0YKxIqb/PQ8iQ msr4w3++wimt5t2DtTjvEddF7LaWOyq6e5dXXkVlP2QRt8IGYYP7el1l2HI9uGSGKNlED ZTYm5etcxD17YNRYESGR01f12flGVjdOsuNTZvrNGJNAcXdzuaX9tQQfPiETQfrnqucJH tvZvK+kEf9c/ucmmUGyVslRt+wHL6cDXmJ1kJRLl/ozBLUeWlvfeFqlrggdmc+IcJ2WxL BwHUtgtfC6VJZJOOJA7+usMmB3zjA+f6BCjocO4hsZFaoDjbU+tLQi0Gka8Eao5OoKw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=QLKxCfku; arc=none smtp.remote-ip=91.218.175.43 Received: from mta0.migadu.com (out-43.mta0.migadu.com [91.218.175.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9830D606A32D for ; Fri, 13 Nov 2026 02:29:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9830D606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=QLKxCfku X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=0OtJooa9aydrZp8DkVzRpBy+NvnMkoj0XNcJ9NHvkEE=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1794536958; v=1; x=1795141758; b=QLKxCfku/igd/Zp1PGFhiPVVBxmx7oZeWWj2Q5TQLsKaR3hbK0epfsB3xJH3OS53IlTh4FLk zESjxfYuLDnNYOWmjt82BO/4fLwgRiV8zRAvSiGZwqzz61QJUycyHgP/fqn4hmoT8IrBmIbuXI5 jh84gdxnIipaLpLTCRPkzras= X-Envelope-To: linux-kernel@vger.kernel.org Received: by mta11.migadu.com with ESMTPS id 1be86121f214132c; Fri, 13 Nov 2026 02:29:18 +0000 X-Mizu-Trace-ID: 1be86121f214132c X-Migadu-Flow: FLOW_OUT Date: Fri, 13 Nov 2026 10:29:05 +0800 From: Hangbin Liu To: Wenbo Sun Cc: David Ahern , Ido Schimmel , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Hangbin Liu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 1342116488@qq.com Subject: Re: [PATCH net-next v2 0/2] ipv6: fix rt6_fill_node() multicast route query handling Message-ID: References: <20261112094630.197244-1-sunwenbo@cmss.chinamobile.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261112094630.197244-1-sunwenbo@cmss.chinamobile.com> On Thu, Nov 12, 2026 at 05:46:28PM +0800, Wenbo Sun wrote: > When querying an IPv6 multicast route with an input interface via > "ip -6 route get from iif ", rt6_fill_node() > currently calls ip6mr_get_route() unconditionally and masks any negative > error returned by ip6mr_get_route() with -EMSGSIZE at nla_put_failure. > > Patch 1 checks mc_forwarding before calling ip6mr_get_route(), matching > IPv4 rt_fill_info() so queries succeed with RTA_IIF when multicast > routing is disabled. Patch 2 preserves the negative error returned by > ip6mr_get_route() instead of overwriting it with -EMSGSIZE when > multicast forwarding is enabled. > > Thanks to Hangbin Liu for reviewing v1 and pointing out the error > masking issue in rt6_fill_node(). > > Changes in v2: > - Reword patch 1 commit message for clearer tone and carry > Reviewed-by: Hangbin Liu . > - Add patch 2 to preserve negative errors returned by ip6mr_get_route() > instead of returning -EMSGSIZE from nla_put_failure, with > Suggested-by: Hangbin Liu . > - Verify both mc_forwarding=0 and mc_forwarding=1 (MRT6_INIT) cases in > a UML kernel alongside W=1 builds on UML, x86_64 allmodconfig, and > x86_64 allyesconfig. > > Link: https://lore.kernel.org/netdev/20261111094528.425826-1-sunwenbo@cmss.chinamobile.com/ [v1] > > Wenbo Sun (2): > ipv6: check mc_forwarding before calling ip6mr_get_route() > ipv6: preserve ip6mr_get_route() error in rt6_fill_node() > > net/ipv6/route.c | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) > > -- > 2.33.0 > > > Reviewed-by: Hangbin Liu