From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0F14C7EE23 for ; Fri, 24 Feb 2023 18:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbjBXSvA (ORCPT ); Fri, 24 Feb 2023 13:51:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbjBXSvA (ORCPT ); Fri, 24 Feb 2023 13:51:00 -0500 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B4B6A7A3 for ; Fri, 24 Feb 2023 10:50:58 -0800 (PST) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1pVd9l-0007qK-G2; Fri, 24 Feb 2023 19:50:57 +0100 Date: Fri, 24 Feb 2023 19:50:57 +0100 From: Florian Westphal To: Satyavani Namala Cc: netdev@vger.kernel.org Subject: Re: Issue with ipv6 icmp reply after dnat over ipsec Message-ID: <20230224185057.GJ26596@breakpoint.cc> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Satyavani Namala wrote: > We are facing an issue while testing ICMP v6 (NAT) with ipsec tunnel, > where ping was not working , as policy is not matching (returning with > LINUX_MIB_XFRMINNOPOLS). > > When we investigated and compared with IPv4 , it was found that, > nf_reset is happening before xfrm6_policy_check in case of IPV6 > compared to IPV4 in which nf_reset is done after xfrm4_policy_check. > > Due to nf_reset, skb->_nfct is NULL and __xfrm_policy_check is returning error. Looks like a bug, can you submit a fix?