summaryrefslogtreecommitdiff
path: root/crypto/crypto_wq.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-03-12 00:44:29 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-19 03:38:58 +0400
commitf4cf7a384587c16c59565dd6930dd763f243dba4 (patch)
tree58141b5d68fee0e635954f9a3c1fe0e500e627ba /crypto/crypto_wq.c
parentcf5284765862ac65e4a3e5b34652e593ffda2bdf (diff)
downloadlinux-f4cf7a384587c16c59565dd6930dd763f243dba4.tar.xz
tty: Halt both ldiscs concurrently
The pty driver does not obtain an ldisc reference to the linked tty when writing. When the ldiscs are sequentially halted, it is possible for one ldisc to be halted, and before the second ldisc can be halted, a concurrent write schedules buffer work on the first ldisc. This can lead to an access-after-free error when the scheduled buffer work starts on the closed ldisc. Prevent subsequent use after halt by performing each stage of the halt on both ttys. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/crypto_wq.c')
0 files changed, 0 insertions, 0 deletions