summaryrefslogtreecommitdiff
path: root/include/uapi/linux/byteorder
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-09-06 14:45:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-06 15:31:11 +0200
commita5cfd51f6348e8fd7531461366946039c29c7e69 (patch)
treed6a7493e56d179c9e9b5174884e9d283bc92f9ae /include/uapi/linux/byteorder
parent0c30a2b7c144dee1a2a6f33073a2266039304968 (diff)
staging: greybus: uart: fix tty use after free
commit 92dc0b1f46e12cfabd28d709bb34f7a39431b44f upstream. User space can hold a tty open indefinitely and tty drivers must not release the underlying structures until the last user is gone. Switch to using the tty-port reference counter to manage the life time of the greybus tty state to avoid use after free after a disconnect. Fixes: a18e15175708 ("greybus: more uart work") Cc: stable@vger.kernel.org # 4.9 Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210906124538.22358-1-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/byteorder')
0 files changed, 0 insertions, 0 deletions