From: Dan Rosenberg <drosenberg@vsecurity•com>
To: Ben Hutchings <bhutchings@solarflare•com>
Cc: "David S. Miller" <davem@davemloft•net>,
Oliver Hartkopp <socketcan@hartkopp•net>,
Alexey Kuznetsov <kuznet@ms2•inr.ac.ru>,
Urs Thuermann <urs.thuermann@volkswagen•de>,
Hideaki YOSHIFUJI <yoshfuji@linux-ipv6•org>,
Patrick McHardy <kaber@trash•net>,
James Morris <jmorris@namei•org>,
Remi Denis-Courmont <remi.denis-courmont@nokia•com>,
"Pekka Savola (ipv6)" <pekkas@netcore•fi>,
Sridhar Samudrala <sri@us•ibm.com>,
Vlad Yasevich <vladislav.yasevich@hp•com>,
Tejun Heo <tj@kernel•org>, Eric Dumazet <eric.dumazet@gmail•com>,
Li Zefan <lizf@cn•fujitsu.com>, Joe Perches <joe@perches•com>,
Stephen Hemminger <shemminger@vyatta•com>,
Jamal Hadi Salim <hadi@mojatatu•com>,
"Eric W. Biederman" <ebiederm@xmission•com>,
Alexey Dobriyan <adobriyan@gmail•com>,
Jiri Pirko <jpirko@redhat•com>,
Johannes Berg <johannes.berg@intel•com>,
Daniel Lezcano <daniel.lezcano@free•fr>,
Pavel Eme
Subject: Re: [PATCH 2/10] Fix leaking of kernel heap addresses in net/
Date: Fri, 12 Nov 2010 10:11:51 -0500 [thread overview]
Message-ID: <1289574711.3090.285.camel@Dan> (raw)
In-Reply-To: <1289574562.2247.1.camel@achroite.uk.solarflarecom.com>
> 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
prev parent reply other threads:[~2010-11-12 15:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-12 1:06 [PATCH 2/10] Fix leaking of kernel heap addresses in net/ Dan Rosenberg
2010-11-12 1:17 ` Stephen Hemminger
2010-11-12 1:22 ` Dan Rosenberg
2010-11-12 15:09 ` Ben Hutchings
2010-11-12 15:11 ` Dan Rosenberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1289574711.3090.285.camel@Dan \
--to=drosenberg@vsecurity$(echo .)com \
--cc=adobriyan@gmail$(echo .)com \
--cc=bhutchings@solarflare$(echo .)com \
--cc=daniel.lezcano@free$(echo .)fr \
--cc=davem@davemloft$(echo .)net \
--cc=ebiederm@xmission$(echo .)com \
--cc=eric.dumazet@gmail$(echo .)com \
--cc=hadi@mojatatu$(echo .)com \
--cc=jmorris@namei$(echo .)org \
--cc=joe@perches$(echo .)com \
--cc=johannes.berg@intel$(echo .)com \
--cc=jpirko@redhat$(echo .)com \
--cc=kaber@trash$(echo .)net \
--cc=kuznet@ms2$(echo .)inr.ac.ru \
--cc=lizf@cn$(echo .)fujitsu.com \
--cc=pekkas@netcore$(echo .)fi \
--cc=remi.denis-courmont@nokia$(echo .)com \
--cc=shemminger@vyatta$(echo .)com \
--cc=socketcan@hartkopp$(echo .)net \
--cc=sri@us$(echo .)ibm.com \
--cc=tj@kernel$(echo .)org \
--cc=urs.thuermann@volkswagen$(echo .)de \
--cc=vladislav.yasevich@hp$(echo .)com \
--cc=yoshfuji@linux-ipv6$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox