All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
@ 2023-02-23  3:37 Geliang Tang
  2023-02-23  5:13 ` mptcp: add ro_after_init for tcp{,v6}_prot_override: Tests Results MPTCP CI
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Geliang Tang @ 2023-02-23  3:37 UTC (permalink / raw
  To: mptcp; +Cc: Geliang Tang

Add __ro_after_init labels for the variables tcp_prot_override and
tcpv6_prot_override, just like other variables adjacent to them, to
indicate that they are initialised from the init hoos and no writes
occur afterwards.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
 net/mptcp/subflow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index d3e00a428c7e..3a71b3b05935 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -628,7 +628,7 @@ static struct request_sock_ops mptcp_subflow_v6_request_sock_ops __ro_after_init
 static struct tcp_request_sock_ops subflow_request_sock_ipv6_ops __ro_after_init;
 static struct inet_connection_sock_af_ops subflow_v6_specific __ro_after_init;
 static struct inet_connection_sock_af_ops subflow_v6m_specific __ro_after_init;
-static struct proto tcpv6_prot_override;
+static struct proto tcpv6_prot_override __ro_after_init;
 
 static int subflow_v6_conn_request(struct sock *sk, struct sk_buff *skb)
 {
@@ -926,7 +926,7 @@ static struct sock *subflow_syn_recv_sock(const struct sock *sk,
 }
 
 static struct inet_connection_sock_af_ops subflow_specific __ro_after_init;
-static struct proto tcp_prot_override;
+static struct proto tcp_prot_override __ro_after_init;
 
 enum mapping_status {
 	MAPPING_OK,
-- 
2.35.3


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

* Re: mptcp: add ro_after_init for tcp{,v6}_prot_override: Tests Results
  2023-02-23  3:37 [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Geliang Tang
@ 2023-02-23  5:13 ` MPTCP CI
  2023-02-23  9:10 ` [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Matthieu Baerts
  2023-02-23 13:57 ` Matthieu Baerts
  2 siblings, 0 replies; 9+ messages in thread
From: MPTCP CI @ 2023-02-23  5:13 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/6402467986931712
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/6402467986931712/summary/summary.txt

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

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

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

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


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] 9+ messages in thread

