[PATCH] net: core: Fix slab-out-of-bounds in netdev_stats_to_stats64

2017-07-02 Thread Alban Browaeys
f8801be248c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 8801be248c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc == Signed-off-by: Alban Browaeys <alban.browa...@gmail.com> --- net/core/dev.c | 2 +- 1 file c

[PATCH v2] netfilter: xt_hashlimit: Fix integer divide round to zero.

2017-02-06 Thread Alban Browaeys
2 gives: 0 as user2creds output Setting burst to "1" typically solve the issue ... but setting it to "40" does too ! This is on 32bit arch calling into revision 2 of hashlimit. Signed-off-by: Alban Browaeys <alban.browa...@gmail.com> --- v2: - fix missing conditional state

Re: [PATCH] netfilter: xt_hashlimit: Fix integer divide round to zero.

2017-02-06 Thread Alban Browaeys
Le lundi 06 février 2017 à 14:04 +0100, Pablo Neira Ayuso a écrit : > On Sat, Feb 04, 2017 at 11:47:31PM +0100, Alban Browaeys wrote: > > diff --git a/net/netfilter/xt_hashlimit.c > > b/net/netfilter/xt_hashlimit.c > > index 10063408141d..df75ad643eef 100644 > > --- a/n

[PATCH] netfilter: xt_hashlimit: Fix integer divide round to zero.

2017-02-04 Thread Alban Browaeys
2 gives: 0 as user2creds output Setting burst to "1" typically solve the issue ... but setting it to "40" does too ! This is on 32bit arch calling into revision 2 of hashlimit. Signed-off-by: Alban Browaeys <alban.browa...@gmail.com> --- net/netfilter/xt_hashlimit.c | 18 +