android_kernel_samsung_a7y1.../net/sctp
Xin Long d46852d4fb sctp: free cmd->obj.chunk for the unprocessed SCTP_CMD_REPLY
[ Upstream commit be7a7729207797476b6666f046d765bdf9630407 ]

This patch is to fix a memleak caused by no place to free cmd->obj.chunk
for the unprocessed SCTP_CMD_REPLY. This issue occurs when failing to
process a cmd while there're still SCTP_CMD_REPLY cmds on the cmd seq
with an allocated chunk in cmd->obj.chunk.

So fix it by freeing cmd->obj.chunk for each SCTP_CMD_REPLY cmd left on
the cmd seq when any cmd returns error. While at it, also remove 'nomem'
label.

Reported-by: syzbot+107c4aff5f392bf1517f@syzkaller.appspotmail.com
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:29:10 +02:00
..
associola.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
auth.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bind_addr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chunk.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
endpointola.c sctp: change to hold sk after auth shkey is created successfully 2020-04-06 19:17:23 +02:00
input.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inqueue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ipv6.c sctp: fix the issue that flags are ignored when using kernel_connect 2020-04-07 09:28:40 +02:00
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
objcnt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
output.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
outqueue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
primitive.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
probe.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
protocol.c sctp: fully initialize v4 addr in some functions 2020-04-07 13:22:20 +02:00
sm_make_chunk.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sm_sideeffect.c sctp: free cmd->obj.chunk for the unprocessed SCTP_CMD_REPLY 2020-04-07 13:29:10 +02:00
sm_statefuns.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sm_statetable.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
socket.c inet: stop leaking jiffies on the wire 2020-04-07 09:29:41 +02:00
ssnmap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysctl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
transport.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tsnmap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ulpevent.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ulpqueue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30