All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb
@ 2022-12-02  5:37 Geliang Tang
  2022-12-02  6:43 ` mptcp: use nlmsg_free instead of kfree_skb: Tests Results MPTCP CI
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Geliang Tang @ 2022-12-02  5:37 UTC (permalink / raw)
  To: mptcp; +Cc: Geliang Tang, Jakub Kicinski

Use nlmsg_free() instead of kfree_skb() in pm_netlink.c.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
 net/mptcp/pm_netlink.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c
index 93ae0fc892df..39b0f054f39f 100644
--- a/net/mptcp/pm_netlink.c
+++ b/net/mptcp/pm_netlink.c
@@ -2091,7 +2091,7 @@ void mptcp_event_addr_removed(const struct mptcp_sock *msk, uint8_t id)
 	return;
 
 nla_put_failure:
-	kfree_skb(skb);
+	nlmsg_free(skb);
 }
 
 void mptcp_event_addr_announced(const struct sock *ssk,
@@ -2148,7 +2148,7 @@ void mptcp_event_addr_announced(const struct sock *ssk,
 	return;
 
 nla_put_failure:
-	kfree_skb(skb);
+	nlmsg_free(skb);
 }
 
 void mptcp_event_pm_listener(const struct sock *ssk,
@@ -2200,7 +2200,7 @@ void mptcp_event_pm_listener(const struct sock *ssk,
 	return;
 
 nla_put_failure:
-	kfree_skb(skb);
+	nlmsg_free(skb);
 }
 
 void mptcp_event(enum mptcp_event_type type, const struct mptcp_sock *msk,
@@ -2258,7 +2258,7 @@ void mptcp_event(enum mptcp_event_type type, const struct mptcp_sock *msk,
 	return;
 
 nla_put_failure:
-	kfree_skb(skb);
+	nlmsg_free(skb);
 }
 
 static const struct genl_small_ops mptcp_pm_ops[] = {
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: mptcp: use nlmsg_free instead of kfree_skb: Tests Results
  2022-12-02  5:37 [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb Geliang Tang
@ 2022-12-02  6:43 ` MPTCP CI
  2022-12-02 10:20 ` [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb Matthieu Baerts
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: MPTCP CI @ 2022-12-02  6:43 UTC (permalink / raw)
  To: Geliang Tang; +Cc: mptcp

Hi Geliang,

Thank you for your modifications, that's great!

Our CI did some validations and here is its report:

- KVM Validation: normal (except:
  - selftest_mptcp_join): Success! ✅:
  - Task: https://cirrus-ci.com/task/6119246869561344
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/6119246869561344/summary/summary.txt

- KVM Validation: debug (except:
  - selftest_mptcp_join): Success! ✅:
  - Task: https://cirrus-ci.com/task/6682196822982656
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/6682196822982656/summary/summary.txt

- KVM Validation: debug (only:
  - selftest_mptcp_join): Success! ✅:
  - Task: https://cirrus-ci.com/task/4641503241830400
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/4641503241830400/summary/summary.txt

- KVM Validation: normal (only:
  - selftest_mptcp_join): Success! ✅:
  - Task: https://cirrus-ci.com/task/5556296916140032
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/5556296916140032/summary/summary.txt

Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/041d29699a40


If there are some issues, you can reproduce them using the same environment as
the one used by the CI thanks to a docker image, e.g.:

    $ cd [kernel source code]
    $ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
        --pull always mptcp/mptcp-upstream-virtme-docker:latest \
        auto-debug

For more details:

    https://github.com/multipath-tcp/mptcp-upstream-virtme-docker


Please note that despite all the efforts that have been already done to have a
stable tests suite when executed on a public CI like here, it is possible some
reported issues are not due to your modifications. Still, do not hesitate to
help us improve that ;-)

Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (Tessares)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb
  2022-12-02  5:37 [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb Geliang Tang
  2022-12-02  6:43 ` mptcp: use nlmsg_free instead of kfree_skb: Tests Results MPTCP CI
