netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/5] ppp: fix locking issues related to ppp_ioctl()
@ 2016-02-22 19:47 Guillaume Nault
  2016-02-22 19:47 ` [PATCH net 1/5] ppp: lock ppp structure before modifying mru in ppp_ioctl() Guillaume Nault
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Guillaume Nault @ 2016-02-22 19:47 UTC (permalink / raw)
  To: netdev; +Cc: Paul Mackerras, David Miller

This series fixes unprotected accesses to several struct ppp fields.
Only fields used in ppp_ioctl() have been considered, though.

Locking of the xstate and rstate fields remains incomplete: although a
side effect of patch #2 provides protection in ppp_ioctl(), xstate and
rstate can still be modified without appropriate locking by
ppp_ccp_peek(). Taking the missing locks in ppp_ccp_peek() isn't
possible as this would lead to lock inversion (when protecting xstate
with ppp_xmit_lock() while ppp_ccp_peek() is called in the Rx path).

Using a workqueue to run ppp_ccp_peek() might be a solution, but this
is left for another series.

Guillaume Nault (5):
  ppp: lock ppp structure before modifying mru in ppp_ioctl()
  ppp: fix unprotected accesses to ppp->flags and ppp->n_channels
  ppp: protect ppp->debug in ppp_ioctl()
  ppp: protect access to ppp->last{xmit,recv} in ppp_ioctl()
  ppp: protect ppp->npmode

 drivers/net/ppp/ppp_generic.c | 42 +++++++++++++++++++++++++++++++++++++++---
 1 file changed, 39 insertions(+), 3 deletions(-)

-- 
2.7.0

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-02-25 20:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-22 19:47 [PATCH net 0/5] ppp: fix locking issues related to ppp_ioctl() Guillaume Nault
2016-02-22 19:47 ` [PATCH net 1/5] ppp: lock ppp structure before modifying mru in ppp_ioctl() Guillaume Nault
2016-02-24 20:32   ` David Miller
2016-02-25 19:16     ` Guillaume Nault
2016-02-25 20:24       ` David Miller
2016-02-22 19:47 ` [PATCH net 2/5] ppp: fix unprotected accesses to ppp->flags and ppp->n_channels Guillaume Nault
2016-02-22 19:47 ` [PATCH net 3/5] ppp: protect ppp->debug in ppp_ioctl() Guillaume Nault
2016-02-22 19:47 ` [PATCH net 4/5] ppp: protect access to ppp->last_{xmit,recv} " Guillaume Nault
2016-02-22 19:47 ` [PATCH net 5/5] ppp: protect ppp->npmode Guillaume Nault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).