Re: [Patch net] ipv6: reorder icmpv6_init() and ip6_mr_init()

2017-03-07 Thread David Miller
From: Cong Wang Date: Sun, 5 Mar 2017 12:34:53 -0800 > Andrey reported the following kernel crash: ... > This is because net->ipv6.mr6_tables is not initialized at that point, > ip6mr_rules_init() is not called yet, therefore on the error path when > we iterator the list, we trigger this oops. F

Re: [Patch net] ipv6: reorder icmpv6_init() and ip6_mr_init()

2017-03-06 Thread Andrey Konovalov
On Sun, Mar 5, 2017 at 9:34 PM, Cong Wang wrote: > Andrey reported the following kernel crash: > > kasan: GPF could be caused by NULL-ptr deref or user memory access > general protection fault: [#1] SMP KASAN > Dumping ftrace buffer: >(ftrace buffer empty) > Modules linked in: > CPU: 0 PI

[Patch net] ipv6: reorder icmpv6_init() and ip6_mr_init()

2017-03-05 Thread Cong Wang
Andrey reported the following kernel crash: kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 14446 Comm: syz-executor6 Not tainted 4.10.0+ #82 Hardware nam