1. 10 8月, 2018 1 次提交
  2. 01 8月, 2018 1 次提交
  3. 22 7月, 2018 1 次提交
    • U
      net: dsa: mv88e6xxx: fix races between lock and irq freeing · 3d82475a
      Uwe Kleine-König 提交于
      free_irq() waits until all handlers for this IRQ have completed. As the
      relevant handler (mv88e6xxx_g1_irq_thread_fn()) takes the chip's reg_lock
      it might never return if the thread calling free_irq() holds this lock.
      
      For the same reason kthread_cancel_delayed_work_sync() in the polling case
      must not hold this lock.
      
      Also first free the irq (or stop the worker respectively) such that
      mv88e6xxx_g1_irq_thread_work() isn't called any more before the irq
      mappings are dropped in mv88e6xxx_g1_irq_free_common() to prevent the
      worker thread to call handle_nested_irq(0) which results in a NULL-pointer
      exception.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3d82475a
  4. 19 7月, 2018 8 次提交
  5. 01 6月, 2018 1 次提交
  6. 21 5月, 2018 4 次提交
  7. 17 5月, 2018 1 次提交
  8. 15 5月, 2018 3 次提交
  9. 12 5月, 2018 1 次提交
  10. 11 5月, 2018 4 次提交
  11. 08 5月, 2018 1 次提交
  12. 30 4月, 2018 3 次提交
  13. 28 4月, 2018 1 次提交
  14. 27 4月, 2018 1 次提交
  15. 13 4月, 2018 1 次提交
    • R
      net: dsa: mv88e6xxx: Fix receive time stamp race condition. · 22904823
      Richard Cochran 提交于
      The DSA stack passes received PTP frames to this driver via
      mv88e6xxx_port_rxtstamp() for deferred delivery.  The driver then
      queues the frame and kicks the worker thread.  The work callback reads
      out the latched receive time stamp and then works through the queue,
      delivering any non-matching frames without a time stamp.
      
      If a new frame arrives after the worker thread has read out the time
      stamp register but enters the queue before the worker finishes
      processing the queue, that frame will be delivered without a time
      stamp.
      
      This patch fixes the race by moving the queue onto a list on the stack
      before reading out the latched time stamp value.
      
      Fixes: c6fe0ad2 ("net: dsa: mv88e6xxx: add rx/tx timestamping support")
      Signed-off-by: NRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22904823
  16. 30 3月, 2018 2 次提交
  17. 26 3月, 2018 2 次提交
  18. 21 3月, 2018 3 次提交
  19. 19 3月, 2018 1 次提交