[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170406.135618.1664330530425584626.davem@davemloft.net>
Date: Thu, 06 Apr 2017 13:56:18 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
marcelo.leitner@...il.com, nhorman@...driver.com,
andreyknvl@...gle.com
Subject: Re: [PATCH net] sctp: listen on the sock only when it's state is
listening or closed
From: Xin Long <lucien.xin@...il.com>
Date: Thu, 6 Apr 2017 13:10:52 +0800
> Now sctp doesn't check sock's state before listening on it. It could
> even cause changing a sock with any state to become a listening sock
> when doing sctp_listen.
>
> This patch is to fix it by checking sock's state in sctp_listen, so
> that it will listen on the sock with right state.
>
> Reported-by: Andrey Konovalov <andreyknvl@...gle.com>
> Tested-by: Andrey Konovalov <andreyknvl@...gle.com>
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists