Re: [PATCH] kernel: kallsyms: parameters checking, for EXPORT_SYMBOL_GPL functions

Chen Gang
2013-04-11T04:27:54Z

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