Hi, Testing 4.13.5 out on my SGI Octane, I discovered that my RAID5 arrays were no longer auto-assembling. The error being thrown was an "attempt to access beyond the end of the device". I've hand-transcribed a block of these errors from a manual attempt to assemble the array via mdadm from a netboot image: / # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 [ 56.303339] md: md0 stopped. [ 56.323565] md/raid:md0: device sda1 operational as raid disk 0 [ 56.334556] md/raid:md0: device sdb1 operational as raid disk 2 [ 56.345396] md/raid:md0: device sdc1 operational as raid disk 1 [ 56.350750] md/raid:md0: raid level 5 active with 3 out of 3 devices, algorithm 2 [ 56.369529] attempt to access beyond end of device [ 56.380149] sda1: rw=2048, want=4194312, limit=4194305 [ 56.390823] attempt to access beyond end of device [ 56.401500] sdc1: rw=2048, want=4194312, limit=4194305 [ 56.412313] attempt to access beyond end of device [ 56.423146] sdb1: rw=2048, want=4194312, limit=4194305 [ 56.433985] md0: failed to create bitmap (-5) mdadm: failed to RUN_ARRAY /dev/md0: input/output error [ 56.457979] md: md0 stopped. / # I've traced the offending commit down to 8031c3ddc70a ("md/bitmap: copy correct data for bitmap super"): https://git.linux-mips.org/cgit/ralf/linux.git/commit/?id=8031c3ddc70ab93099e7d1814382dba39f57b43e Per the commit message, it makes an assumption that PAGE_SIZE is 4K. MIPS kernels allow you to change the value of PAGE_SIZE at compile time to something other than 4K. It appears that 4K and 16K both work, while 64K, which is what I use on this machine, is broken with this commit applied. Reverting this patch or setting PAGE_SIZE to 4K or 16K will resolve the issue, but there are advantages to using 64K PAGE_SIZEs on these platforms. I am not sure that 16K is wholly safe either, FWIW, given the assumption made in the commit. Thoughts? -- Joshua Kinard Gentoo/MIPS kumba@xxxxxxxxxx 6144R/F5C6C943 2015-04-27 177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html