Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Cyrill Gorcunov <gorcunov@...>
Cc: LKML <linux-kernel@...>, Ingo Molnar <mingo@...>, David Miller <davem@...>, Andrew Morton <akpm@...>, Paul Mackerras <paulus@...>, Peter Zijlstra <peterz@...>, Thomas Gleixner <tglx@...>
Date: Wednesday, January 23, 2008 - 2:26 pm

Cyrill Gorcunov wrote:

The patch series looks like a nice cleanup, except for a few things in 
this patch.


I don't think there is. "tmp" is not being passed to kallsyms to be 
filled with a symbol name, but it's being used to hold a name written by 
the user to lookup an address.

If the powerpc/xmon people feel that 63 characters is enough to hold a 
symbol name, it's their problem, but there is no buffer overflow.


This one seems ok, since "tmpstr" is used everywhere to hold symbol names.


This one is completely out of the blue. Why "sizeof(tmpstr) / 2"?

It would make more sense to use "sizeof(tmpstr) - 1", but either way it 
is a change in behavior.


This also introduces a change in behavior. It is still a nice cleanup, 
though. So, if the powerpc people feel they can spare an extra 64 bytes 
of stack here, I guess it's ok.

-- 
Paulo Marques - www.grupopie.com

"As far as we know, our computer has never had an undetected error."
Weisert
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Cyrill Gorcunov, (Wed Jan 23, 1:38 pm)
Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Paulo Marques, (Wed Jan 23, 2:26 pm)
Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Cyrill Gorcunov, (Wed Jan 23, 2:43 pm)
Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Paulo Marques, (Wed Jan 23, 2:59 pm)
Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Cyrill Gorcunov, (Wed Jan 23, 3:07 pm)