lkml.org 
[lkml]   [2013]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kernel: kallsyms: parameters checking, for EXPORT_SYMBOL_GPL functions
On 2013年04月11日 10:52, Rusty Russell wrote:
>>> >> Or is someone already doing this?
>>> >>
>> >
>> > really has:
>> >
>> > kernel: __wake_up_sync_key in kernel/sched/core.c.
>> > lib: *printf.
>> > mm: kfree.
> No, I mean "is someone calling these functions with NULL".
>
> Cheers,
> Rusty.
>
>

often "kfree(NULL)", that is ok. it will let caller easier using it.
also often give 0 size to snprintf, it still let caller easy using.

if we treat EXPORT functions of kallsyms as commonly used (or we want to)
I suggest to give parameter check for them.


thanks.

:-)

--
Chen Gang

Asianux Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2013-04-11 07:22    [W:0.047 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site