[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2237318.1721808676@warthog.procyon.org.uk>
Date: Wed, 24 Jul 2024 09:11:16 +0100
From: David Howells <dhowells@...hat.com>
To: Jan Kara <jack@...e.cz>
Cc: dhowells@...hat.com, Alexander Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>,
Jeff Layton <jlayton@...nel.org>, Gao Xiang <xiang@...nel.org>,
Matthew Wilcox <willy@...radead.org>, netfs@...ts.linux.dev,
linux-erofs@...ts.ozlabs.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] vfs: Fix potential circular locking through setxattr() and removexattr()
Jan Kara <jack@...e.cz> wrote:
> > + error = strncpy_from_user(kname, name, sizeof(kname));
> > + if (error == 0 || error == sizeof(kname))
> > + error = -ERANGE;
> > + if (error < 0)
> > + return error;
>
> Missing fdput() here.
Thanks. I think Christian is altering the patch to use auto-destruction
constructs (CLASS()).
David
Powered by blists - more mailing lists