1. 13 May, 2020 5 commits
  2. 12 May, 2020 33 commits
  3. 11 May, 2020 2 commits
    • David S. Miller's avatar
      Merge branch 'improve-msg_control-kernel-vs-user-pointer-handling' · 97cf0ef9
      David S. Miller authored
      Christoph Hellwig says:
      
      ====================
      improve msg_control kernel vs user pointer handling
      
      this series replace the msg_control in the kernel msghdr structure
      with an anonymous union and separate fields for kernel vs user
      pointers.  In addition to helping a bit with type safety and reducing
      sparse warnings, this also allows to remove the set_fs() in
      kernel_recvmsg, helping with an eventual entire removal of set_fs().
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      97cf0ef9
    • Christoph Hellwig's avatar
      net: cleanly handle kernel vs user buffers for ->msg_control · 1f466e1f
      Christoph Hellwig authored
      The msg_control field in struct msghdr can either contain a user
      pointer when used with the recvmsg system call, or a kernel pointer
      when used with sendmsg.  To complicate things further kernel_recvmsg
      can stuff a kernel pointer in and then use set_fs to make the uaccess
      helpers accept it.
      
      Replace it with a union of a kernel pointer msg_control field, and
      a user pointer msg_control_user one, and allow kernel_recvmsg operate
      on a proper kernel pointer using a bitfield to override the normal
      choice of a user pointer for recvmsg.
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1f466e1f