Commit 90b2f49
openvswitch: use RCU protection in ovs_vport_cmd_fill_info()
ovs_vport_cmd_fill_info() can be called without RTNL or RCU.
Use RCU protection and dev_net_rcu() to avoid potential UAF.
Fixes: 9354d45 ("openvswitch: reliable interface indentification in port dumps")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250207135841.1948589-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent a42b69f commit 90b2f49
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2101 | 2101 | | |
2102 | 2102 | | |
2103 | 2103 | | |
| 2104 | + | |
2104 | 2105 | | |
2105 | 2106 | | |
2106 | 2107 | | |
| |||
2117 | 2118 | | |
2118 | 2119 | | |
2119 | 2120 | | |
2120 | | - | |
2121 | | - | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
2122 | 2125 | | |
2123 | 2126 | | |
2124 | | - | |
| 2127 | + | |
2125 | 2128 | | |
| 2129 | + | |
2126 | 2130 | | |
2127 | 2131 | | |
2128 | 2132 | | |
| |||
2143 | 2147 | | |
2144 | 2148 | | |
2145 | 2149 | | |
| 2150 | + | |
| 2151 | + | |
2146 | 2152 | | |
2147 | 2153 | | |
2148 | 2154 | | |
| |||
0 commit comments