Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Apr 23, 2021
    • David Howells's avatar
      iov_iter: Add ITER_XARRAY · 7ff50620
      David Howells authored
      Add an iterator, ITER_XARRAY, that walks through a set of pages attached to
      an xarray, starting at a given page and offset and walking for the
      specified amount of bytes.  The iterator supports transparent huge pages.
      
      The iterate_xarray() macro calls the helper function with rcu_access()
      helped.  I think that this is only a problem for iov_iter_for_each_range()
      - and that returns an error for ITER_XARRAY (also, this function does not
      appear to be called).
      
      The caller must guarantee that the pages are all present and they must be
      locked using PG_locked, PG_writeback or PG_fscache to prevent them from
      going away or being migrated whilst they're being accessed.
      
      This is useful for copying data from socket buffers to inodes in network
      filesystems and for transferring data between those inodes and the cache
      using direct I/O.
      
      Whilst it is true that ITER_BVEC could be used instead, that would require
      a bio_vec array to be allocated to refer to all the pages - which should be
      redundant ...
      7ff50620
  2. Mar 24, 2021
  3. Mar 23, 2021
  4. Mar 22, 2021
    • Linus Torvalds's avatar
      Merge tag 'selinux-pr-20210322' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · 84196390
      Linus Torvalds authored
      Pull selinux fixes from Paul Moore:
       "Three SELinux patches:
      
         - Fix a problem where a local variable is used outside its associated
           function. Thankfully this can only be triggered by reloading the
           SELinux policy, which is a restricted operation for other obvious
           reasons.
      
         - Fix some incorrect, and inconsistent, audit and printk messages
           when loading the SELinux policy.
      
        All three patches are relatively minor and have been through our
        testing with no failures"
      
      * tag 'selinux-pr-20210322' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
        selinuxfs: unify policy load error reporting
        selinux: fix variable scope issue in live sidtab conversion
        selinux: don't log MAC_POLICY_LOAD record on failed policy load
      84196390
  5. Mar 21, 2021