1. 01 12月, 2018 1 次提交
  2. 29 11月, 2018 4 次提交
  3. 27 11月, 2018 2 次提交
  4. 25 11月, 2018 1 次提交
    • W
      selftests/net: add txring_overwrite · 358be656
      Willem de Bruijn 提交于
      Packet sockets with PACKET_TX_RING send skbs with user data in frags.
      
      Before commit 5cd8d46e ("packet: copy user buffers before orphan
      or clone") ring slots could be released prematurely, possibly allowing
      a process to overwrite data still in flight.
      
      This test opens two packet sockets, one to send and one to read.
      The sender has a tx ring of one slot. It sends two packets with
      different payload, then reads both and verifies their payload.
      
      Before the above commit, both receive calls return the same data as
      the send calls use the same buffer. From the commit, the clone
      needed for looping onto a packet socket triggers an skb_copy_ubufs
      to create a private copy. The separate sends each arrive correctly.
      Signed-off-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      358be656
  5. 23 11月, 2018 2 次提交
  6. 22 11月, 2018 4 次提交
  7. 21 11月, 2018 4 次提交
  8. 20 11月, 2018 18 次提交
  9. 18 11月, 2018 2 次提交
  10. 17 11月, 2018 2 次提交