From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Rosenberg Subject: Re: [PATCH 2/10] Fix leaking of kernel heap addresses in net/ Date: Fri, 12 Nov 2010 10:11:51 -0500 Message-ID: <1289574711.3090.285.camel@Dan> References: <1289524019.5167.66.camel@dan> <1289574562.2247.1.camel@achroite.uk.solarflarecom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Oliver Hartkopp , Alexey Kuznetsov , Urs Thuermann , Hideaki YOSHIFUJI , Patrick McHardy , James Morris , Remi Denis-Courmont , "Pekka Savola (ipv6)" , Sridhar Samudrala , Vlad Yasevich , Tejun Heo , Eric Dumazet , Li Zefan , Joe Perches , Stephen Hemminger , Jamal Hadi Salim , "Eric W. Biederman" , Alexey Dobriyan , Jiri Pirko , Johannes Berg , Daniel Lezcano , Pavel Eme To: Ben Hutchings Return-path: Received: from mx1.vsecurity.com ([209.67.252.12]:52774 "EHLO mx1.vsecurity.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932100Ab0KLPLy (ORCPT ); Fri, 12 Nov 2010 10:11:54 -0500 In-Reply-To: <1289574562.2247.1.camel@achroite.uk.solarflarecom.com> Sender: netdev-owner@vger.kernel.org List-ID: > On Thu, 2010-11-11 at 20:06 -0500, Dan Rosenberg wrote: > > diff --git a/net/can/bcm.c b/net/can/bcm.c > > index 08ffe9e..5960ad7 100644 > > --- a/net/can/bcm.c > > +++ b/net/can/bcm.c > [...] > > + seq_printf(m, ">>> socket %lu", sock_i_ino(sk)); > > Why decimal here... > > [...] > > + /* unique socket inode as filename */ > > + sprintf(bo->procname, "%lx", sock_i_ino(sk)); > > ...and hexadecimal here? > > Ben. > You're right, it should be consistent. I avoided decimal in the /proc filename because it may be too long - the next version will do the same for the seq_print output. -Dan