Re: [PATCH nf] netfilter: ebtables: compat: un-break 32bit setsockopt when no rules are present

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

 



Francesco Ruggeri <fruggeri@xxxxxxxxxx> wrote:
> After running this patch for a few days I got this panic.
> It seems to be because when we skip xt_compat_init_offsets()
> in compat_do_replace(), we also fail to set some values in
> xt[NFPROTO_BRIDGE] that are later needed in
> pr_debug(..., xt_compat_calc_jump(NFPROTO_BRIDGE, ...))

What about making xt_compat_calc_jump() deal with this?

adding a

if (!tmp)
	return 0;

should work.  Only alternative I see is a revert + making
xt_compat_init_offsets() treat a 0 size arg as "1" internally.




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

  Powered by Linux