Xin Long 6910e25de2 sctp: remove sctp_chunk_put from fail_mark err path in sctp_ulpevent_make_rcvmsg
In Commit 1f45f78f8e51 ("sctp: allow GSO frags to access the chunk too"),
it held the chunk in sctp_ulpevent_make_rcvmsg to access it safely later
in recvmsg. However, it also added sctp_chunk_put in fail_mark err path,
which is only triggered before holding the chunk.

syzbot reported a use-after-free crash happened on this err path, where
it shouldn't call sctp_chunk_put.

This patch simply removes this call.

Fixes: 1f45f78f8e51 ("sctp: allow GSO frags to access the chunk too")
Reported-by: syzbot+141d898c5f24489db4aa@syzkaller.appspotmail.com
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-10 17:48:36 -04:00
..
2018-05-04 12:52:47 -04:00
2018-03-27 13:18:09 -04:00
2018-05-03 15:14:57 -04:00
2018-05-10 15:42:52 -04:00
2018-05-10 15:42:52 -04:00
2018-03-27 13:18:09 -04:00
2018-05-08 00:11:40 -04:00
2018-03-27 13:18:09 -04:00
2018-05-04 12:54:38 -04:00
2018-04-24 13:17:08 -04:00
2018-03-27 13:18:09 -04:00
2018-05-03 14:47:31 -04:00
2018-04-15 23:49:27 -04:00
2018-02-01 09:51:57 -08:00