aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/coresight/coresight-cpu-debug.c
diff options
context:
space:
mode:
authorHamish Martin <[email protected]>2018-05-14 01:32:23 +0000
committerGreg Kroah-Hartman <[email protected]>2018-05-14 14:16:35 +0000
commita93e7b331568227500186a465fee3c2cb5dffd1f (patch)
tree9eb90315fad535118c90264d2d1d189913bbfe9b /drivers/hwtracing/coresight/coresight-cpu-debug.c
parentuio: Reduce return paths from uio_write() (diff)
downloadkernel-a93e7b331568227500186a465fee3c2cb5dffd1f.tar.gz
kernel-a93e7b331568227500186a465fee3c2cb5dffd1f.zip
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 <[email protected]> Reviewed-by: Chris Packham <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-cpu-debug.c')
0 files changed, 0 insertions, 0 deletions