diff for duplicates of <20241119083547.3234013-16-matttbe@kernel.org> diff --git a/a/1.txt b/N1/1.txt index 864e053..d4c3183 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,40 +1,53 @@ -commit db3eab8110bc0520416101b6a5b52f44a43fb4cf upstream. - -In mptcp_pm_create_subflow_or_signal_addr(), rcu_read_(un)lock() are -used as expected to iterate over the list of local addresses, but -list_for_each_entry() was used instead of list_for_each_entry_rcu() in -__lookup_addr(). It is important to use this variant which adds the -required READ_ONCE() (and diagnostic checks if enabled). - -Because __lookup_addr() is also used in mptcp_pm_nl_set_flags() where it -is called under the pernet->lock and not rcu_read_lock(), an extra -condition is then passed to help the diagnostic checks making sure -either the associated spin lock or the RCU lock is held. - -Fixes: 86e39e04482b ("mptcp: keep track of local endpoint still available for each msk") -Cc: stable@vger.kernel.org -Reviewed-by: Geliang Tang <geliang@kernel.org> -Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> -Link: https://patch.msgid.link/20241112-net-mptcp-misc-6-12-pm-v1-3-b835580cefa8@kernel.org -Signed-off-by: Jakub Kicinski <kuba@kernel.org> -Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> +[ Sasha's backport helper bot ] + +Hi, + +The upstream commit SHA1 provided is correct: db3eab8110bc0520416101b6a5b52f44a43fb4cf + +WARNING: Author mismatch between patch and upstream commit: +Backport author: "Matthieu Baerts (NGI0)" <matttbe@kernel.org> +Commit author: Matthieu Baerts (NGI0) <matttbe@kernel.org> + + +Status in newer kernel trees: +6.11.y | Present (different SHA1: b5e96b7d3dea) +6.6.y | Not found +6.1.y | Not found + +Note: The patch differs from the upstream commit: --- - net/mptcp/pm_netlink.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c -index 9b65d9360976..3fd7de56a30f 100644 ---- a/net/mptcp/pm_netlink.c -+++ b/net/mptcp/pm_netlink.c -@@ -529,7 +529,8 @@ __lookup_addr(struct pm_nl_pernet *pernet, const struct mptcp_addr_info *info) - { - struct mptcp_pm_addr_entry *entry; +--- - 2024-11-19 09:33:43.354973891 -0500 ++++ /tmp/tmp.FmHZdHILuA 2024-11-19 09:33:43.351973441 -0500 +@@ -15,15 +15,16 @@ + Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> + Link: https://patch.msgid.link/20241112-net-mptcp-misc-6-12-pm-v1-3-b835580cefa8@kernel.org + Signed-off-by: Jakub Kicinski <kuba@kernel.org> ++Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> + --- + net/mptcp/pm_netlink.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) -- list_for_each_entry(entry, &pernet->local_addr_list, list) { -+ list_for_each_entry_rcu(entry, &pernet->local_addr_list, list, -+ lockdep_is_held(&pernet->lock)) { - if (mptcp_addresses_equal(&entry->addr, info, entry->addr.port)) - return entry; - } --- -2.45.2 + diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c +-index db586a5b3866f..45a2b5f05d38b 100644 ++index 9b65d9360976..3fd7de56a30f 100644 + --- a/net/mptcp/pm_netlink.c + +++ b/net/mptcp/pm_netlink.c +-@@ -524,7 +524,8 @@ __lookup_addr(struct pm_nl_pernet *pernet, const struct mptcp_addr_info *info) ++@@ -529,7 +529,8 @@ __lookup_addr(struct pm_nl_pernet *pernet, const struct mptcp_addr_info *info) + { + struct mptcp_pm_addr_entry *entry; + +@@ -33,3 +34,6 @@ + if (mptcp_addresses_equal(&entry->addr, info, entry->addr.port)) + return entry; + } ++-- ++2.45.2 ++ +--- + +Results of testing on various branches: + +| Branch | Patch Apply | Build Test | +|---------------------------|-------------|------------| +| stable/linux-6.1.y | Success | Success | diff --git a/a/content_digest b/N1/content_digest index 14d71f8..b7d613b 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,55 +1,63 @@ - "ref\020241119083547.3234013-9-matttbe@kernel.org\0" - "From\0Matthieu Baerts (NGI0) <matttbe@kernel.org>\0" - "Subject\0[PATCH 6.1.y 7/7] mptcp: pm: use _rcu variant under rcu_read_lock\0" - "Date\0Tue, 19 Nov 2024 09:35:55 +0100\0" - "To\0mptcp@lists.linux.dev" - stable@vger.kernel.org - " gregkh@linuxfoundation.org\0" + "From\0Sasha Levin <sashal@kernel.org>\0" + "Subject\0Re: [PATCH 6.1.y 7/7] mptcp: pm: use _rcu variant under rcu_read_lock\0" + "Date\0Tue, 19 Nov 2024 09:47:03 -0500\0" + "To\0stable@vger.kernel.org\0" "Cc\0Matthieu Baerts (NGI0) <matttbe@kernel.org>" - sashal@kernel.org - Geliang Tang <geliang@kernel.org> - " Jakub Kicinski <kuba@kernel.org>\0" + " Sasha Levin <sashal@kernel.org>\0" "\00:1\0" "b\0" - "commit db3eab8110bc0520416101b6a5b52f44a43fb4cf upstream.\n" - "\n" - "In mptcp_pm_create_subflow_or_signal_addr(), rcu_read_(un)lock() are\n" - "used as expected to iterate over the list of local addresses, but\n" - "list_for_each_entry() was used instead of list_for_each_entry_rcu() in\n" - "__lookup_addr(). It is important to use this variant which adds the\n" - "required READ_ONCE() (and diagnostic checks if enabled).\n" - "\n" - "Because __lookup_addr() is also used in mptcp_pm_nl_set_flags() where it\n" - "is called under the pernet->lock and not rcu_read_lock(), an extra\n" - "condition is then passed to help the diagnostic checks making sure\n" - "either the associated spin lock or the RCU lock is held.\n" - "\n" - "Fixes: 86e39e04482b (\"mptcp: keep track of local endpoint still available for each msk\")\n" - "Cc: stable@vger.kernel.org\n" - "Reviewed-by: Geliang Tang <geliang@kernel.org>\n" - "Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>\n" - "Link: https://patch.msgid.link/20241112-net-mptcp-misc-6-12-pm-v1-3-b835580cefa8@kernel.org\n" - "Signed-off-by: Jakub Kicinski <kuba@kernel.org>\n" - "Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>\n" + "[ Sasha's backport helper bot ]\n" + "\n" + "Hi,\n" + "\n" + "The upstream commit SHA1 provided is correct: db3eab8110bc0520416101b6a5b52f44a43fb4cf\n" + "\n" + "WARNING: Author mismatch between patch and upstream commit:\n" + "Backport author: \"Matthieu Baerts (NGI0)\" <matttbe@kernel.org>\n" + "Commit author: Matthieu Baerts (NGI0) <matttbe@kernel.org>\n" + "\n" + "\n" + "Status in newer kernel trees:\n" + "6.11.y | Present (different SHA1: b5e96b7d3dea)\n" + "6.6.y | Not found\n" + "6.1.y | Not found\n" + "\n" + "Note: The patch differs from the upstream commit:\n" "---\n" - " net/mptcp/pm_netlink.c | 3 ++-\n" - " 1 file changed, 2 insertions(+), 1 deletion(-)\n" - "\n" - "diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c\n" - "index 9b65d9360976..3fd7de56a30f 100644\n" - "--- a/net/mptcp/pm_netlink.c\n" - "+++ b/net/mptcp/pm_netlink.c\n" - "@@ -529,7 +529,8 @@ __lookup_addr(struct pm_nl_pernet *pernet, const struct mptcp_addr_info *info)\n" - " {\n" - " \tstruct mptcp_pm_addr_entry *entry;\n" + "--- -\t2024-11-19 09:33:43.354973891 -0500\n" + "+++ /tmp/tmp.FmHZdHILuA\t2024-11-19 09:33:43.351973441 -0500\n" + "@@ -15,15 +15,16 @@\n" + " Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>\n" + " Link: https://patch.msgid.link/20241112-net-mptcp-misc-6-12-pm-v1-3-b835580cefa8@kernel.org\n" + " Signed-off-by: Jakub Kicinski <kuba@kernel.org>\n" + "+Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>\n" + " ---\n" + " net/mptcp/pm_netlink.c | 3 ++-\n" + " 1 file changed, 2 insertions(+), 1 deletion(-)\n" " \n" - "-\tlist_for_each_entry(entry, &pernet->local_addr_list, list) {\n" - "+\tlist_for_each_entry_rcu(entry, &pernet->local_addr_list, list,\n" - "+\t\t\t\tlockdep_is_held(&pernet->lock)) {\n" - " \t\tif (mptcp_addresses_equal(&entry->addr, info, entry->addr.port))\n" - " \t\t\treturn entry;\n" - " \t}\n" - "-- \n" - 2.45.2 + " diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c\n" + "-index db586a5b3866f..45a2b5f05d38b 100644\n" + "+index 9b65d9360976..3fd7de56a30f 100644\n" + " --- a/net/mptcp/pm_netlink.c\n" + " +++ b/net/mptcp/pm_netlink.c\n" + "-@@ -524,7 +524,8 @@ __lookup_addr(struct pm_nl_pernet *pernet, const struct mptcp_addr_info *info)\n" + "+@@ -529,7 +529,8 @@ __lookup_addr(struct pm_nl_pernet *pernet, const struct mptcp_addr_info *info)\n" + " {\n" + " \tstruct mptcp_pm_addr_entry *entry;\n" + " \n" + "@@ -33,3 +34,6 @@\n" + " \t\tif (mptcp_addresses_equal(&entry->addr, info, entry->addr.port))\n" + " \t\t\treturn entry;\n" + " \t}\n" + "+-- \n" + "+2.45.2\n" + "+\n" + "---\n" + "\n" + "Results of testing on various branches:\n" + "\n" + "| Branch | Patch Apply | Build Test |\n" + "|---------------------------|-------------|------------|\n" + | stable/linux-6.1.y | Success | Success | -afff1664d1d0b9d4eadd107c587c0ffa114487481362aed29f2f31cccbf5446d +6223a0218ef222d873413f8b26b491fbdb46bca4c99fb36851c81e9a3e4acc1c
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.