Re: [PATCH net-next] ipv6: prevent user from adding cached routes

2017-10-28 Thread David Miller
From: Wei Wang Date: Fri, 27 Oct 2017 17:30:12 -0700 > From: Wei Wang > > Cached routes should only be created by the system when receiving pmtu > discovery or ip redirect msg. Users should not be allowed to create > cached routes. > > Furthermore, after the patch series to move cached routes

Re: [PATCH net-next] ipv6: prevent user from adding cached routes

2017-10-28 Thread Martin KaFai Lau
On Fri, Oct 27, 2017 at 05:30:12PM -0700, Wei Wang wrote: > So we fix this by failing the attemp to add cached routes from userspace > with returning EINVAL error. Acked-by: Martin KaFai Lau

[PATCH net-next] ipv6: prevent user from adding cached routes

2017-10-27 Thread Wei Wang
From: Wei Wang Cached routes should only be created by the system when receiving pmtu discovery or ip redirect msg. Users should not be allowed to create cached routes. Furthermore, after the patch series to move cached routes into exception table, user added cached routes will trigger the follo