diff options
author | Hamish Martin <hamish.martin@alliedtelesis.co.nz> | 2018-05-14 04:32:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 17:16:35 +0300 |
commit | a93e7b331568227500186a465fee3c2cb5dffd1f (patch) | |
tree | 9eb90315fad535118c90264d2d1d189913bbfe9b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 81daa406c2cc97d85eef9409400404efc2a3f756 (diff) | |
download | linux-a93e7b331568227500186a465fee3c2cb5dffd1f.tar.xz |
uio: Prevent device destruction while fds are open
Prevent destruction of a uio_device while user space apps hold open
file descriptors to that device. Further, access to the 'info' member
of the struct uio_device is protected by spinlock. This is to ensure
stale pointers to data not under control of the UIO subsystem are not
dereferenced.
Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions