Re: [PATCH] kernel: kallsyms: parameters checking, for EXPORT_SYMBOL_GPLfunctions
From: Chen Gang
Date: Thu Apr 11 2013 - 00:28:15 EST
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".
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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/