* [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle
@ 2016-10-23 15:35 Jamal Hadi Salim
2016-10-23 22:30 ` Daniel Borkmann
2016-10-24 17:02 ` Cong Wang
0 siblings, 2 replies; 7+ messages in thread
From: Jamal Hadi Salim @ 2016-10-23 15:35 UTC (permalink / raw)
To: davem; +Cc: netdev, xiyou.wangcong, daniel, eric.dumazet, Jamal Hadi Salim
From: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
---
net/sched/cls_api.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 2ee29a3..2b2a797 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -345,7 +345,8 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)
if (err == 0) {
struct tcf_proto *next = rtnl_dereference(tp->next);
- tfilter_notify(net, skb, n, tp, fh,
+ tfilter_notify(net, skb, n, tp,
+ t->tcm_handle,
RTM_DELTFILTER, false);
if (tcf_destroy(tp, false))
RCU_INIT_POINTER(*back, next);
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle
2016-10-23 15:35 [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle Jamal Hadi Salim
@ 2016-10-23 22:30 ` Daniel Borkmann
2016-10-24 8:48 ` Jiri Pirko
2016-10-24 17:02 ` Cong Wang
1 sibling, 1 reply; 7+ messages in thread
From: Daniel Borkmann @ 2016-10-23 22:30 UTC (permalink / raw)
To: Jamal Hadi Salim, davem; +Cc: netdev, xiyou.wangcong, eric.dumazet
On 10/23/2016 05:35 PM, Jamal Hadi Salim wrote:
> From: Jamal Hadi Salim <jhs@mojatatu.com>
>
An actual commit message would be good especially if it's a fix
for -net tree plus stable. Thanks.
> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
> ---
> net/sched/cls_api.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
> index 2ee29a3..2b2a797 100644
> --- a/net/sched/cls_api.c
> +++ b/net/sched/cls_api.c
> @@ -345,7 +345,8 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)
> if (err == 0) {
> struct tcf_proto *next = rtnl_dereference(tp->next);
>
> - tfilter_notify(net, skb, n, tp, fh,
> + tfilter_notify(net, skb, n, tp,
> + t->tcm_handle,
> RTM_DELTFILTER, false);
> if (tcf_destroy(tp, false))
> RCU_INIT_POINTER(*back, next);
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle
2016-10-23 22:30 ` Daniel Borkmann
@ 2016-10-24 8:48 ` Jiri Pirko
2016-10-24 9:03 ` Daniel Borkmann
0 siblings, 1 reply; 7+ messages in thread
From: Jiri Pirko @ 2016-10-24 8:48 UTC (permalink / raw)
To: Daniel Borkmann
Cc: Jamal Hadi Salim, davem, netdev, xiyou.wangcong, eric.dumazet
Mon, Oct 24, 2016 at 12:30:44AM CEST, daniel@iogearbox.net wrote:
>On 10/23/2016 05:35 PM, Jamal Hadi Salim wrote:
>> From: Jamal Hadi Salim <jhs@mojatatu.com>
>>
>
>An actual commit message would be good especially if it's a fix
>for -net tree plus stable. Thanks.
Also a "Fixes:" tag would be nice to have :)
>
>> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
>> ---
>> net/sched/cls_api.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
>> index 2ee29a3..2b2a797 100644
>> --- a/net/sched/cls_api.c
>> +++ b/net/sched/cls_api.c
>> @@ -345,7 +345,8 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)
>> if (err == 0) {
>> struct tcf_proto *next = rtnl_dereference(tp->next);
>>
>> - tfilter_notify(net, skb, n, tp, fh,
>> + tfilter_notify(net, skb, n, tp,
>> + t->tcm_handle,
>> RTM_DELTFILTER, false);
>> if (tcf_destroy(tp, false))
>> RCU_INIT_POINTER(*back, next);
>>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle
2016-10-24 8:48 ` Jiri Pirko
@ 2016-10-24 9:03 ` Daniel Borkmann
2016-10-24 11:28 ` Jamal Hadi Salim
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Borkmann @ 2016-10-24 9:03 UTC (permalink / raw)
To: Jiri Pirko; +Cc: Jamal Hadi Salim, davem, netdev, xiyou.wangcong, eric.dumazet
On 10/24/2016 10:48 AM, Jiri Pirko wrote:
> Mon, Oct 24, 2016 at 12:30:44AM CEST, daniel@iogearbox.net wrote:
>> On 10/23/2016 05:35 PM, Jamal Hadi Salim wrote:
>>> From: Jamal Hadi Salim <jhs@mojatatu.com>
>>
>> An actual commit message would be good especially if it's a fix
>> for -net tree plus stable. Thanks.
>
> Also a "Fixes:" tag would be nice to have :)
This kernel address leakage dates back to history tree:
Fixes: 4e54c4816bfe ("[NET]: Add tc extensions infrastructure.")
>>> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
>>> ---
>>> net/sched/cls_api.c | 3 ++-
>>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
>>> index 2ee29a3..2b2a797 100644
>>> --- a/net/sched/cls_api.c
>>> +++ b/net/sched/cls_api.c
>>> @@ -345,7 +345,8 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)
>>> if (err == 0) {
>>> struct tcf_proto *next = rtnl_dereference(tp->next);
>>>
>>> - tfilter_notify(net, skb, n, tp, fh,
>>> + tfilter_notify(net, skb, n, tp,
>>> + t->tcm_handle,
>>> RTM_DELTFILTER, false);
>>> if (tcf_destroy(tp, false))
>>> RCU_INIT_POINTER(*back, next);
>>>
>>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle
2016-10-24 9:03 ` Daniel Borkmann
@ 2016-10-24 11:28 ` Jamal Hadi Salim
2016-10-24 11:34 ` Daniel Borkmann
0 siblings, 1 reply; 7+ messages in thread
From: Jamal Hadi Salim @ 2016-10-24 11:28 UTC (permalink / raw)
To: Daniel Borkmann, Jiri Pirko; +Cc: davem, netdev, xiyou.wangcong, eric.dumazet
On 16-10-24 05:03 AM, Daniel Borkmann wrote:
> On 10/24/2016 10:48 AM, Jiri Pirko wrote:
>> Mon, Oct 24, 2016 at 12:30:44AM CEST, daniel@iogearbox.net wrote:
>>> On 10/23/2016 05:35 PM, Jamal Hadi Salim wrote:
>>>> From: Jamal Hadi Salim <jhs@mojatatu.com>
>>>
>>> An actual commit message would be good especially if it's a fix
>>> for -net tree plus stable. Thanks.
>>
>> Also a "Fixes:" tag would be nice to have :)
>
> This kernel address leakage dates back to history tree:
>
> Fixes: 4e54c4816bfe ("[NET]: Add tc extensions infrastructure.")
Was this from bitkeeper?
Unfortunately - I think this changed somewhere after inception of
tc, pre-git. But i cant find any way to trace that. So we could point a
finger and say this bug "has always been there from day one"
and we need a way to annotate that.
Also, please suggest a good commit message.
I could point to iproute2 patch or cutnpaste the novel i wrote
there.
cheers,
jamal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle
2016-10-24 11:28 ` Jamal Hadi Salim
@ 2016-10-24 11:34 ` Daniel Borkmann
0 siblings, 0 replies; 7+ messages in thread
From: Daniel Borkmann @ 2016-10-24 11:34 UTC (permalink / raw)
To: Jamal Hadi Salim, Jiri Pirko; +Cc: davem, netdev, xiyou.wangcong, eric.dumazet
On 10/24/2016 01:28 PM, Jamal Hadi Salim wrote:
> On 16-10-24 05:03 AM, Daniel Borkmann wrote:
>> On 10/24/2016 10:48 AM, Jiri Pirko wrote:
>>> Mon, Oct 24, 2016 at 12:30:44AM CEST, daniel@iogearbox.net wrote:
>>>> On 10/23/2016 05:35 PM, Jamal Hadi Salim wrote:
>>>>> From: Jamal Hadi Salim <jhs@mojatatu.com>
>>>>
>>>> An actual commit message would be good especially if it's a fix
>>>> for -net tree plus stable. Thanks.
>>>
>>> Also a "Fixes:" tag would be nice to have :)
>>
>> This kernel address leakage dates back to history tree:
>>
>> Fixes: 4e54c4816bfe ("[NET]: Add tc extensions infrastructure.")
>
> Was this from bitkeeper?
> Unfortunately - I think this changed somewhere after inception of
> tc, pre-git. But i cant find any way to trace that. So we could point a
> finger and say this bug "has always been there from day one"
> and we need a way to annotate that.
I guess saying that is okay too, commit is from history museum here:
https://git.kernel.org/cgit/linux/kernel/git/history/history.git/
> Also, please suggest a good commit message.
> I could point to iproute2 patch or cutnpaste the novel i wrote
> there.
I did the analysis already in: http://patchwork.ozlabs.org/patch/683863/
I don't mind if you want to take most parts of it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle
2016-10-23 15:35 [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle Jamal Hadi Salim
2016-10-23 22:30 ` Daniel Borkmann
@ 2016-10-24 17:02 ` Cong Wang
1 sibling, 0 replies; 7+ messages in thread
From: Cong Wang @ 2016-10-24 17:02 UTC (permalink / raw)
To: Jamal Hadi Salim
Cc: David Miller, Linux Kernel Network Developers, Daniel Borkmann,
Eric Dumazet
On Sun, Oct 23, 2016 at 8:35 AM, Jamal Hadi Salim <jhs@mojatatu.com> wrote:
> From: Jamal Hadi Salim <jhs@mojatatu.com>
>
> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
We definitely need a serious changelog, even just a short one. ;)
Other than this,
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
We can address the "if (RTM_DELTFILTER != event)" in a separated patch
if needed.
Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-10-24 17:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-23 15:35 [PATCH net 1/1] net sched filters: fix notification of filter delete with proper handle Jamal Hadi Salim
2016-10-23 22:30 ` Daniel Borkmann
2016-10-24 8:48 ` Jiri Pirko
2016-10-24 9:03 ` Daniel Borkmann
2016-10-24 11:28 ` Jamal Hadi Salim
2016-10-24 11:34 ` Daniel Borkmann
2016-10-24 17:02 ` Cong Wang
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).