Re: [PATCH net] ipv6: fix general protection fault in fib6_add()

2018-01-04 Thread David Miller
From: Wei Wang Date: Wed, 3 Jan 2018 14:11:59 -0800 > From: Wei Wang > > In fib6_add(), pn could be NULL if fib6_add_1() failed to return a fib6 > node. Checking pn != fn before accessing pn->leaf makes sure pn is not > NULL. > This fixes the following GPF reported by syzkaller: ... > Reporte

[PATCH net] ipv6: fix general protection fault in fib6_add()

2018-01-03 Thread Wei Wang
From: Wei Wang In fib6_add(), pn could be NULL if fib6_add_1() failed to return a fib6 node. Checking pn != fn before accessing pn->leaf makes sure pn is not NULL. This fixes the following GPF reported by syzkaller: general protection fault: [#1] SMP KASAN Dumping ftrace buffer: (ftrace b