From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 16 Jun 2016 09:02:40 +0200 From: Willy Tarreau To: Linus Torvalds Cc: Andy Lutomirski , Al Viro , Andy Lutomirski , Linux FS Devel , Stephen Rothwell , Andrew Morton , stable Subject: Re: [PATCH v2 1/2] fs: Improve and simplify copy_mount_options Message-ID: <20160616070240.GA7302@1wt.eu> References: <20160615235047.GA14480@ZenIV.linux.org.uk> <20160616054525.GA6803@1wt.eu> <20160616065738.GA7154@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160616065738.GA7154@1wt.eu> Sender: stable-owner@vger.kernel.org List-ID: On Thu, Jun 16, 2016 at 08:57:38AM +0200, Willy Tarreau wrote: (...) > + /* avoid reading a whole page if the FS only needs a string. */ > + if (!(type->fs_flags & FS_BINARY_MOUNTDATA)) { > + strlcpy(copy, data, PAGE_SIZE); BTW, I forgot that we're first supposed to come from user, make that strndup_user() instead. Willy