From: Peter Hurley Date: Wed, 6 Mar 2013 13:38:19 +0000 (-0500) Subject: n_tty: Fix unsafe driver-side signals X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~136^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c985d18b136c5d511445d15f0c6650003a8946b;p=pandora-kernel.git n_tty: Fix unsafe driver-side signals An ldisc reference is insufficient guarantee the foreground process group is not in the process of being signalled from a hangup. 1) Reads of tty->pgrp must be locked with ctrl_lock 2) The group pid must be referenced for the duration of signalling. Because the driver-side is not process-context, a pid reference must be acquired. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed