Skip to content

sctp: fix a NULL pointer dereference in sctp_sched_dequeue_common

Xin Long linux-sctp netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2sctp: remove the unnecessary sinfo_stream check in sctp_prsctp_prune_unsentnet/sctp/outqueue.c+3 -50 repliesApplied
2/2sctp: clear out_curr if all frag chunks of current msg are prunednet/sctp/outqueue.c+5 -00 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchCaowangbao
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] sctp: fix a NULL pointer dereference in sctp_sched_dequeue_common

This issue was triggered with SCTP_PR_SCTP_PRIO in sctp, and caused by not checking and fixing stream->out_curr after removing a chunk from this stream.

Patch 1 removes an unnecessary check and makes the real fix easier to add in Patch 2.

Xin Long (2):
sctp: remove the unnecessary sinfo_stream check in
sctp_prsctp_prune_unsent
sctp: clear out_curr if all frag chunks of current msg are pruned

 net/sctp/outqueue.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
Signature · 1 line
2.31.1