Re: [PATCH 3/10] Fix leaking of kernel heap addresses in net/

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Graf
Date: Thursday, November 11, 2010 - 6:20 pm

On Thu, Nov 11, 2010 at 08:07:03PM -0500, Dan Rosenberg wrote:

If we really have to do this. At least don't duplicate all this code. Do
the check in the printf argument:

	seq_printf(seq, "%4d: %08X:%04X %08X:%04X"
		...
		capable(CAP_NET_ADMIN) ? sp : 0,

I would even move the decision whether to expose kernel addresses or not
to a function so we can change behavior in one place.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/10] Fix leaking of kernel heap addresses in net/, Dan Rosenberg, (Thu Nov 11, 6:07 pm)
Re: [PATCH 3/10] Fix leaking of kernel heap addresses in net/, Thomas Graf, (Thu Nov 11, 6:20 pm)