netfilter: x_tables: use printk ratelimiting
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 0 repliesNew
- v17 patches 7 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | netfilter: x_tables: remove pr_info where possiblenet/ net/ net/ +4 more | +16 | 0 replies | |
| 2/9 | netfilter: x_tables: use pr ratelimiting in xt corenet/ | +34 | 0 replies | |
| 3/9 | netfilter: xt_CT: use pr ratelimitingnet/ | +13 | 0 replies | |
| 4/9 | netfilter: xt_NFQUEUE: use pr ratelimitingnet/ | +5 | 0 replies | |
| 5/9 | netfilter: xt_set: use pr ratelimitingnet/ | +25 | 0 replies | |
| 6/9 | netfilter: bridge: use pr ratelimitingnet/ net/ | +7 | 0 replies | |
| 7/9 | netfilter: x_tables: rate-limit table mismatch warningsnet/ net/ net/ +1 more | +8 | 0 replies | |
| 8/9 | netfilter: x_tables: use pr ratelimiting in matches/targetsnet/ net/ net/ | +40 | 0 replies | |
| 9/9 | netfilter: x_tables: use pr ratelimiting in all remaining spotsnet/ net/ net/ +31 more | +116 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 nf 0/9] netfilter: x_tables: use printk ratelimiting
Aeons ago, before namespaces, there was no need to ratelimit this:
all of these error messages got triggered in response to iptables commands, which need CAP_NET_ADMIN.
Nowadays we have namespaces, so its better to ratelimit these. This should also help fuzzing (syzkaller), as it can generate a large volume of error messages (which are useless there).
First patch get rid of printks that should never be triggered, as userland doesn't generate such malformed rules.
The other patches convert all matches/targets.
In some cases, modules used pr_err() for errors that are just a hint to and user as to why the rule was rejected, so this uses pr_info_ratelimited everywhere.
Only exceptions are when the error appears to be due to a bug, i.e. ABI breakage and other incompatible changes that should not happen.
Note that most patches introduce overly long lines, but splitting these would make it necessary to split the error messages which is worse.
46 files changed, 264 insertions(+), 262 deletions(-)