1. 22 Oct, 2021 6 commits
  2. 19 Oct, 2021 22 commits
  3. 14 Oct, 2021 11 commits
  4. 11 Oct, 2021 1 commit
    • Rustam Kovhaev's avatar
      xfs: use kmem_cache_free() for kmem_cache objects · c30a0cbd
      Rustam Kovhaev authored
      For kmalloc() allocations SLOB prepends the blocks with a 4-byte header,
      and it puts the size of the allocated blocks in that header.
      Blocks allocated with kmem_cache_alloc() allocations do not have that
      header.
      
      SLOB explodes when you allocate memory with kmem_cache_alloc() and then
      try to free it with kfree() instead of kmem_cache_free().
      SLOB will assume that there is a header when there is none, read some
      garbage to size variable and corrupt the adjacent objects, which
      eventually leads to hang or panic.
      
      Let's make XFS work with SLOB by using proper free function.
      
      Fixes: 9749fee8 ("xfs: enable the xfs_defer mechanism to process extents to free")
      Signed-off-by: default avatarRustam Kovhaev <rkovhaev@gmail.com>
      Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
      Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
      c30a0cbd