Re: [PATCH net v2] ipvs: Improve robustness to the ipvs sysctl

2019-07-31 Thread hujunwei
Hello, Julian On 2019/7/31 3:29, Julian Anastasov wrote: > > Hello, > > On Tue, 30 Jul 2019, hujunwei wrote: > >> From: Junwei Hu >> >> The ipvs module parse the user buffer and save it to sysctl, >> then check if the value is valid. invalid value occurs >> over a period of time. >> Here

Re: [PATCH net v2] ipvs: Improve robustness to the ipvs sysctl

2019-07-30 Thread Julian Anastasov
Hello, On Tue, 30 Jul 2019, hujunwei wrote: > From: Junwei Hu > > The ipvs module parse the user buffer and save it to sysctl, > then check if the value is valid. invalid value occurs > over a period of time. > Here, I add a variable, struct ctl_table tmp, used to read > the value fro

[PATCH net v2] ipvs: Improve robustness to the ipvs sysctl

2019-07-30 Thread hujunwei
From: Junwei Hu The ipvs module parse the user buffer and save it to sysctl, then check if the value is valid. invalid value occurs over a period of time. Here, I add a variable, struct ctl_table tmp, used to read the value from the user buffer, and save only when it is valid. I delete proc_do_sy