Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5425652yba; Wed, 8 May 2019 13:09:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxBBr9rmtyA/czfBiUnubsQPNgb4PaCcOZ4pUUTfI+8VpXItQKDCKUlmoc1yIrWoSWDtxW X-Received: by 2002:a63:2124:: with SMTP id h36mr52878pgh.186.1557346163470; Wed, 08 May 2019 13:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557346163; cv=none; d=google.com; s=arc-20160816; b=Ge56rbtPwMR5Fka2m5qa0DYTLwYZr6ZHqveb5yY0CatNnTkAlJGP1xow0WruN13RLK Th+KCv+SYcRuwlQd2Ck6KWpPUOm9uDW9jXm7Loq9y2ywmxKrNZBfqhupQpGp1gLtEZ4y 4dgT/bSty8H3OKlUj2jFJDahU7u2EYq8oCPgocLLOXLw/3IUXoeBnuFPVPByEwSglmwG BZtlz6sQ7ShiSuFGVYcfsDD8G0Ml/phPSCb9ea20XqPRf84NvHPewdZl+iiK162pucMD E9aj1nET75jgxhLWx6Bqc7b6iuAIBAOcprRPXdLYvW7BK/SH/S94XVbHuE6aty/2b/hW hzbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=qIetWDv4+uBIOVqkeb68fVDdokjhpaBl7wMXX9efLfc=; b=Aj8pcoAJQzuNYXgnvFFrOwuhg5vu9O5rv7kxsUmUe87tvHEBWvnvbxT5/vrUpRW0qa ebzxnuIxZihqJ77fZM1iqLWymtzW6dZMtdNMU8uAI+NR6w4LRu3MkxluSHwddFaE0ZkU z117MbBRw5U95lzqcxjbSZCyF2T4M4/zfS4f95J4GcL/1wEwH2jIxleM+52Eo3BvM4vw Q6QwIkmV7HwYU3/PdQ58Mjn8U2zrnqmXai1k1O/hawjwCAXnYiqhn68G/oemkems8H8b BfYToNrQ0iWd6CiuWgNfmfuDw/H+rhHdeTGKga3TA11P0LRMqTkXBAamERMeigtqNyWP tfTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bP1jRGQH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j91si19518646pld.267.2019.05.08.13.09.07; Wed, 08 May 2019 13:09:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bP1jRGQH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729233AbfEHScM (ORCPT + 99 others); Wed, 8 May 2019 14:32:12 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37950 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729213AbfEHScM (ORCPT ); Wed, 8 May 2019 14:32:12 -0400 Received: by mail-pg1-f195.google.com with SMTP id j26so10514040pgl.5; Wed, 08 May 2019 11:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=qIetWDv4+uBIOVqkeb68fVDdokjhpaBl7wMXX9efLfc=; b=bP1jRGQHKHAyV8RCpsbv3stlScbSzAWrWTJNP5jDmYq/hi9ac3BG1MIW/LEiOVrHgc +AQw5EwKPlM+V1LPmo3q+tdS7LVvZ1yL06scRv+7eTqZkDFBHbeqJuBF3T0wGWBwjx60 vAoU8qFRjxWIkw3lu8T6ByInNowUzibQCHSlc4eHwIPz8yX0q9Cn21PV97vAB08mg6up vAqpMeRyChIE59HTcJoFzayOEfR9YiEslvES1uJlQIbaYkZFxl1bXYNDdhxH/SmnOAzc 6427yCcTvJmll1K5JST3q3JpprycZuXZ4mrLfNcjAu4sNpDdUyel0vtxE6XCi0DA0eWL XsBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qIetWDv4+uBIOVqkeb68fVDdokjhpaBl7wMXX9efLfc=; b=VzPrsJrpiub8QthdI7rdHF4r1coR/jhc+u2hZViMauxvwC0DgHDRThBcNrDJ1OiudT 1I+iLbfCAfiB+0cUQYHvhMjjJ5nLekH/ZzvXmWyZ75FcAQpP310Bfb/r4AYvH/dbRWZ0 k/ecOPQkOUIRHssqbBAbwDD6PQ0nQ5OIktvVfOkN0IC3su6M87vikJb1iV9T1Qur/Faz 0tFF59IkzP9KhDTei9xQBLUGldpLUjgY1ML5YOhzovphKcZAAuqew/ek8BgKkD70OqxY 4LbDui1hezaPmk0Bp9J6MWnKz/PvIO1WcxuEeC82YwdR5EaFM8GO5R/FN/Tfj6IL3CX1 autQ== X-Gm-Message-State: APjAAAVXa5ZRia09n2fFc+UI6dg0MfW2eca2dDqzH7cql6JGOYoaZa17 BvYYGCReD8w8b1bp0gNBnascgE3R52Fz2A== X-Received: by 2002:a65:6496:: with SMTP id e22mr49157168pgv.249.1557340331223; Wed, 08 May 2019 11:32:11 -0700 (PDT) Received: from localhost.localdomain ([122.170.180.197]) by smtp.googlemail.com with ESMTPSA id 2sm12843903pgc.49.2019.05.08.11.32.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 11:32:10 -0700 (PDT) From: Jagdish Motwani To: netdev@vger.kernel.org Cc: j.k.motwani@gmail.com, Jagdish Motwani , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org Subject: [PATCH net] netfilter: nf_queue:fix reinject verdict handling Date: Thu, 9 May 2019 00:01:14 +0530 Message-Id: <20190508183114.7507-1-j.k.motwani@gmail.com> X-Mailer: git-send-email 2.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jagdish Motwani In case of more than 1 nf_queues, hooks between them are being executed more than once. Signed-off-by: Jagdish Motwani --- net/netfilter/nf_queue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c index 9dc1d6e..b5b2be5 100644 --- a/net/netfilter/nf_queue.c +++ b/net/netfilter/nf_queue.c @@ -255,6 +255,7 @@ static unsigned int nf_iterate(struct sk_buff *skb, repeat: verdict = nf_hook_entry_hookfn(hook, skb, state); if (verdict != NF_ACCEPT) { + *index = i; if (verdict != NF_REPEAT) return verdict; goto repeat; -- 2.9.5