Skip to content
  1. Apr 10, 2021
  2. Apr 07, 2021
    • Gao Xiang's avatar
      erofs: reserve physical_clusterbits[] · 54e0b6c8
      Gao Xiang authored
      Formal big pcluster design is actually more powerful / flexable than
      the previous thought whose pclustersize was fixed as power-of-2 blocks,
      which was obviously inefficient and space-wasting. Instead, pclustersize
      can now be set independently for each pcluster, so various pcluster
      sizes can also be used together in one file if mkfs wants (for example,
      according to data type and/or compression ratio).
      
      Let's get rid of previous physical_clusterbits[] setting (also notice
      that corresponding on-disk fields are still 0 for now). Therefore,
      head1/2 can be used for at most 2 different algorithms in one file and
      again pclustersize is now independent of these.
      
      Link: https://lore.kernel.org/r/20210407043927.10623-2-xiang@kernel.org
      
      
      Acked-by: default avatarChao Yu <yuchao0@huawei.com>
      Signed-off-by: default avatarGao Xiang <hsiangkao@redhat.com>
      54e0b6c8
  3. Apr 03, 2021
  4. Mar 29, 2021
  5. Mar 28, 2021
  6. Mar 27, 2021
    • Ming Lei's avatar
      block: don't create too many partitions · e82fc785
      Ming Lei authored
      Commit a33df75c
      
       ("block: use an xarray for disk->part_tbl") drops the
      check on max supported number of partitionsr, and allows partition with
      bigger partition numbers to be added. However, ->bd_partno is defined as
      u8, so partition index of xarray table may not match with ->bd_partno.
      Then delete_partition() may delete one unmatched partition, and caused
      use-after-free.
      
      Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
      Reported-by: default avatar <syzbot+8fede7e30c7cee0de139@syzkaller.appspotmail.com>
      Fixes: a33df75c
      
       ("block: use an xarray for disk->part_tbl")
      Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      e82fc785
    • Steve French's avatar
      smb3: fix cached file size problems in duplicate extents (reflink) · cfc63fc8
      Steve French authored
      
      
      There were two problems (one of which could cause data corruption)
      that were noticed with duplicate extents (ie reflink)
      when debugging why various xfstests were being incorrectly skipped
      (e.g. generic/138, generic/140, generic/142). First, we were not
      updating the file size locally in the cache when extending a
      file due to reflink (it would refresh after actimeo expires)
      but xfstest was checking the size immediately which was still
      0 so caused the test to be skipped.  Second, we were setting
      the target file size (which could shrink the file) in all cases
      to the end of the reflinked range rather than only setting the
      target file size when reflink would extend the file.
      
      CC: <stable@vger.kernel.org>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      cfc63fc8