[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181205.201615.2105941098946347576.davem@davemloft.net>
Date: Wed, 05 Dec 2018 20:16:15 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jakub.audykowicz@...il.com
Cc: linux-sctp@...r.kernel.org, vyasevich@...il.com,
nhorman@...driver.com, marcelo.leitner@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net] sctp: frag_point sanity check
From: Jakub Audykowicz <jakub.audykowicz@...il.com>
Date: Tue, 4 Dec 2018 20:27:41 +0100
> If for some reason an association's fragmentation point is zero,
> sctp_datamsg_from_user will try to endlessly try to divide a message
> into zero-sized chunks. This eventually causes kernel panic due to
> running out of memory.
>
> Although this situation is quite unlikely, it has occurred before as
> reported. I propose to add this simple last-ditch sanity check due to
> the severity of the potential consequences.
>
> Signed-off-by: Jakub Audykowicz <jakub.audykowicz@...il.com>
Applied.
Powered by blists - more mailing lists