Messages in this thread | | | From | Jianyong Wu <> | Subject | RE: [RFC PATCH 0/2] vfs:9p: fix open-unlink-fstat bug | Date | Mon, 20 Jul 2020 01:58:15 +0000 |
| |
> -----Original Message----- > From: Al Viro <viro@ftp.linux.org.uk> On Behalf Of Al Viro > Sent: Monday, July 20, 2020 9:52 AM > To: Jianyong Wu <Jianyong.Wu@arm.com> > Cc: ericvh@gmail.com; hch@lst.de; dhowells@redhat.com; > lucho@ionkov.net; asmadeus@codewreck.org; v9fs- > developer@lists.sourceforge.net; linux-kernel@vger.kernel.org; Kaly Xin > <Kaly.Xin@arm.com>; Justin He <Justin.He@arm.com>; Wei Chen > <Wei.Chen@arm.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.
| |