netfilter: nfnetlink_cthelper: unbreak userspace helper support
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 24 May 2020 19:04:42 +0000 (21:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:18:09 +0000 (08:18 +0200)
commit6d968103019c4e17c75c71b98175dc62585cdb1e
treeb333cffd7a3ffd6e9502ece46d86a53541a0c5d2
parentbfdb6de42e7772e69e148612d755d31fe3fe61d6
netfilter: nfnetlink_cthelper: unbreak userspace helper support

commit 703acd70f2496537457186211c2f03e792409e68 upstream.

Restore helper data size initialization and fix memcopy of the helper
data size.

Fixes: 157ffffeb5dc ("netfilter: nfnetlink_cthelper: reject too large userspace allocation requests")
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nfnetlink_cthelper.c