@ 2022-12-02 10:20 ` Matthieu Baerts
  2022-12-02 11:12 ` Matthieu Baerts
  2022-12-02 11:54 ` mptcp: use nlmsg_free instead of kfree_skb: Tests Results MPTCP CI
  3 siblings, 0 replies; 5+ messages in thread
From: Matthieu Baerts @ 2022-12-02 10:20 UTC (permalink / raw)
  To: Geliang Tang, mptcp; +Cc: Jakub Kicinski

Hi Geliang,

On 02/12/2022 06:37, Geliang Tang wrote:
> Use nlmsg_free() instead of kfree_skb() in pm_netlink.c.

Thank you for the quick follow up!

I suggest to add a bit more text to have a clear explanation about why
it is clean-up and not a fix, e.g.

  The skb has been created by nlmsg_new(). The proper free should then
  be done with nlmsg_free().

  For the moment, nlmsg_free() is simply calling kfree_skb() so we
  don't change the behaviour here.

I can modify the commit message when applying the patch, no need to send
a v2 ;-)

Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>

Cheers,
Matt
-- 
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb
  2022-12-02  5:37 [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb Geliang Tang
  2022-12-02  6:43 ` mptcp: use nlmsg_free instead of kfree_skb: Tests Results MPTCP CI
  2022-12-02 10:20 ` [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb Matthieu Baerts
@ 2022-12-02 11:12 ` Matthieu Baerts
  2022-12-02 11:54 ` mptcp: use nlmsg_free instead of kfree_skb: Tests Results MPTCP CI
  3 siblings, 0 replies; 5+ messages in thread
From: Matthieu Baerts @ 2022-12-02 11:12 UTC (permalink / raw)
  To: Geliang Tang, mptcp; +Cc: Jakub Kicinski

Hi Geliang,

On 02/12/2022 06:37, Geliang Tang wrote:
> Use nlmsg_free() instead of kfree_skb() in pm_netlink.c.

Now applied in our tree (feat. for net-next) with my RvB and the commit
message slightly modified as suggested before (we will still modify it
if needed).

New patches for t/upstream:
- 32ad7937c18e: mptcp: use nlmsg_free instead of kfree_skb
- Results: a7affd41927a..7c308902a06c (export)

Tests are now in progress:

https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20221202T110835

Cheers,
Matt
-- 
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mptcp: use nlmsg_free instead of kfree_skb: Tests Results
  2022-12-02  5:37 [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb Geliang Tang
                   ` (2 preceding siblings ...)
  2022-12-02 11:12 ` Matthieu Baerts
@ 2022-12-02 11:54 ` MPTCP CI
  3 siblings, 0 replies; 5+ messages in thread
From: MPTCP CI @ 2022-12-02 11:54 UTC (permalink / raw)
  To: Geliang Tang; +Cc: mptcp

Hi Geliang,

Thank you for your modifications, that's great!

Our CI did some validations and here is its report:

- KVM Validation: normal (except selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/4858982737641472
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/4858982737641472/summary/summary.txt

- KVM Validation: debug (except selftest_mptcp_join):
  - Critical: 1 Call Trace(s) ❌:
  - Task: https://cirrus-ci.com/task/5421932691062784
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/5421932691062784/summary/summary.txt

- KVM Validation: debug (only selftest_mptcp_join):
  - Unstable: 1 failed test(s): selftest_mptcp_join 🔴:
  - Task: https://cirrus-ci.com/task/6547832597905408
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/6547832597905408/summary/summary.txt

- KVM Validation: normal (only selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/5984882644484096
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/5984882644484096/summary/summary.txt

Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/43fbd526856d


If there are some issues, you can reproduce them using the same environment as
the one used by the CI thanks to a docker image, e.g.:

    $ cd [kernel source code]
    $ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
        --pull always mptcp/mptcp-upstream-virtme-docker:latest \
        auto-debug

For more details:

    https://github.com/multipath-tcp/mptcp-upstream-virtme-docker


Please note that despite all the efforts that have been already done to have a
stable tests suite when executed on a public CI like here, it is possible some
reported issues are not due to your modifications. Still, do not hesitate to
help us improve that ;-)

Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (Tessares)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-02 11:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-02  5:37 [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb Geliang Tang
2022-12-02  6:43 ` mptcp: use nlmsg_free instead of kfree_skb: Tests Results MPTCP CI
2022-12-02 10:20 ` [PATCH mptcp-next] mptcp: use nlmsg_free instead of kfree_skb Matthieu Baerts
2022-12-02 11:12 ` Matthieu Baerts
2022-12-02 11:54 ` mptcp: use nlmsg_free instead of kfree_skb: Tests Results MPTCP CI

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.