Re: [PATCH nf] xtables: zero padding in data_to_user

2017-05-15 Thread Pablo Neira Ayuso
On Tue, May 09, 2017 at 04:17:37PM -0400, Willem de Bruijn wrote: > From: Willem de Bruijn > > When looking up an iptables rule, the iptables binary compares the > aligned match and target data (XT_ALIGN). In some cases this can > exceed the actual data size to include padding bytes. > > Before

[PATCH nf] xtables: zero padding in data_to_user

2017-05-09 Thread Willem de Bruijn
From: Willem de Bruijn When looking up an iptables rule, the iptables binary compares the aligned match and target data (XT_ALIGN). In some cases this can exceed the actual data size to include padding bytes. Before commit f77bc5b23fb1 ("iptables: use match, target and data copy_to_user helpers"