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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1105301142030.5766@asgard.lang.hm>
Date:	Mon, 30 May 2011 11:45:42 -0700 (PDT)
From:	david@...g.hm
To:	"D. Jansen" <d.g.jansen@...glemail.com>
cc:	Theodore Tso <tytso@....edu>, Oliver Neukum <oneukum@...e.de>,
	akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
	Dave Chinner <david@...morbit.com>, njs@...ox.com,
	bart@...wel.tk
Subject: Re: [rfc] Ignore Fsync Calls in Laptop_Mode

On Mon, 30 May 2011, D. Jansen wrote:

> On Mon, May 30, 2011 at 8:02 PM,  <david@...g.hm> wrote:
>>
>> no, you cannot just change a fsync to a barrier, in some cases the data
>> absolutly needs to be saved, not just ordered (remember the example of a
>> mail server telling the other system that the data can be deleted after a
>> fsync returns)
>
> I'm not really sure I why shouldn't have that choice as a user. Just
> because someone else could be running a mailserver on his system and
> configure it in a way that it doesn't behave as it should?
> If he really wants to do that there's really nothing we can do to stop
> him. I'm sure there are other ways existing kernel options can be used
> to make software behave different than it should. Are we going to
> remove them all now?
>
> The big problem is that so far only fsync existed and lots of software
> seemingly abuses it as an expensive write barrier. And it would really
> be lovely to have the choice to stop that on an opt-in basis in laptop
> mode.

is the benifit of not spinning up the disk really worth the risk of 
loosing data?

and should this really be a global across-the-board option?

the problem is that most users don't know what their system is running, or 
what effect disaling fsync would have. those that do can probably use 
LD_PRELOAD to override fsync calls.

it doesn't take running a mail server, even a mail client will have the 
same risk. If you use POP for mail (a very common option) then you 
download messages and tell the server to delete them. if you do not really 
save them (one fsync after they are all saved), then you can loose 
everything that you downloaded.

David Lang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