regressions.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* nfs mount disappears due to inode revalidate failure
@ 2023-03-09  9:42 Sylvain Menu
  2023-03-09 10:07 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Sylvain Menu @ 2023-03-09  9:42 UTC (permalink / raw)
  To: stable; +Cc: regressions, chuck.lever, jlayton, linux-nfs

Hello,

I am writing to report an issue on a nfs mount that disappears due to
an inode revalide failure (already sent in January but probably banned
with html format...).
This very old commit
(https://github.com/torvalds/linux/commit/cc89684c9a265828ce061037f1f79f4a68ccd3f7)
exactly show the problem I have and this old resolved issue
(https://bugzilla.kernel.org/show_bug.cgi?id=117651) is probably
failing again today

To sum up, I have a NFS mount inside another NFS mount (for example:
/opt/nfs/mount1 & /opt/nfs/mount1/mount2).
If I kill a task trying to get a file descriptor on
/opt/nfs/mount1/mount2 then it will be unmounted. My simple test code
to reproduce very easily:

int main(int argc, char *argv[]) {
    while (1) {
        close(open(argv[1], O_RDONLY));
    }
}

In logs, I have: "nfs_revalidate_inode: (0:62/845965) getattr failed,
error=-512"

Tested on 5.19 and 6.1 kernel

Best regards,
Sylvain Menu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nfs mount disappears due to inode revalidate failure
  2023-03-09  9:42 nfs mount disappears due to inode revalidate failure Sylvain Menu
@ 2023-03-09 10:07 ` Greg KH
  2023-03-09 10:17   ` Sylvain Menu
  0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2023-03-09 10:07 UTC (permalink / raw)
  To: Sylvain Menu; +Cc: stable, regressions, chuck.lever, jlayton, linux-nfs

On Thu, Mar 09, 2023 at 10:42:41AM +0100, Sylvain Menu wrote:
> Hello,
> 
> I am writing to report an issue on a nfs mount that disappears due to
> an inode revalide failure (already sent in January but probably banned
> with html format...).
> This very old commit
> (https://github.com/torvalds/linux/commit/cc89684c9a265828ce061037f1f79f4a68ccd3f7)
> exactly show the problem I have and this old resolved issue
> (https://bugzilla.kernel.org/show_bug.cgi?id=117651) is probably
> failing again today
> 
> To sum up, I have a NFS mount inside another NFS mount (for example:
> /opt/nfs/mount1 & /opt/nfs/mount1/mount2).
> If I kill a task trying to get a file descriptor on
> /opt/nfs/mount1/mount2 then it will be unmounted. My simple test code
> to reproduce very easily:
> 
> int main(int argc, char *argv[]) {
>     while (1) {
>         close(open(argv[1], O_RDONLY));
>     }
> }
> 
> In logs, I have: "nfs_revalidate_inode: (0:62/845965) getattr failed,
> error=-512"
> 
> Tested on 5.19 and 6.1 kernel

So is this a regression or something that has always been present?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nfs mount disappears due to inode revalidate failure
  2023-03-09 10:07 ` Greg KH
@ 2023-03-09 10:17   ` Sylvain Menu
  2023-03-09 10:22     ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Sylvain Menu @ 2023-03-09 10:17 UTC (permalink / raw)
  To: Greg KH; +Cc: stable, regressions, chuck.lever, jlayton, linux-nfs

I think it's a regression according to the old resolved bugs/tickets
but no idea since when it's broken again

Le jeu. 9 mars 2023 à 11:07, Greg KH <gregkh@linuxfoundation.org> a écrit :
>
> On Thu, Mar 09, 2023 at 10:42:41AM +0100, Sylvain Menu wrote:
> > Hello,
> >
> > I am writing to report an issue on a nfs mount that disappears due to
> > an inode revalide failure (already sent in January but probably banned
> > with html format...).
> > This very old commit
> > (https://github.com/torvalds/linux/commit/cc89684c9a265828ce061037f1f79f4a68ccd3f7)
> > exactly show the problem I have and this old resolved issue
> > (https://bugzilla.kernel.org/show_bug.cgi?id=117651) is probably
> > failing again today
> >
> > To sum up, I have a NFS mount inside another NFS mount (for example:
> > /opt/nfs/mount1 & /opt/nfs/mount1/mount2).
> > If I kill a task trying to get a file descriptor on
> > /opt/nfs/mount1/mount2 then it will be unmounted. My simple test code
> > to reproduce very easily:
> >
> > int main(int argc, char *argv[]) {
> >     while (1) {
> >         close(open(argv[1], O_RDONLY));
> >     }
> > }
> >
> > In logs, I have: "nfs_revalidate_inode: (0:62/845965) getattr failed,
> > error=-512"
> >
> > Tested on 5.19 and 6.1 kernel
>
> So is this a regression or something that has always been present?
>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nfs mount disappears due to inode revalidate failure
  2023-03-09 10:17   ` Sylvain Menu
@ 2023-03-09 10:22     ` Greg KH
  2023-03-09 15:24       ` Sylvain Menu
  0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2023-03-09 10:22 UTC (permalink / raw)
  To: Sylvain Menu; +Cc: stable, regressions, chuck.lever, jlayton, linux-nfs

On Thu, Mar 09, 2023 at 11:17:30AM +0100, Sylvain Menu wrote:
> I think it's a regression according to the old resolved bugs/tickets
> but no idea since when it's broken again

Any chance you can do 'git bisect' to find where it broke and what
commit broke it?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nfs mount disappears due to inode revalidate failure
  2023-03-09 10:22     ` Greg KH
@ 2023-03-09 15:24       ` Sylvain Menu
  2023-04-16 21:30         ` NeilBrown
  0 siblings, 1 reply; 7+ messages in thread
From: Sylvain Menu @ 2023-03-09 15:24 UTC (permalink / raw)
  To: Greg KH; +Cc: stable, regressions, chuck.lever, jlayton, linux-nfs

No I don't have that, I found the bug in production by no chance.
I tried to dive into the code but it quickly becomes complex for me,
at least it's easy to reproduce with a little script (while(1) timeout
my_c.code)

thanks
sylvain menu

Le jeu. 9 mars 2023 à 11:22, Greg KH <gregkh@linuxfoundation.org> a écrit :
>
> On Thu, Mar 09, 2023 at 11:17:30AM +0100, Sylvain Menu wrote:
> > I think it's a regression according to the old resolved bugs/tickets
> > but no idea since when it's broken again
>
> Any chance you can do 'git bisect' to find where it broke and what
> commit broke it?
>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nfs mount disappears due to inode revalidate failure
  2023-03-09 15:24       ` Sylvain Menu
@ 2023-04-16 21:30         ` NeilBrown
  0 siblings, 0 replies; 7+ messages in thread
From: NeilBrown @ 2023-04-16 21:30 UTC (permalink / raw)
  To: Sylvain Menu
  Cc: Greg KH, stable, regressions, chuck.lever, jlayton, linux-nfs

On Fri, 10 Mar 2023, Sylvain Menu wrote:
> No I don't have that, I found the bug in production by no chance.
> I tried to dive into the code but it quickly becomes complex for me,
> at least it's easy to reproduce with a little script (while(1) timeout
> my_c.code)
> 
> thanks
> sylvain menu
> 
> Le jeu. 9 mars 2023 à 11:22, Greg KH <gregkh@linuxfoundation.org> a écrit :
> >
> > On Thu, Mar 09, 2023 at 11:17:30AM +0100, Sylvain Menu wrote:
> > > I think it's a regression according to the old resolved bugs/tickets
> > > but no idea since when it's broken again
> >
> > Any chance you can do 'git bisect' to find where it broke and what
> > commit broke it?

Please see
   https://lore.kernel.org/linux-nfs/87361aovm3.fsf@notabene.neil.brown.name/

I posted a patch for this a couple of years ago, but Trond wouldn't take
it.

NeilBrown


> >
> > thanks,
> >
> > greg k-h
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* nfs mount disappears due to inode revalidate failure
@ 2023-01-19  9:41 sylvain.menu
  0 siblings, 0 replies; 7+ messages in thread
From: sylvain.menu @ 2023-01-19  9:41 UTC (permalink / raw)
  To: stable; +Cc: regressions, chuck.lever, jlayton, linux-nfs


[-- Attachment #1.1: Type: text/plain, Size: 890 bytes --]

Hello,

 

I am writing to report an issue on a nfs mount that disappears due to an
inode revalide failure.

 
<https://github.com/torvalds/linux/commit/cc89684c9a265828ce061037f1f79f4a68
ccd3f7> This very old commit exactly show the problem I have and
<https://bugzilla.kernel.org/show_bug.cgi?id=117651> this old resolved issue
is probably failing again today

 

To sum up, I have a NFS mount inside another NFS mount (for example:
/opt/nfs/mount1 & /opt/nfs/mount1/mount2).

If I kill a task trying to get a file descriptor on /opt/nfs/mount1/mount2
then it will be unmounted. My simple test code to reproduce very easily:

 

int main(int argc, char *argv[]) {

    while (1) {

        close(open(argv[1], O_RDONLY));

    }

}

 

In logs, I have: "nfs_revalidate_inode: (0:62/845965) getattr failed,
error=-512"

 

Tested on 5.19 and 6.1 kernel

 

Best regards,

Sylvain Menu

 


[-- Attachment #1.2: Type: text/html, Size: 5482 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 7608 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-16 21:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-09  9:42 nfs mount disappears due to inode revalidate failure Sylvain Menu
2023-03-09 10:07 ` Greg KH
2023-03-09 10:17   ` Sylvain Menu
2023-03-09 10:22     ` Greg KH
2023-03-09 15:24       ` Sylvain Menu
2023-04-16 21:30         ` NeilBrown
  -- strict thread matches above, loose matches on Subject: below --
2023-01-19  9:41 sylvain.menu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).