[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <HE1PR0802MB2555B33805E71BB78BBDACB3F47B0@HE1PR0802MB2555.eurprd08.prod.outlook.com>
Date: Mon, 20 Jul 2020 01:58:15 +0000
From: Jianyong Wu <Jianyong.Wu@....com>
To: Al Viro <viro@...iv.linux.org.uk>
CC: "ericvh@...il.com" <ericvh@...il.com>, "hch@....de" <hch@....de>,
"dhowells@...hat.com" <dhowells@...hat.com>,
"lucho@...kov.net" <lucho@...kov.net>,
"asmadeus@...ewreck.org" <asmadeus@...ewreck.org>,
"v9fs-developer@...ts.sourceforge.net"
<v9fs-developer@...ts.sourceforge.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Kaly Xin <Kaly.Xin@....com>, Justin He <Justin.He@....com>,
Wei Chen <Wei.Chen@....com>
Subject: RE: [RFC PATCH 0/2] vfs:9p: fix open-unlink-fstat bug
> -----Original Message-----
> From: Al Viro <viro@....linux.org.uk> On Behalf Of Al Viro
> Sent: Monday, July 20, 2020 9:52 AM
> To: Jianyong Wu <Jianyong.Wu@....com>
> Cc: ericvh@...il.com; hch@....de; dhowells@...hat.com;
> lucho@...kov.net; asmadeus@...ewreck.org; v9fs-
> developer@...ts.sourceforge.net; linux-kernel@...r.kernel.org; Kaly Xin
> <Kaly.Xin@....com>; Justin He <Justin.He@....com>; Wei Chen
> <Wei.Chen@....com>
> Subject: Re: [RFC PATCH 0/2] vfs:9p: fix open-unlink-fstat bug
>
> On Mon, Jul 20, 2020 at 09:46:20AM +0800, Jianyong Wu wrote:
> > how to reproduce:
> > in 9p guest:
> >
> > struct stat *statbuf;
> > int fd;
> >
> > fd = open("tmp", O_RDWR);
> > unlink("tmp");
> > fstat(fd, statbuf);
> >
> > fstat will fail as "tmp" in 9p server side has been removed. 9p server
> > can't retrieve the file context as the guest has not passed it down.
> > so we should pass the file info down in 9p guest in getattr op.
> > it need add a new file member in "struct kstat" as "struct istat" does.
>
> Er... what struct istat?
Oh, sorry, I make mistake here. it's "struct iattr" Not "istat".
Thanks
Jianyong
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Powered by blists - more mailing lists