Commit a549faa
netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
[ Upstream commit 0ebc106 ]
Bail out with EOPNOTSUPP when adding rule to bound chain via
NFTA_RULE_CHAIN_ID. The following warning splat is shown when
adding a rule to a deleted bound chain:
WARNING: CPU: 2 PID: 13692 at net/netfilter/nf_tables_api.c:2013 nf_tables_chain_destroy+0x1f7/0x210 [nf_tables]
CPU: 2 PID: 13692 Comm: chain-bound-rul Not tainted 6.1.39 #1
RIP: 0010:nf_tables_chain_destroy+0x1f7/0x210 [nf_tables]
Fixes: d0e2c7d ("netfilter: nf_tables: add NFT_CHAIN_BINDING")
Reported-by: Kevin Rich <kevinrich1337@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 12564ad commit a549faa
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3529 | 3529 | | |
3530 | 3530 | | |
3531 | 3531 | | |
3532 | | - | |
3533 | | - | |
3534 | 3532 | | |
3535 | 3533 | | |
3536 | 3534 | | |
| |||
3543 | 3541 | | |
3544 | 3542 | | |
3545 | 3543 | | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
3546 | 3547 | | |
3547 | 3548 | | |
3548 | 3549 | | |
| |||
0 commit comments