diff options
author | Xin Long <[email protected]> | 2018-04-26 15:21:44 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-04-27 13:34:34 -0400 |
commit | 6a9a27d5397fc6c52f90c09ddab91e65053584aa (patch) | |
tree | a72c1b77d12c5a5257b3d21276d84e3873325f86 /tools/perf/scripts/python/stackcollapse.py | |
parent | 9306b38e42cb266f98bff6f6f4c1c652aa79ba45 (diff) |
sctp: clear the new asoc's stream outcnt in sctp_stream_update
When processing a duplicate cookie-echo chunk, sctp moves the new
temp asoc's stream out/in into the old asoc, and later frees this
new temp asoc.
But now after this move, the new temp asoc's stream->outcnt is not
cleared while stream->out is set to NULL, which would cause a same
crash as the one fixed in Commit 79d0895140e9 ("sctp: fix error
path in sctp_stream_init") when freeing this asoc later.
This fix is to clear this outcnt in sctp_stream_update.
Fixes: f952be79cebd ("sctp: introduce struct sctp_stream_out_ext")
Reported-by: Jianwen Ji <[email protected]>
Signed-off-by: Xin Long <[email protected]>
Acked-by: Neil Horman <[email protected]>
Acked-by: Marcelo Ricardo Leitner <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions