Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'iomap-5.12-fixes' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull iomap fix from Darrick Wong:
"A single fix to the iomap code which fixes some drama when someone
gives us a {de,ma}liciously fragmented swap file"

* 'iomap-5.12-fixes' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
iomap: Fix negative assignment to unsigned sis->pages in iomap_swapfile_activate

+10
+10
fs/iomap/swapfile.c
··· 170 170 return ret; 171 171 } 172 172 173 + /* 174 + * If this swapfile doesn't contain even a single page-aligned 175 + * contiguous range of blocks, reject this useless swapfile to 176 + * prevent confusion later on. 177 + */ 178 + if (isi.nr_pages == 0) { 179 + pr_warn("swapon: Cannot find a single usable page in file.\n"); 180 + return -EINVAL; 181 + } 182 + 173 183 *pagespan = 1 + isi.highest_ppage - isi.lowest_ppage; 174 184 sis->max = isi.nr_pages; 175 185 sis->pages = isi.nr_pages - 1;