diff options
author | Hamish Martin <hamish.martin@alliedtelesis.co.nz> | 2019-02-13 19:29:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-15 10:09:14 +0300 |
commit | 085d735c858934e5d5bfaedb1fc98bd9135e6ff1 (patch) | |
tree | 435a1d4dd78eaf453c33c7af23e95289c32a420c /include/dt-bindings | |
parent | cd4fe6339ccd9638da1304160abe60b84115dee5 (diff) | |
download | linux-085d735c858934e5d5bfaedb1fc98bd9135e6ff1.tar.xz |
uio: Prevent device destruction while fds are open
commit a93e7b331568227500186a465fee3c2cb5dffd1f upstream.
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>
[4.14 change __poll_t to unsigned int]
Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/dt-bindings')
0 files changed, 0 insertions, 0 deletions