Re: [PATCH net v2] sctp: Fix a big endian bug in sctp_diag_dump()

2017-09-26 Thread David Miller
From: Dan Carpenter Date: Mon, 25 Sep 2017 13:19:26 +0300 > The sctp_for_each_transport() function takes an pointer to int. The > cb->args[] array holds longs so it's only using the high 32 bits. It > works on little endian system but will break on big endian 64 bit > machines. > > Fixes: d25a

Re: [PATCH net v2] sctp: Fix a big endian bug in sctp_diag_dump()

2017-09-25 Thread Xin Long
On Mon, Sep 25, 2017 at 6:19 PM, Dan Carpenter wrote: > The sctp_for_each_transport() function takes an pointer to int. The > cb->args[] array holds longs so it's only using the high 32 bits. It > works on little endian system but will break on big endian 64 bit > machines. > > Fixes: d25adbeb0c

Re: [PATCH net v2] sctp: Fix a big endian bug in sctp_diag_dump()

2017-09-25 Thread Neil Horman
On Mon, Sep 25, 2017 at 01:19:26PM +0300, Dan Carpenter wrote: > The sctp_for_each_transport() function takes an pointer to int. The > cb->args[] array holds longs so it's only using the high 32 bits. It > works on little endian system but will break on big endian 64 bit > machines. > > Fixes: d

[PATCH net v2] sctp: Fix a big endian bug in sctp_diag_dump()

2017-09-25 Thread Dan Carpenter
The sctp_for_each_transport() function takes an pointer to int. The cb->args[] array holds longs so it's only using the high 32 bits. It works on little endian system but will break on big endian 64 bit machines. Fixes: d25adbeb0cdb ("sctp: fix an use-after-free issue in sctp_sock_dump") Signed-