summaryrefslogtreecommitdiff
path: root/rust/kernel/workqueue.rs
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2025-01-09 00:56:33 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2025-01-09 15:29:45 +0300
commitb541ba7d1f5a5b7b3e2e22dc9e40e18a7d6dbc13 (patch)
tree2d78a3f0d61b3a175e31129834146aa807e895bc /rust/kernel/workqueue.rs
parent13210fc63f353fe78584048079343413a3cdf819 (diff)
downloadlinux-b541ba7d1f5a5b7b3e2e22dc9e40e18a7d6dbc13.tar.xz
netfilter: conntrack: clamp maximum hashtable size to INT_MAX
Use INT_MAX as maximum size for the conntrack hashtable. Otherwise, it is possible to hit WARN_ON_ONCE in __kvmalloc_node_noprof() when resizing hashtable because __GFP_NOWARN is unset. See: 0708a0afe291 ("mm: Consider __GFP_NOWARN flag for oversized kvmalloc() calls") Note: hashtable resize is only possible from init_netns. Fixes: 9cc1c73ad666 ("netfilter: conntrack: avoid integer overflow when resizing") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'rust/kernel/workqueue.rs')
0 files changed, 0 insertions, 0 deletions