Re: Division by zero on UP (was: Re: netfilter: nat: use keyed locks)

2017-09-10 Thread Geert Uytterhoeven
Hi Florian, On Sun, Sep 10, 2017 at 1:21 PM, Florian Westphal wrote: > Geert Uytterhoeven wrote: >> > srchash = hash_by_src(net, >> > >> > &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); >> > - spin_lock_bh(&nf_nat_lock); >> > +

Re: Division by zero on UP (was: Re: netfilter: nat: use keyed locks)

2017-09-10 Thread Florian Westphal
Geert Uytterhoeven wrote: > > srchash = hash_by_src(net, > > > > &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); > > - spin_lock_bh(&nf_nat_lock); > > + lock = &nf_nat_locks[srchash % ARRAY_SIZE(nf_nat_locks)]; > > +

Division by zero on UP (was: Re: netfilter: nat: use keyed locks)

2017-09-10 Thread Geert Uytterhoeven
Hi Florian, Pablo, On Sat, Sep 9, 2017 at 9:21 PM, Linux Kernel Mailing List wrote: > Web: > https://git.kernel.org/torvalds/c/8073e960a03bf7b5d5ebfc5ff18ac475e1688f46 > Commit: 8073e960a03bf7b5d5ebfc5ff18ac475e1688f46 > Parent: e1bf1687740ce1a3598a1c5e452b852ff2190682 > Refname: