Re: sctp: bad hash index calculation

2016-02-15 Thread Neil Horman
On Mon, Feb 15, 2016 at 04:56:01PM +0100, Dmitry Vyukov wrote: > On Mon, Feb 15, 2016 at 4:50 PM, Neil Horman wrote: > > On Mon, Feb 15, 2016 at 04:11:22PM +0100, Dmitry Vyukov wrote: > >> Hello, > >> > >> While looking into some memory leaks of sctp ports I've noticed that > >> sctp_init initiali

Re: sctp: bad hash index calculation

2016-02-15 Thread Dmitry Vyukov
On Mon, Feb 15, 2016 at 4:50 PM, Neil Horman wrote: > On Mon, Feb 15, 2016 at 04:11:22PM +0100, Dmitry Vyukov wrote: >> Hello, >> >> While looking into some memory leaks of sctp ports I've noticed that >> sctp_init initializes port hash table as follows: >> >> /* Allocate and initialize the SC

Re: sctp: bad hash index calculation

2016-02-15 Thread Neil Horman
On Mon, Feb 15, 2016 at 04:11:22PM +0100, Dmitry Vyukov wrote: > Hello, > > While looking into some memory leaks of sctp ports I've noticed that > sctp_init initializes port hash table as follows: > > /* Allocate and initialize the SCTP port hash table. */ > do { > sctp_port_hash

sctp: bad hash index calculation

2016-02-15 Thread Dmitry Vyukov
Hello, While looking into some memory leaks of sctp ports I've noticed that sctp_init initializes port hash table as follows: /* Allocate and initialize the SCTP port hash table. */ do { sctp_port_hashsize = (1UL << order) * PAGE_SIZE / sizeof(struct sctp_bind