* [PATCH net 0/2] net: rmnet: fix interface leak for rmnet module
@ 2020-07-02 17:07 Taehee Yoo
2020-07-03 4:01 ` subashab
2020-07-05 1:05 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Taehee Yoo @ 2020-07-02 17:07 UTC (permalink / raw)
To: davem, kuba, subashab, stranche, netdev; +Cc: ap420073
There are two problems in rmnet module that they occur the leak of
a lower interface.
The symptom is the same, which is the leak of a lower interface.
But there are two different real problems.
This patchset is to fix these real problems.
1. Do not allow to have different two modes.
As a lower interface of rmnet, there are two modes that they are VND
and BRIDGE.
One interface can have only one mode.
But in the current rmnet, there is no code to prevent to have
two modes in one lower interface.
So, interface leak occurs.
2. Do not allow to add multiple bridge interfaces.
rmnet can have only two bridge interface.
If an additional bridge interface is tried to be attached,
rmnet should deny it.
But there is no code to do that.
So, interface leak occurs.
Taehee Yoo (2):
net: rmnet: fix lower interface leak
net: rmnet: do not allow to add multiple bridge interfaces
.../net/ethernet/qualcomm/rmnet/rmnet_config.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net 0/2] net: rmnet: fix interface leak for rmnet module
2020-07-02 17:07 [PATCH net 0/2] net: rmnet: fix interface leak for rmnet module Taehee Yoo
@ 2020-07-03 4:01 ` subashab
2020-07-05 1:05 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: subashab @ 2020-07-03 4:01 UTC (permalink / raw)
To: Taehee Yoo; +Cc: davem, kuba, stranche, netdev
On 2020-07-02 11:07, Taehee Yoo wrote:
> There are two problems in rmnet module that they occur the leak of
> a lower interface.
> The symptom is the same, which is the leak of a lower interface.
> But there are two different real problems.
> This patchset is to fix these real problems.
>
> 1. Do not allow to have different two modes.
> As a lower interface of rmnet, there are two modes that they are VND
> and BRIDGE.
> One interface can have only one mode.
> But in the current rmnet, there is no code to prevent to have
> two modes in one lower interface.
> So, interface leak occurs.
>
> 2. Do not allow to add multiple bridge interfaces.
> rmnet can have only two bridge interface.
> If an additional bridge interface is tried to be attached,
> rmnet should deny it.
> But there is no code to do that.
> So, interface leak occurs.
>
> Taehee Yoo (2):
> net: rmnet: fix lower interface leak
> net: rmnet: do not allow to add multiple bridge interfaces
>
> .../net/ethernet/qualcomm/rmnet/rmnet_config.c | 18 +++++++++++++-----
> 1 file changed, 13 insertions(+), 5 deletions(-)
Thanks Taehee. For the series-
Reviewed-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net 0/2] net: rmnet: fix interface leak for rmnet module
2020-07-02 17:07 [PATCH net 0/2] net: rmnet: fix interface leak for rmnet module Taehee Yoo
2020-07-03 4:01 ` subashab
@ 2020-07-05 1:05 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2020-07-05 1:05 UTC (permalink / raw)
To: ap420073; +Cc: kuba, subashab, stranche, netdev
From: Taehee Yoo <ap420073@gmail.com>
Date: Thu, 2 Jul 2020 17:07:37 +0000
> There are two problems in rmnet module that they occur the leak of
> a lower interface.
> The symptom is the same, which is the leak of a lower interface.
> But there are two different real problems.
> This patchset is to fix these real problems.
>
> 1. Do not allow to have different two modes.
> As a lower interface of rmnet, there are two modes that they are VND
> and BRIDGE.
> One interface can have only one mode.
> But in the current rmnet, there is no code to prevent to have
> two modes in one lower interface.
> So, interface leak occurs.
>
> 2. Do not allow to add multiple bridge interfaces.
> rmnet can have only two bridge interface.
> If an additional bridge interface is tried to be attached,
> rmnet should deny it.
> But there is no code to do that.
> So, interface leak occurs.
Series applied and queued up for v5.6+ -stable, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-05 1:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-02 17:07 [PATCH net 0/2] net: rmnet: fix interface leak for rmnet module Taehee Yoo
2020-07-03 4:01 ` subashab
2020-07-05 1:05 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).