Commit 8a8a9fa
net: do not pass flow_id to set_rps_cpu()
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>1 parent 41e09ec commit 8a8a9fa
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4992 | 4992 | | |
4993 | 4993 | | |
4994 | 4994 | | |
4995 | | - | |
4996 | | - | |
| 4995 | + | |
4997 | 4996 | | |
4998 | 4997 | | |
4999 | 4998 | | |
| |||
5004 | 5003 | | |
5005 | 5004 | | |
5006 | 5005 | | |
| 5006 | + | |
5007 | 5007 | | |
5008 | 5008 | | |
5009 | 5009 | | |
| |||
5019 | 5019 | | |
5020 | 5020 | | |
5021 | 5021 | | |
| 5022 | + | |
5022 | 5023 | | |
5023 | 5024 | | |
5024 | 5025 | | |
| |||
5066 | 5067 | | |
5067 | 5068 | | |
5068 | 5069 | | |
5069 | | - | |
5070 | 5070 | | |
5071 | 5071 | | |
5072 | 5072 | | |
| |||
5113 | 5113 | | |
5114 | 5114 | | |
5115 | 5115 | | |
5116 | | - | |
5117 | | - | |
| 5116 | + | |
5118 | 5117 | | |
5119 | 5118 | | |
5120 | 5119 | | |
| |||
5133 | 5132 | | |
5134 | 5133 | | |
5135 | 5134 | | |
5136 | | - | |
5137 | | - | |
| 5135 | + | |
5138 | 5136 | | |
5139 | 5137 | | |
5140 | 5138 | | |
| |||
0 commit comments