From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA98130FA5 for ; Tue, 3 Oct 2023 14:23:50 +0000 (UTC) Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0E71A3; Tue, 3 Oct 2023 07:23:46 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qngJL-0002O4-4o; Tue, 03 Oct 2023 16:23:43 +0200 Date: Tue, 3 Oct 2023 16:23:43 +0200 From: Florian Westphal To: Xin Long Cc: Simon Horman , network dev , netfilter-devel@vger.kernel.org, linux-sctp@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, Eric Dumazet , Paolo Abeni , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Marcelo Ricardo Leitner Subject: Re: [PATCH nf] netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp Message-ID: <20231003142343.GA8405@breakpoint.cc> References: <6ee630f777cada3259b29e732e7ea9321a99197b.1696172868.git.lucien.xin@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Xin Long wrote: > > The type of vtag is u32. But the type of ct->proto.sctp.vtag[!dir] and init_tag > > is __be32. This doesn't seem right (and makes Sparse unhappy). > You're right, I will fix it and re-post with tag: > > Fixes: 9fb9cbb1082d ("[NETFILTER]: Add nf_conntrack subsystem.") I'm fine with this, the bug is likely inherited from ipt_conntrack_sctp.c, but that doesn't exist anymore. Would you also fix up the __be32/u32 confusion? Better to not add more sparse warnings... Thanks!