Re: [PATCH net] net/ipv6: Ensure cfg is properly initialized in ipv6_create_tempaddr

2018-06-11 Thread David Miller
From: dsah...@kernel.org Date: Mon, 11 Jun 2018 07:12:12 -0700 > From: David Ahern > > Valdis reported a BUG in ipv6_add_addr: ... > Looking at the code I found 1 element (peer_pfx) of the newly introduced > ifa6_config struct that is not initialized. Use a memset rather than hard > coding an i

[PATCH net] net/ipv6: Ensure cfg is properly initialized in ipv6_create_tempaddr

2018-06-11 Thread dsahern
From: David Ahern Valdis reported a BUG in ipv6_add_addr: [ 1820.832682] BUG: unable to handle kernel NULL pointer dereference at 0209 [ 1820.832728] RIP: 0010:ipv6_add_addr+0x280/0xd10 [ 1820.832732] Code: 49 8b 1f 0f 84 6a 0a 00 00 48 85 db 0f 84 4e 0a 00 00 48 8b 03 48 8b 53 08