Return-Path: From: David Howells In-Reply-To: <20180928180048.14259-1-amir73il@gmail.com> References: <20180928180048.14259-1-amir73il@gmail.com> To: Amir Goldstein Cc: dhowells@redhat.com, Miklos Szeredi , linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Layton , Jan Harkes , Mark Fasheh Subject: Re: [PATCH] fs: fix access beyond unterminated strings in prints MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32346.1538665500.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Thu, 04 Oct 2018 16:05:00 +0100 Message-ID: <32347.1538665500@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: Amir Goldstein wrote: > @@ -47,7 +47,7 @@ static struct dentry *coda_lookup(struct inode *dir, struct dentry *entry, unsig > int type = 0; > > if (length > CODA_MAXNAMLEN) { > - pr_err("name too long: lookup, %s (%*s)\n", > + pr_err("name too long: lookup, %s (%.*s)\n", Use %pd instead? David