summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@intel.com>2019-04-30 01:48:30 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-01 18:58:51 +0300
commit8c79f0ea5d6087645ed5ed5d638c338962052766 (patch)
treee3904ec24efdee2e6d7239885bbf53c7161bac02 /tools
parentcd86972a9fd076aea43165394b05bbca26254cd7 (diff)
downloadlinux-8c79f0ea5d6087645ed5ed5d638c338962052766.tar.xz
taprio: Fix potencial use of invalid memory during dequeue()
Right now, this isn't a problem, but the next commit allows schedules to be added during runtime. When a new schedule transitions from the inactive to the active state ("admin" -> "oper") the previous one can be freed, if it's freed just after the RCU read lock is released, we may access an invalid entry. So, we should take care to protect the dequeue() flow, so all the places that access the entries are protected by the RCU read lock. Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions