Skip to content
Commit 35c2f40a authored by Jagdish Motwani's avatar Jagdish Motwani Committed by Paul Gortmaker
Browse files

netfilter: nf_queue: fix reinject verdict handling

commit 946c0d8e upstream.

This patch fixes netfilter hook traversal when there are more than 1 hooks
returning NF_QUEUE verdict. When the first queue reinjects the packet,
'nf_reinject' starts traversing hooks with a proper hook_index. However,
if it again receives a NF_QUEUE verdict (by some other netfilter hook), it
queues the packet with a wrong hook_index. So, when the second queue
reinjects the packet, it re-executes hooks in between.

Fixes: 960632ec

 ("netfilter: convert hook list to an array")
Signed-off-by: default avatarJagdish Motwani <jagdish.motwani@sophos.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 9e48d816
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment