login
Header Space

 
 

Re: [PATCH 2/2] x86: modify show_shared_cpu_map in intel_cacheinfo

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mike Travis <travis@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, Paul Jackson <pj@...>
Date: Monday, March 31, 2008 - 1:24 pm

On Mon, Mar 31, 2008 at 6:35 PM, Mike Travis <travis@sgi.com> wrote:
I ask myself, why is there a temporary buffer allocation in the first
place? In the end it is copied unbounded into the provided buf
argument. Sure your list is mostly shorter than a hex mask, but you
can also not be sure that it fit into the provided buffer. So you can
also use cpumask_scnprintf directly with the buf argument, and provide
a good known upper bound for the size (ie.
cpumask_scnprintf_len(nr_cpu_ids)).

Can you keep me up to date. Thanks.

Bert
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/2] x86: modify show_shared_cpu_map in intel_cac..., Bert Wesarg, (Mon Mar 31, 1:24 pm)
speck-geostationary