Re: [PATCH nf v2] netfilter: compat: initialize all fields in xt_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Francesco Ruggeri <fruggeri@xxxxxxxxxx> wrote:
> If a non zero value happens to be in xt[NFPROTO_BRIDGE].cur at
> init time, the following panic can be caused by running
> % ebtables -t broute -F BROUTING
> from a 32-bit user level on a 64-bit kernel.
> This patch replaces kmalloc_array with kcalloc when allocating xt.
> 
> v2: use kcalloc when creating xt instead of zeroing out individual fields.

Thanks a lot for this fix!

Acked-by: Florian Westphal <fw@xxxxxxxxx>




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux