What | Removed | Added |
---|---|---|
Priority | P3 - Medium | P4 - Low |
Status | NEW | IN_PROGRESS |
OK, it looks like a bug in the ramdisk driver. The problem is that rd_size argument is stored in 'int' and furthermore multiplied by 2 to get number of sectors the device should have. With rd_size == 1<<30 this overflows resulting in the device having absurdly large size which then confuses mkfs.ext4. I'll send a patch to fix this in brd driver and also add a defensive check to mkfs.ext4.