lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20140417161249.GH18591@thunk.org> Date: Thu, 17 Apr 2014 12:12:49 -0400 From: Theodore Ts'o <tytso@....edu> To: Devrin Talen <dct23@...nell.edu> Cc: linux-ext4@...r.kernel.org Subject: Re: ext4 filesystem corruption across partitions On Thu, Apr 17, 2014 at 11:05:23AM -0400, Devrin Talen wrote: > Hi all, > > I'm debugging an issue on my platform. In short, I can corrupt an ext4 > filesystem on one partition by writing a file on a different one. I'm > suspecting something is off either with my partition table or filesystem > parameters, but I'm such an ext4 beginner that I thought I'd start here > to get some help in where to look. The partition table looks fine. (What I did was to take the lba_start and partition_size fields from your table, imported them into a spreadsheet, and then verified that "lba_start + partition_size/512" for each partition was the same as the lba_start of the next partition. Obviously, there is no partition table overlap.) The kernel is supposed to make sure that writes in one partition can't affect another parition, so either you have a kernel bug in the block device layer or driver, or you have a hardware problem. I hate to ask this, but are you sure you have a quality 4GB sd card? There are fraudulent cards out there where a card will be marked as having X GB, but it only really has Y GB, or even Y MB worth of flash. The people making these fraudulent cards rely on the fact that very often people don't actually fill up their flash cards, so as long as they don't write to more than Y GB worth of disk sectors, they won't notice anything wrong. But if you do write to more sectors than there is flash, then the N+Ith unique disk sector write ends up going to the Ith disk sector that had been written. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists