Re: NULL pointer dereference when loading the gre module (3.10.0-rc4)

Eric Dumazet
2013-06-07T13:40:45Z

On Fri, 2013-06-07 at 10:54 +0200, Steinar H. Gunderson wrote:
> On Thu, Jun 06, 2013 at 11:06:48PM -0400, Steven Rostedt wrote:
> > Note the faulting address is 0xffffffffa0e52001, which is around the
> > above address, be interesting to know what was at that location.
>
> Doh, I looked at the wrong place in kallsyms:
>
> ffffffffa0e52000 u ip_tunnel_init_net [ip_gre]
> ffffffffa0e55000 t gre_err [gre]
> ffffffffa0e5503d t gre_gso_send_check [gre]
> ffffffffa0e55053 t gre_rcv [gre]
>
> So it's really ip_tunnel_init_net+1.
>
> /* Steinar */

" u " for ip_tunnel_init_net ?

Looks like someone forgot taking refcounts on a module ...

CC Pravin B Shelar, as this probably comes from commit
c54419321455631079c7d6e60bc732dd0c5914c5
("GRE: Refactor GRE tunneling code.")