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, 29 Sep 2010 23:37:05 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Dave Chinner <david@...morbit.com>
Cc:	linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 07/17] fs: icache atomic inodes_stat

On Thu, 30 Sep 2010 16:20:57 +1000 Dave Chinner <david@...morbit.com> wrote:

> > > --- a/fs/fs-writeback.c
> > > +++ b/fs/fs-writeback.c
> > > @@ -764,7 +764,8 @@ static long wb_check_old_data_flush(struct bdi_writeback *wb)
> > >  	wb->last_old_flush = jiffies;
> > >  	nr_pages = global_page_state(NR_FILE_DIRTY) +
> > >  			global_page_state(NR_UNSTABLE_NFS) +
> > > -			(inodes_stat.nr_inodes - inodes_stat.nr_unused);
> > > +			(atomic_read(&inodes_stat.nr_inodes) -
> > > +			atomic_read(&inodes_stat.nr_unused));
> > 
> > race bug.
> 
> What new race?  The code has gone from using subtraction of unlocked
> counters to using subtraction of unlocked atomic counters. I can't
> see any new race condition in that transformation....

Oh.  I assumed that all the above used to happen under inode_lock.

Coz that's wot the changelog told me :)
--
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