Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758115Ab3CHXpj (ORCPT ); Fri, 8 Mar 2013 18:45:39 -0500 Received: from mail-vb0-f41.google.com ([209.85.212.41]:49308 "EHLO mail-vb0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859Ab3CHXpi convert rfc822-to-8bit (ORCPT ); Fri, 8 Mar 2013 18:45:38 -0500 MIME-Version: 1.0 In-Reply-To: <20130308233041.GA32587@redhat.com> References: <20130308150408.GA25399@redhat.com> <20130308191804.GA9774@redhat.com> <20130308192042.GA10305@redhat.com> <20130308193652.GA11692@redhat.com> <20130308210432.GA21500@redhat.com> <20130308230734.GA28317@redhat.com> <20130308233041.GA32587@redhat.com> Date: Fri, 8 Mar 2013 15:45:37 -0800 X-Google-Sender-Auth: 1wjI-LCPO1gQmTMqIS4bwSpogyc Message-ID: Subject: Re: BUG_ON(nd->inode != parent->d_inode); From: Linus Torvalds To: Dave Jones , Linus Torvalds , Linux Kernel , Al Viro Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1285 Lines: 21 On Fri, Mar 8, 2013 at 3:30 PM, Dave Jones wrote: > [ 100.729401] nd->last.name = (\xffffffd2.W._.N.".\xfffffffe.\xffffff80.^N.?.\xffffffe4.E.8.g.\xffffffd2.N.\xffffffb6.^G.\xfffffff1.\xffffffcc.U.\xffffffda.^_.h.^M.1.\xffffffc5.\xffffff82.%.B.\xffffffe0.\xffffffad.^U.8.^L.c.Z.^K.\xffffffe4.h.J.\xffffffc8.\xffffffad.\xffffff83./.\xffffff80.\xffffffd1.\xffffffe5.\xffffff87.\xffffffc3.\xffffffb2.\xffffffdc.\xffffff9d.\xffffffd1.E.\xffffffab.^B. You're printing out a 'char' with %02x, aren't you? And then the sign extensions gives you six extra 'f' character every time the char is negative. If using %02x, make sure you use 'unsigned char', or "& 255". Depending on just what is going on, the "nd->last.name" thing really is probably a valid string. Strictly speaking it's not necessarily NUL-terminated, though, and should be printed out to a maximum of "nd->last.len" characters (but the whole path will be NUL-terminated, so it's all ok, you just might print out more than one component) Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/