From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754730AbcIANT1 (ORCPT ); Thu, 1 Sep 2016 09:19:27 -0400 Received: from sandeen.net ([63.231.237.45]:34149 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752127AbcIANTY (ORCPT ); Thu, 1 Sep 2016 09:19:24 -0400 X-Greylist: delayed 518 seconds by postgrey-1.27 at vger.kernel.org; Thu, 01 Sep 2016 09:19:24 EDT Subject: Re: [PATCH] fs:Fix kmemleak leak warning in getname_flags about working on unitialized memory To: Al Viro , Tetsuo Handa References: <1470260896-31767-1-git-send-email-xerofoify@gmail.com> <20160804135712.GK2356@ZenIV.linux.org.uk> Cc: akpm@linux-foundation.org, msalter@redhat.com, kuleshovmail@gmail.com, david.vrabel@citrix.com, vbabka@suse.cz, ard.biesheuvel@linaro.org, jgross@suse.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org From: Eric Sandeen Message-ID: Date: Thu, 1 Sep 2016 08:10:44 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20160804135712.GK2356@ZenIV.linux.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/4/16 8:57 AM, Al Viro wrote: > Don't feed the troll. On all paths leading to that place we have > result->name = kname; > len = strncpy_from_user(kname, filename, EMBEDDED_NAME_MAX); > or > result->name = kname; > len = strncpy_from_user(kname, filename, PATH_MAX); > with failure exits taken if strncpy_from_user() returns an error, which means > that the damn thing has already been copied into. > > FWIW, it looks a lot like buggered kmemcheck; as usual, he can't be bothered > to mention which kernel version would it be (let alone how to reproduce it > on the kernel in question), but IIRC davej had run into some instrumentation > breakage lately. The original report is in https://bugzilla.kernel.org/show_bug.cgi?id=120651 if anyone is interested in it. -Eric > Again, don't feed the troll - you are only inviting an "improved" version > of that garbage, just as pointless.