diff options
| author | Zihan Xi <zihanx@nebusec.ai> | 2026-10-16 16:14:17 +0000 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-11-05 13:31:10 +0100 |
| commit | 82052e5b5ec36504fe1b9c3c28a711a78fcacf37 (patch) | |
| tree | 31d847d5435acf57f1b39426901d28db7bbd2444 /rust/kernel/alloc/kvec/errors.rs | |
| parent | 832aa3e89e806bb2667fe4e656b705f4088b3c9d (diff) | |
netfilter: nf_dup: preserve guard across NFQUEUE reinjection
NFQUEUE can suspend traversal of a duplicated packet while the task-local
duplication guard is set. The output call then returns and clears the guard
before a later verdict resumes hook traversal.
Save the guard in the queue entry and restore it while reinjection
continues hook traversal. Preserve and restore the verdict task's prior
state, including nested synchronous reinjection.
Fixes: cd58bcd9787e ("netfilter: xt_TEE: have cloned packet travel through Xtables too")
Cc: stable@vger.kernel.org
Reported-by: Vega <vega@nebusec.ai>
Assisted-by: LLM
Co-developed-by: Luxing Yin <root@tr0jan.top>
Signed-off-by: Luxing Yin <root@tr0jan.top>
Signed-off-by: Zihan Xi <zihanx@nebusec.ai>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
