Re: [PATCH net v2] Validate required parameters in inet6_validate_link_af

2019-07-10 Thread Maxim Mikityanskiy
On 2019-07-09 04:11, Stefan Lippers-Hollmann wrote: > Hi > > On 2019-05-22, David Miller wrote: >> From: Maxim Mikityanskiy >> Date: Tue, 21 May 2019 06:40:04 + >> >>> inet6_set_link_af requires that at least one of IFLA_INET6_TOKEN or >>> IFLA_INET6_ADDR_GET_MODE is passed. If none of them i

Re: [PATCH net v2] Validate required parameters in inet6_validate_link_af

2019-07-08 Thread Stefan Lippers-Hollmann
Hi On 2019-05-22, David Miller wrote: > From: Maxim Mikityanskiy > Date: Tue, 21 May 2019 06:40:04 + > > > inet6_set_link_af requires that at least one of IFLA_INET6_TOKEN or > > IFLA_INET6_ADDR_GET_MODE is passed. If none of them is passed, it > > returns -EINVAL, which may cause do_setlink(

Re: [PATCH net v2] Validate required parameters in inet6_validate_link_af

2019-05-22 Thread David Miller
From: Maxim Mikityanskiy Date: Tue, 21 May 2019 06:40:04 + > inet6_set_link_af requires that at least one of IFLA_INET6_TOKEN or > IFLA_INET6_ADDR_GET_MODE is passed. If none of them is passed, it > returns -EINVAL, which may cause do_setlink() to fail in the middle of > processing other comm