From: Greg KH <gregkh@linuxfoundation.org>
To: Vegard Nossum <vegard.nossum@oracle.com>
Cc: Theodore Ts'o <tytso@mit.edu>,
adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Subject: Re: ext4: fix reference counting bug on block allocation error
Date: Sun, 14 Aug 2016 21:46:29 +0200 [thread overview]
Message-ID: <20160814194629.GA28207@kroah.com> (raw)
In-Reply-To: <57B0C81F.9000309@oracle.com>
On Sun, Aug 14, 2016 at 09:35:59PM +0200, Vegard Nossum wrote:
> On 08/14/2016 09:09 PM, Greg KH wrote:
> > On Sun, Aug 14, 2016 at 09:02:48PM +0200, Vegard Nossum wrote:
> > > The commit which is being fixed is ancient:
> > >
> > > $ git describe 8556e8f3b6
> > > v2.6.28-5758-g8556e8f3
> > >
> > > It's probably already in the base of every current stable tree, no?
> >
> > Huh? Ok, this odd:
> > $ git describe --contains 8556e8f3b6
> > fatal: cannot describe '8556e8f3b6c4c11601ce1e9ea8090a6d8bd5daae'
> >
> > Yet just a plain 'git describe' does work...
> >
> > That's what threw me off, I only use --contains as that shows the
> > release the commit is in.
> >
> > Ok, that makes me feel a bit better (that my scripts didn't miss the
> > patch, it was just old), but I wonder what is going on with git...
> >
>
> How odd.
>
> There is this:
>
> http://www.spinics.net/lists/git/msg246837.html
>
> """
> Yes, the "describe --contains" algorithm uses timestamps to cut off the
> traversal, so it can do the wrong thing if there's clock skew. It has a
> "slop" margin of one day, but skew larger than that can fool it.
> """
>
> It looks like ancestors of 87d8fe1 don't work:
>
> $ for commit in $(git rev-list 87d8fe1^^..87d8fe1); do git describe
> --contains $commit; done
> v2.6.29-rc1~40^2~12
> fatal: cannot describe '0087d9fb3f29f59e8d42c8b058376d80e5adde4c'
>
> So maybe it's because the parent commit is 2 days in the future:
>
> $ git log --format=fuller 87d8fe1^^..87d8fe1
> commit 87d8fe1ee6b8d2f95076142d58c440dba4e7bdc2
> Author: Theodore Ts'o <tytso@mit.edu>
> AuthorDate: Sat Jan 3 09:47:09 2009 -0500
> Commit: Theodore Ts'o <tytso@mit.edu>
> CommitDate: Sat Jan 3 09:47:09 2009 -0500
> [...]
>
> commit 0087d9fb3f29f59e8d42c8b058376d80e5adde4c
> Author: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> AuthorDate: Mon Jan 5 21:49:12 2009 -0500
> Commit: Theodore Ts'o <tytso@mit.edu>
> CommitDate: Mon Jan 5 21:49:12 2009 -0500
> [...]
Ouch, that's some clock skew.
Thanks for working this out, I've now applied the patch to the stable
trees.
greg k-h
next prev parent reply other threads:[~2016-08-14 19:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160727052921.5B41C35574@git2.kroah.org>
2016-08-14 18:32 ` ext4: fix reference counting bug on block allocation error Greg KH
2016-08-14 18:37 ` Vegard Nossum
2016-08-14 18:51 ` Greg KH
2016-08-14 18:58 ` Greg KH
2016-08-14 19:02 ` Vegard Nossum
2016-08-14 19:09 ` Greg KH
2016-08-14 19:35 ` Vegard Nossum
2016-08-14 19:46 ` Greg KH [this message]
2016-08-14 20:19 ` Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160814194629.GA28207@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=adilger.kernel@dilger.ca \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=vegard.nossum@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.