Subject: Re: [PATCH] net: net_assign_generic() fix

From: Eric Dumazet <[email-masked]>
Date: Tue, 28 Jul 2009 15:16:37 +0200

Pavel Emelyanov a écrit :
>> Hmm...
>>
>> Real bug may be fixed by followed patch ? (yet untested, sorry...)
>>
>> [PATCH] net: net_assign_generic() fix 
>>
>> memcpy() should take into account size of pointers,
>> not only number of pointers to copy.
>>
>> Signed-off-by: Eric Dumazet <[email-masked]>
> 
> Acked-by: Pavel Emelyanov <[email-masked]>

Thanks.

Still this doesnt explain the crash, because initial number of pointers is 13
(INITIAL_NET_GEN_PTRS)

We probably never realloc this array, unless a module forgets to
unregister_pernet_gen_device() and we load/unload it many times ?