aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2020-03-11 22:42:28 -0700
committerDavid S. Miller <[email protected]>2020-03-14 20:42:29 -0700
commit0d1c3530e1bd38382edef72591b78e877e0edcd3 (patch)
tree1ca4f09dcc9693bee688b569f344b4d4f5c7846f /scripts/gdb/linux/timerlist.py
parentb1be2e8cd290f620777bfdb8aa00890cd2fa02b5 (diff)
net_sched: keep alloc_hash updated after hash allocation
In commit 599be01ee567 ("net_sched: fix an OOB access in cls_tcindex") I moved cp->hash calculation before the first tcindex_alloc_perfect_hash(), but cp->alloc_hash is left untouched. This difference could lead to another out of bound access. cp->alloc_hash should always be the size allocated, we should update it after this tcindex_alloc_perfect_hash(). Reported-and-tested-by: [email protected] Reported-and-tested-by: [email protected] Fixes: 599be01ee567 ("net_sched: fix an OOB access in cls_tcindex") Cc: Jamal Hadi Salim <[email protected]> Cc: Jiri Pirko <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions