]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: provide rmem[0] limit
authorPaolo Abeni <pabeni@redhat.com>
Sun, 8 Nov 2020 18:49:59 +0000 (19:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 01:34:34 +0000 (17:34 -0800)
commitf449b115bcac0d4f72134923beca16f3cb182fca
tree0e903624bb04a09f56a996378eb3f0200d314921
parentadad5cdfb748131130e3e708dc722f32b332cd55
mptcp: provide rmem[0] limit

The mptcp proto struct currently does not provide the
required limit for forward memory scheduling. Under
pressure sk_rmem_schedule() will unconditionally try
to use such field and will oops.

Address the issue inheriting the tcp limit, as we already
do for the wmem one.

Fixes: fbe1bf9e4d27 ("mptcp: add missing memory scheduling in the rx path")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Link: https://lore.kernel.org/r/37af798bd46f402fb7c79f57ebbdd00614f5d7fa.1604861097.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c