Thread (6 messages) flat view 6 messages, 4 authors, 2017-09-27

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

From: David Miller <davem@davemloft.net>
Date: 2017-09-27 04:17:58
Also in: kernel-janitors, linux-sctp

From: Dan Carpenter <redacted>
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: d25adbeb0cdb ("sctp: fix an use-after-free issue in sctp_sock_dump")
Signed-off-by: Dan Carpenter <redacted>
---
v2: The v1 patch changed the function to take a long pointer, but v2
    just changes the caller.
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help