Re: [PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
On 2013年04月11日 12:08, Rusty Russell wrote: > Chen Gang writes: >> We don't export any symbols > 128 characters, but if we did then >> kallsyms_expand_symbol() would overflow the buffer handed to it. >> So we need check destination buffer length when copying. >> >> the related test: >>

Re: [PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Rusty Russell
Chen Gang writes: > We don't export any symbols > 128 characters, but if we did then > kallsyms_expand_symbol() would overflow the buffer handed to it. > So we need check destination buffer length when copying. > > the related test: > if we define an EXPORT function which name more

[PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
We don't export any symbols > 128 characters, but if we did then kallsyms_expand_symbol() would overflow the buffer handed to it. So we need check destination buffer length when copying. the related test: if we define an EXPORT function which name more than 128. will panic when

[PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
We don't export any symbols 128 characters, but if we did then kallsyms_expand_symbol() would overflow the buffer handed to it. So we need check destination buffer length when copying. the related test: if we define an EXPORT function which name more than 128. will panic when

Re: [PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Rusty Russell
Chen Gang gang.c...@asianux.com writes: We don't export any symbols 128 characters, but if we did then kallsyms_expand_symbol() would overflow the buffer handed to it. So we need check destination buffer length when copying. the related test: if we define an EXPORT function

Re: [PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
On 2013年04月11日 12:08, Rusty Russell wrote: Chen Gang gang.c...@asianux.com writes: We don't export any symbols 128 characters, but if we did then kallsyms_expand_symbol() would overflow the buffer handed to it. So we need check destination buffer length when copying. the related