* Re: [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
  2023-02-23  3:37 [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Geliang Tang
  2023-02-23  5:13 ` mptcp: add ro_after_init for tcp{,v6}_prot_override: Tests Results MPTCP CI
@ 2023-02-23  9:10 ` Matthieu Baerts
  2023-02-23 13:35   ` Geliang Tang
  2023-02-23 13:57 ` Matthieu Baerts
  2 siblings, 1 reply; 9+ messages in thread
From: Matthieu Baerts @ 2023-02-23  9:10 UTC (permalink / raw
  To: Geliang Tang, mptcp

Hi Geliang,

Thank you for this patch!

On 23/02/2023 04:37, Geliang Tang wrote:
> Add __ro_after_init labels for the variables tcp_prot_override and
> tcpv6_prot_override, just like other variables adjacent to them, to
> indicate that they are initialised from the init hoos and no writes

(Do you mean s/hoos/hook/?)

> occur afterwards.

Good catch!

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

Do you mind if I change the target to mptcp-net and add a Fixes tag when
applying this patch?

Fixes: b19bc2945b40 ("mptcp: implement delegated actions")

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

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

* Re: [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
  2023-02-23  9:10 ` [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Matthieu Baerts
@ 2023-02-23 13:35   ` Geliang Tang
  2023-02-23 13:49     ` Matthieu Baerts
  2023-02-23 13:55     ` Matthieu Baerts
  0 siblings, 2 replies; 9+ messages in thread
From: Geliang Tang @ 2023-02-23 13:35 UTC (permalink / raw
  To: Matthieu Baerts; +Cc: mptcp

On Thu, Feb 23, 2023 at 10:10:25AM +0100, Matthieu Baerts wrote:
> Hi Geliang,
> 
> Thank you for this patch!
> 
> On 23/02/2023 04:37, Geliang Tang wrote:
> > Add __ro_after_init labels for the variables tcp_prot_override and
> > tcpv6_prot_override, just like other variables adjacent to them, to
> > indicate that they are initialised from the init hoos and no writes
> 
> (Do you mean s/hoos/hook/?)

Yes, it should be 'hooks'. Please fix this for me.

> 
> > occur afterwards.
> 
> Good catch!
> 
> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
> 
> Do you mind if I change the target to mptcp-net and add a Fixes tag when
> applying this patch?
> 
> Fixes: b19bc2945b40 ("mptcp: implement delegated actions")

Fixes: 51fa7f8ebf0e2 ("mptcp: mark ops structures as ro_after_init")
Maybe this fixes tag is better, WDYT?

Thanks,
-Geliang

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

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

* Re: [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
  2023-02-23 13:35   ` Geliang Tang
@ 2023-02-23 13:49     ` Matthieu Baerts
  2023-02-23 13:55     ` Matthieu Baerts
  1 sibling, 0 replies; 9+ messages in thread
From: Matthieu Baerts @ 2023-02-23 13:49 UTC (permalink / raw
  To: Geliang Tang; +Cc: mptcp

On 23/02/2023 14:35, Geliang Tang wrote:
> On Thu, Feb 23, 2023 at 10:10:25AM +0100, Matthieu Baerts wrote:
>> Hi Geliang,
>>
>> Thank you for this patch!
>>
>> On 23/02/2023 04:37, Geliang Tang wrote:
>>> Add __ro_after_init labels for the variables tcp_prot_override and
>>> tcpv6_prot_override, just like other variables adjacent to them, to
>>> indicate that they are initialised from the init hoos and no writes
>>
>> (Do you mean s/hoos/hook/?)
> 
> Yes, it should be 'hooks'. Please fix this for me.

Yes, I can do that!

>>> occur afterwards.
>>
>> Good catch!
>>
>> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
>>
>> Do you mind if I change the target to mptcp-net and add a Fixes tag when
>> applying this patch?
>>
>> Fixes: b19bc2945b40 ("mptcp: implement delegated actions")
> 
> Fixes: 51fa7f8ebf0e2 ("mptcp: mark ops structures as ro_after_init")
> Maybe this fixes tag is better, WDYT?

Good idea!

When looking at 51fa7f8ebf0e2 ("mptcp: mark ops structures as
ro_after_init"), I wonder why this flag has not been added to
tcp{,v6}_prot_override. I guess we just missed it :)

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

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

* Re: [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
  2023-02-23 13:35   ` Geliang Tang
  2023-02-23 13:49     ` Matthieu Baerts
@ 2023-02-23 13:55     ` Matthieu Baerts
  1 sibling, 0 replies; 9+ messages in thread
From: Matthieu Baerts @ 2023-02-23 13:55 UTC (permalink / raw
  To: Geliang Tang; +Cc: mptcp

On 23/02/2023 14:35, Geliang Tang wrote:
> On Thu, Feb 23, 2023 at 10:10:25AM +0100, Matthieu Baerts wrote:

(...)

>> Do you mind if I change the target to mptcp-net and add a Fixes tag when
>> applying this patch?
>>
>> Fixes: b19bc2945b40 ("mptcp: implement delegated actions")
> 
> Fixes: 51fa7f8ebf0e2 ("mptcp: mark ops structures as ro_after_init")
> Maybe this fixes tag is better, WDYT?

If you don't mind, I will add both: the one you mention has been
backported to v5.10 while the other one is only in v5.12.

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

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

* Re: [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
  2023-02-23  3:37 [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Geliang Tang
  2023-02-23  5:13 ` mptcp: add ro_after_init for tcp{,v6}_prot_override: Tests Results MPTCP CI
  2023-02-23  9:10 ` [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Matthieu Baerts
@ 2023-02-23 13:57 ` Matthieu Baerts
  2023-02-24  1:29   ` Geliang Tang
  2 siblings, 1 reply; 9+ messages in thread
From: Matthieu Baerts @ 2023-02-23 13:57 UTC (permalink / raw
  To: Geliang Tang, mptcp

Hi Geliang,

On 23/02/2023 04:37, Geliang Tang wrote:
> Add __ro_after_init labels for the variables tcp_prot_override and
> tcpv6_prot_override, just like other variables adjacent to them, to
> indicate that they are initialised from the init hoos and no writes
> occur afterwards.

Thank you for the patch!

Now in our tree (fix for -net):

New patches for t/upstream-net and t/upstream:
- 14b7f49f8c61: mptcp: add ro_after_init for tcp{,v6}_prot_override
- Results: 32f1046d667c..2d0e2918d1a9 (export-net)
- Results: 7264bacd3544..e438a165544f (export)

Tests are now in progress:

https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export-net/20230223T135546
https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20230223T135546

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

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

* Re: [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
  2023-02-23 13:57 ` Matthieu Baerts
@ 2023-02-24  1:29   ` Geliang Tang
  2023-02-24  9:36     ` Matthieu Baerts
  0 siblings, 1 reply; 9+ messages in thread
From: Geliang Tang @ 2023-02-24  1:29 UTC (permalink / raw
  To: Matthieu Baerts; +Cc: mptcp

On Thu, Feb 23, 2023 at 02:57:35PM +0100, Matthieu Baerts wrote:
> Hi Geliang,
> 
> On 23/02/2023 04:37, Geliang Tang wrote:
> > Add __ro_after_init labels for the variables tcp_prot_override and
> > tcpv6_prot_override, just like other variables adjacent to them, to
> > indicate that they are initialised from the init hoos and no writes
> > occur afterwards.
> 
> Thank you for the patch!
> 
> Now in our tree (fix for -net):
> 
> New patches for t/upstream-net and t/upstream:
> - 14b7f49f8c61: mptcp: add ro_after_init for tcp{,v6}_prot_override
> - Results: 32f1046d667c..2d0e2918d1a9 (export-net)
> - Results: 7264bacd3544..e438a165544f (export)
> 
> Tests are now in progress:
> 
> https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export-net/20230223T135546
> https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20230223T135546

Matt, you forgot to help me change 'hoos' to 'hooks' in the commit log.
:)

Thanks,
-Geliang

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

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

* Re: [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override
  2023-02-24  1:29   ` Geliang Tang
@ 2023-02-24  9:36     ` Matthieu Baerts
  0 siblings, 0 replies; 9+ messages in thread
From: Matthieu Baerts @ 2023-02-24  9:36 UTC (permalink / raw
  To: Geliang Tang; +Cc: mptcp

Hi Geliang,

On 24/02/2023 02:29, Geliang Tang wrote:
> On Thu, Feb 23, 2023 at 02:57:35PM +0100, Matthieu Baerts wrote:
>> Hi Geliang,
>>
>> On 23/02/2023 04:37, Geliang Tang wrote:
>>> Add __ro_after_init labels for the variables tcp_prot_override and
>>> tcpv6_prot_override, just like other variables adjacent to them, to
>>> indicate that they are initialised from the init hoos and no writes
>>> occur afterwards.
>>
>> Thank you for the patch!
>>
>> Now in our tree (fix for -net):
>>
>> New patches for t/upstream-net and t/upstream:
>> - 14b7f49f8c61: mptcp: add ro_after_init for tcp{,v6}_prot_override
>> - Results: 32f1046d667c..2d0e2918d1a9 (export-net)
>> - Results: 7264bacd3544..e438a165544f (export)
>>
>> Tests are now in progress:
>>
>> https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export-net/20230223T135546
>> https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20230223T135546
> 
> Matt, you forgot to help me change 'hoos' to 'hooks' in the commit log.
> :)

Good catch, I got distracted by the Fixes tags and I forgot this, my bad!

Fixed now in export/20230224T093441 and export-net/20230224T093441:

- 63df269b74e8: tg:msg: fix typo s/hoos/hooks/

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

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

end of thread, other threads:[~2023-02-24  9:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-23  3:37 [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Geliang Tang
2023-02-23  5:13 ` mptcp: add ro_after_init for tcp{,v6}_prot_override: Tests Results MPTCP CI
2023-02-23  9:10 ` [PATCH mptcp-next] mptcp: add ro_after_init for tcp{,v6}_prot_override Matthieu Baerts
2023-02-23 13:35   ` Geliang Tang
2023-02-23 13:49     ` Matthieu Baerts
2023-02-23 13:55     ` Matthieu Baerts
2023-02-23 13:57 ` Matthieu Baerts
2023-02-24  1:29   ` Geliang Tang
2023-02-24  9:36     ` Matthieu Baerts

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.