Re: [PATCH] kernel/module.c: use scnprintf() instead of sprintf()

2013-08-20 Thread Chen Gang
On 08/20/2013 02:04 PM, Rusty Russell wrote: > Chen Gang writes: > >> For some strings, they are permitted to be larger than PAGE_SIZE, so >> need use scnprintf() instead of sprintf(), or it will cause issue. >> >> One case is: >> >> if a module version is crazy defined (length more than PAGE_S

Re: [PATCH] kernel/module.c: use scnprintf() instead of sprintf()

2013-08-20 Thread Rusty Russell
Chen Gang writes: > For some strings, they are permitted to be larger than PAGE_SIZE, so > need use scnprintf() instead of sprintf(), or it will cause issue. > > One case is: > > if a module version is crazy defined (length more than PAGE_SIZE), > 'modinfo' command is still OK (print full con