diff options
author | Vinicius Costa Gomes <vinicius.gomes@intel.com> | 2019-04-30 01:48:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-01 18:58:51 +0300 |
commit | 8c79f0ea5d6087645ed5ed5d638c338962052766 (patch) | |
tree | e3904ec24efdee2e6d7239885bbf53c7161bac02 /kernel/Kconfig.locks | |
parent | cd86972a9fd076aea43165394b05bbca26254cd7 (diff) | |
download | linux-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 'kernel/Kconfig.locks')
0 files changed, 0 insertions, 0 deletions