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: <20150615193755.GE5003@thunk.org> Date: Mon, 15 Jun 2015 15:37:55 -0400 From: Theodore Ts'o <tytso@....edu> To: Jan Kara <jack@...e.cz> Cc: Ext4 Developers List <linux-ext4@...r.kernel.org>, enwlinux@...il.com, stable@...r.kernel.org Subject: Re: [PATCH] ext4: fix race between truncate and __ext4_journalled_writepage() On Mon, Jun 15, 2015 at 07:03:25PM +0200, Jan Kara wrote: > I think that fully switching lock ordering for data=journal mode back to > page lock -> transaction start (which is what you effectively do when you > never drop page lock in ->writepage) is rather error prone. We'd have to be > careful to avoid lock inversion also for places like ->write_begin, > ->releasepage, ->invalidatepage etc. For example ext4_write_begin() will > currently call lock_page() with transaction started which could deadlock > against journalled writepage you suggest. So effectively we'd have to > completely separate aops for data=journal mode. Doable but I'm not sure > it's worth it. Good point. OTOH, things are kind of fragile with respect to ext4_write_begin() in data=journal mode, as you've pointed out. But it's not causing any problems as far as we know, so so I'll use the patch which you ack'ed and maybe later on, we can figure out a better way to clean this up. Thanks, - 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