summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorXie He <xie.he.0141@gmail.com>2020-12-27 18:53:39 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-12 20:10:19 +0100
commit07eefd8bd7ddcb8baa878b8d24eeee571c937c3d (patch)
tree73bad21ebe209c998e488a68b0fbc731762a5432 /scripts
parent5a4fbd8b8a9d65207ac47079f0c5574673bb8773 (diff)
net: hdlc_ppp: Fix issues when mod_timer is called while timer is running
[ Upstream commit 1fef73597fa545c35fddc953979013882fbd4e55 ] ppp_cp_event is called directly or indirectly by ppp_rx with "ppp->lock" held. It may call mod_timer to add a new timer. However, at the same time ppp_timer may be already running and waiting for "ppp->lock". In this case, there's no need for ppp_timer to continue running and it can just exit. If we let ppp_timer continue running, it may call add_timer. This causes kernel panic because add_timer can't be called with a timer pending. This patch fixes this problem. Fixes: e022c2f07ae5 ("WAN: new synchronous PPP implementation for generic HDLC.") Cc: Krzysztof Halasa <khc@pm.waw.pl> Signed-off-by: Xie He <xie.he.0141@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions