Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15370416rwd; Sun, 25 Jun 2023 16:16:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4FyB1xrf+/bNr0xC8kzDHsC5JAwLbsUGsEs6TbstMonY0sB+Lsb7ww2kvrYfQeczxCLjRi X-Received: by 2002:a17:907:3da6:b0:98c:b942:dc7d with SMTP id he38-20020a1709073da600b0098cb942dc7dmr11545258ejc.64.1687735015679; Sun, 25 Jun 2023 16:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687735015; cv=none; d=google.com; s=arc-20160816; b=xw0X2OSQKQxIWn0kCYycxXC8vubZ8fJFRDWsiYVRhU/pn2Dtoii3LDtPcX+KVt3zaT A0Fg7R5OsE1XkWOncUKj9d8TS/k0nf5lxMNmjizXYHC4TCtLqnjB3q48PcB+hmxkByi/ CwoAeq9wy3N6+8bjKKTPCDBfC7UhpVqx7liiHivtFTIWihyLwA/p6JqZOmnej2+PJYOD wYxthlgANhGMnZawKVIR0tx5S4OWWWtzaEoirs32vP6ULdnRPRK3AU9zuB3eu6H/2qw6 9E+O5qbv6PPYe+dNuckwRAwYE5mXRZdE4O9dE4UGDbDFBNQMj7MGRcdCXXiuCVhsaSqn Ze9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=MCsd8Vq1N+yXwz3woll2N5Arn0T/ps6PUG8FAtgp2Qo=; fh=KLG+BF+hVUa1KKUxiROVC4R5/n1l7gJf40dcJZWjCvY=; b=nqyy1ICoqG1mVVXDple01+8jjn8dDcrKa55AxnqvqnGNF/HjgTWWA6IkGiKq7h7tjH ewpI6swa6sy5c36OYl8bmXol1qaUZbpwPHOgzdd9HxxCMLfVO5gESyl2ucMYoXThSDAi z3z/g68P6Wh8fLsH6phSZ23kAEwpkcHOu5ttNnNUSSWJZiBMUPwaRGsjMly3cjDKlFKJ FJYgpQm10uR2LVJRtWo8BZxXNG6UDsbmNCXqBJRkx+oqkGwAsjkczSKHU68dlh/otNCa pMjSslVV4USlkRSr8A8jYIn/r+iWEEnJWV2rYLsJkuYiQ9iokFEvJG5RDEUSvSlZvA+R jzZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dx16-20020a170906a85000b00987522042e7si1988848ejb.245.2023.06.25.16.16.31; Sun, 25 Jun 2023 16:16:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbjFYXFv (ORCPT + 99 others); Sun, 25 Jun 2023 19:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbjFYXFr (ORCPT ); Sun, 25 Jun 2023 19:05:47 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1453BE40; Sun, 25 Jun 2023 16:05:45 -0700 (PDT) Date: Mon, 26 Jun 2023 01:05:41 +0200 From: Pablo Neira Ayuso To: Matthias Maier Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: Re: Kernel oops with netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE Message-ID: References: <87cz1j5tof.fsf@43-1.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87cz1j5tof.fsf@43-1.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi, On Sun, Jun 25, 2023 at 12:38:08PM -0500, Matthias Maier wrote: > Dear all, > > commit 1240eb93f0616b21c675416516ff3d74798fdc97 > aka bdace3b1a51887211d3e49417a18fdbd315a313b (linux-6.3.y) > netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE > > causes a kernel oops on my side when booting my machine; see attached. > > Reverting this commit fixes the kernel oops. > Tested on 6.3.9 and 6.4.0-rc7 Could you give a try to these two fixes on top? 26b5a5712eb8 netfilter: nf_tables: add NFT_TRANS_PREPARE_ERROR to deal with bound set/chain 4bedf9eee016 netfilter: nf_tables: fix chain binding transaction logic These patches are scheduled for 6.4 You might also need this one on top: https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230625224219.64876-1-pablo@netfilter.org/ If problem still persists, a reproducer would be good to have. Thanks.