Skip to content
  1. Jul 25, 2020
    • Andrea Righi's avatar
      xen-netfront: fix potential deadlock in xennet_remove() · c2c63310
      Andrea Righi authored
      
      
      There's a potential race in xennet_remove(); this is what the driver is
      doing upon unregistering a network device:
      
        1. state = read bus state
        2. if state is not "Closed":
        3.    request to set state to "Closing"
        4.    wait for state to be set to "Closing"
        5.    request to set state to "Closed"
        6.    wait for state to be set to "Closed"
      
      If the state changes to "Closed" immediately after step 1 we are stuck
      forever in step 4, because the state will never go back from "Closed" to
      "Closing".
      
      Make sure to check also for state == "Closed" in step 4 to prevent the
      deadlock.
      
      Also add a 5 sec timeout any time we wait for the bus state to change,
      to avoid getting stuck forever in wait_event().
      
      Signed-off-by: default avatarAndrea Righi <andrea.righi@canonical.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c2c63310
    • Herbert Xu's avatar
      flow_offload: Move rhashtable inclusion to the source file · c2b69f24
      Herbert Xu authored
      
      
      I noticed that touching linux/rhashtable.h causes lib/vsprintf.c to
      be rebuilt.  This dependency came through a bogus inclusion in the
      file net/flow_offload.h.  This patch moves it to the right place.
      
      This patch also removes a lingering rhashtable inclusion in cls_api
      created by the same commit.
      
      Fixes: 4e481908 ("flow_offload: move tc indirect block to...")
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c2b69f24
  2. Jul 24, 2020
  3. Jul 23, 2020
  4. Jul 22, 2020
  5. Jul 21, 2020