1. 16 5月, 2018 3 次提交
  2. 10 5月, 2018 1 次提交
  3. 24 3月, 2018 7 次提交
  4. 15 3月, 2018 1 次提交
  5. 12 3月, 2018 1 次提交
  6. 23 2月, 2018 1 次提交
  7. 29 1月, 2018 2 次提交
  8. 18 1月, 2018 16 次提交
  9. 13 1月, 2018 1 次提交
  10. 10 1月, 2018 1 次提交
    • D
      xfs: harden directory integrity checks some more · 46c59736
      Darrick J. Wong 提交于
      If a malicious filesystem image contains a block+ format directory
      wherein the directory inode's core.mode is set such that
      S_ISDIR(core.mode) == 0, and if there are subdirectories of the
      corrupted directory, an attempt to traverse up the directory tree will
      crash the kernel in __xfs_dir3_data_check.  Running the online scrub's
      parent checks will tend to do this.
      
      The crash occurs because the directory inode's d_ops get set to
      xfs_dir[23]_nondir_ops (it's not a directory) but the parent pointer
      scrubber's indiscriminate call to xfs_readdir proceeds past the ASSERT
      if we have non fatal asserts configured.
      
      Fix the null pointer dereference crash in __xfs_dir3_data_check by
      looking for S_ISDIR or wrong d_ops; and teach the parent scrubber
      to bail out if it is fed a non-directory "parent".
      Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
      Reviewed-by: NBrian Foster <bfoster@redhat.com>
      46c59736
  11. 09 1月, 2018 6 次提交