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]
Date:	Wed, 20 Sep 2006 04:55:25 +1000
From:	Nick Piggin <nickpiggin@...oo.com.au>
To:	Willy Tarreau <w@....eu>
CC:	Linux Kernel <linux-kernel@...r.kernel.org>,
	Marcelo Tosatti <mtosatti@...hat.com>
Subject: Re: Linux 2.4.34-pre3

Willy Tarreau wrote:
> Hi Nick,
> 
> On Wed, Sep 20, 2006 at 03:42:06AM +1000, Nick Piggin wrote:
> 
> [cut -pre3 advertisement]
> 
> 
>>I wonder if 2.4 doesn't need the memory ordering fix to prevent pagecache
>>corruption in reclaim? (http://www.gatago.com/linux/kernel/14682626.html)
>>
>>What would need to be done is to test page_count before testing PageDirty,
>>and putting an smp_rmb between the two.
> 
> 
> I've read the thread, and Linus proposed to add an smp_wmb() in
> set_page_dirty() too.

I think that isn't needed because put_page is a RMW, which is defined
to order memory. And presumably you wouldn't set the page dirty without
a reference to the page.

> I see that an smp_rmb() is already present
> in shrink_cache() with the adequate comment.

So there is! My mistake then, I was confused and looking at
try_to_swap_out, but I see that doesn't actually free the page. Fine,
I think 2.4 is OK then.

-- 
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com 
-
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