Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9764EC433DB for ; Sat, 27 Feb 2021 16:19:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 64BED64E4B for ; Sat, 27 Feb 2021 16:19:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbhB0QTI (ORCPT ); Sat, 27 Feb 2021 11:19:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbhB0QRo (ORCPT ); Sat, 27 Feb 2021 11:17:44 -0500 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25C01C06174A for ; Sat, 27 Feb 2021 08:17:03 -0800 (PST) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1lG2H5-0002Hz-6E; Sat, 27 Feb 2021 17:16:59 +0100 Date: Sat, 27 Feb 2021 17:16:59 +0100 From: Florian Westphal To: Vasily Averin Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, Patrick McHardy Subject: Re: [PATCH] netfilter: gpf inside xt_find_revision() Message-ID: <20210227161659.GB17911@breakpoint.cc> References: <75817029-1d99-0e41-1d5b-76fa4a45aafa@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75817029-1d99-0e41-1d5b-76fa4a45aafa@virtuozzo.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Vasily Averin wrote: > nested target/match_revfn() calls work with xt[NFPROTO_UNSPEC] lists > without taking xt[NFPROTO_UNSPEC].mutex. This can race with module unload > and cause host to crash: Reviewed-by: Florian Westphal