Commit 5455a23
net: do not pass flow_id to set_rps_cpu()
[ Upstream commit 8a8a9fa ]
Blamed commit made the assumption that the RPS table for each receive
queue would have the same size, and that it would not change.
Compute flow_id in set_rps_cpu(), do not assume we can use the value
computed by get_rps_cpu(). Otherwise we risk out-of-bound access
and/or crashes.
Fixes: 48aa304 ("net: Cache hash and flow_id to avoid recalculation")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Krishna Kumar <krikku@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260220222605.3468081-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 9658174 commit 5455a23
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4932 | 4932 | | |
4933 | 4933 | | |
4934 | 4934 | | |
4935 | | - | |
4936 | | - | |
| 4935 | + | |
4937 | 4936 | | |
4938 | 4937 | | |
4939 | 4938 | | |
| |||
4944 | 4943 | | |
4945 | 4944 | | |
4946 | 4945 | | |
| 4946 | + | |
4947 | 4947 | | |
4948 | 4948 | | |
4949 | 4949 | | |
| |||
4959 | 4959 | | |
4960 | 4960 | | |
4961 | 4961 | | |
| 4962 | + | |
4962 | 4963 | | |
4963 | 4964 | | |
4964 | 4965 | | |
| |||
5006 | 5007 | | |
5007 | 5008 | | |
5008 | 5009 | | |
5009 | | - | |
5010 | 5010 | | |
5011 | 5011 | | |
5012 | 5012 | | |
| |||
5053 | 5053 | | |
5054 | 5054 | | |
5055 | 5055 | | |
5056 | | - | |
5057 | | - | |
| 5056 | + | |
5058 | 5057 | | |
5059 | 5058 | | |
5060 | 5059 | | |
| |||
5073 | 5072 | | |
5074 | 5073 | | |
5075 | 5074 | | |
5076 | | - | |
5077 | | - | |
| 5075 | + | |
5078 | 5076 | | |
5079 | 5077 | | |
5080 | 5078 | | |
| |||
0 commit comments