]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: Fix oversized kvmalloc() calls
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 13 Sep 2021 18:38:52 +0000 (20:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Sep 2021 01:46:55 +0000 (03:46 +0200)
commit45928afe94a094bcda9af858b96673d59bc4a0e9
treef207a007e9f7ad4fce0aca38b0342a796dc9e119
parenta499b03bf36b0c2e3b958a381d828678ab0ffc5e
netfilter: nf_tables: Fix oversized kvmalloc() calls

The commit 7661809d493b ("mm: don't allow oversized kvmalloc() calls")
limits the max allocatable memory via kvmalloc() to MAX_INT.

Reported-by: syzbot+cd43695a64bcd21b8596@syzkaller.appspotmail.com
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c