aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorXin Long <[email protected]>2019-07-30 20:38:19 +0800
committerDavid S. Miller <[email protected]>2019-07-30 14:18:14 -0700
commit4c31bc6b1e2ee9c21608506431783dfa525b9989 (patch)
tree93c7b9d7bea7695982a51dcdd29764f72fe3f1f7 /tools/perf/scripts/python/intel-pt-events.py
parent1db88c5343712e411a2dd45375f27c477e33dc07 (diff)
sctp: only copy the available addr data in sctp_transport_init
'addr' passed to sctp_transport_init is not always a whole size of union sctp_addr, like the path: sctp_sendmsg() -> sctp_sendmsg_new_asoc() -> sctp_assoc_add_peer() -> sctp_transport_new() -> sctp_transport_init() In the next patches, we will also pass the address length of data only to sctp_assoc_add_peer(). So sctp_transport_init() should copy the only available data from addr to peer->ipaddr, instead of 'peer->ipaddr = *addr' which may cause slab-out-of-bounds. Signed-off-by: Xin Long <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions