From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753676AbYKGXI6 (ORCPT ); Fri, 7 Nov 2008 18:08:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753442AbYKGXIr (ORCPT ); Fri, 7 Nov 2008 18:08:47 -0500 Received: from nf-out-0910.google.com ([64.233.182.186]:5289 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752376AbYKGXIp (ORCPT ); Fri, 7 Nov 2008 18:08:45 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=SMRgXvfc39N556wt7ZwIYhwETTljGgODg8LGPuPzI66tXvnokFp4u+nB4btxw8kOGG AkrqtlKFCkg1THISDILEDov6Bv+VlVOs/2LqkgY8/KDVvpd0lD8+ydTZH18D780iImKU /IRKTtcfHv9IUVacSA1zIOjIvOU2I8LDbZlRA= Date: Sat, 8 Nov 2008 02:12:05 +0300 From: Alexey Dobriyan To: Greg KH Cc: Ingo Molnar , Al Viro , Vegard Nossum , "Eric W. Biederman" , "Koyama, Yoshiya" , "Rafael J. Wysocki" , Pekka Enberg , LKML , Kay Sievers , linux-fsdevel@vger.kernel.org Subject: Re: v2.6.28-rc1: readlink /proc/*/exe returns uninitialized data to userspace Message-ID: <20081107231205.GA2528@x200.localdomain> References: <19f34abd0810251014s7968557br38e43aa0b9cdcf09@mail.gmail.com> <200810252241.53601.rjw@sisk.pl> <19f34abd0810261408w61b1e2dbvb9a0e16ce5a10022@mail.gmail.com> <19f34abd0811040139t8334502i7a5d8501c5fe95ac@mail.gmail.com> <20081104151234.GH28946@ZenIV.linux.org.uk> <20081106100410.GN4890@elte.hu> <20081107190544.GA1551@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081107190544.GA1551@kroah.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 07, 2008 at 11:05:44AM -0800, Greg KH wrote: > On Thu, Nov 06, 2008 at 11:04:10AM +0100, Ingo Molnar wrote: > > > > * Al Viro wrote: > > > > > On Tue, Nov 04, 2008 at 10:39:19AM +0100, Vegard Nossum wrote: > > > > On Sun, Oct 26, 2008 at 10:08 PM, Vegard Nossum wrote: > > > > # uname -a > > > > Linux localhost.localdomain 2.6.25.11-97.fc9.i686 #1 SMP Mon Jul 21 > > > > 01:31:09 EDT 2008 i686 i686 i386 GNU/Linux > > > > # prelink -mRf /sbin/udevd > > > > # ./a.out /proc/564/exe > > > > warning: /proc/564/exe: got return value 38, expected 11 > > > > 2f7362696e2f7564657664005f47387942426e5952446e566f306868202864656c6574656429 > > > > /sbin/udevd _G8yBBnYRDnVo0hh (deleted) > > > > > > > > Yoshiya Koyama reports that the problem exists on RHEL 2.6.9-42.ELsmp too. > > > > > > > > I don't think it's exactly the same problem as originally reported, > > > > because I definitely wasn't using prelinking (the prelink binary > > > > wasn't even installed on the machine until today). But finding the > > > > root cause of this may solve both problems. > > > > > > switch_names() buggered in case of short names on both sides. That should > > > help: > > > > > > >From 2acda856910b774717e0290bbf948c7dee0f2e1a Mon Sep 17 00:00:00 2001 > > > From: Al Viro > > > Date: Mon, 3 Nov 2008 15:03:50 -0500 > > > Subject: [PATCH] fix switch_names() breakage in short-to-short case > > > > > > We want ->name.len to match the resulting name on *both* > > > source and target > > > > > > Signed-off-by: Al Viro > > > > please credit kmemcheck in the commit message and use an appropriate > > Reported-by line as well. Thanks, > > Did this fix ever get merged into Linus's tree? So far no.