Re: [PATCH] Cipso: cipso_v4_optptr enter infinite loop

2017-08-01 Thread David Miller
From: Yujuan Qi Date: Mon, 31 Jul 2017 11:23:01 +0800 > From: "yujuan.qi" > > in for(),if((optlen > 0) && (optptr[1] == 0)), enter infinite loop. > > Test: receive a packet which the ip length > 20 and the first byte of ip > option is 0,

Re: [PATCH] Cipso: cipso_v4_optptr enter infinite loop

2017-08-01 Thread David Miller
From: Yujuan Qi Date: Mon, 31 Jul 2017 11:23:01 +0800 > From: "yujuan.qi" > > in for(),if((optlen > 0) && (optptr[1] == 0)), enter infinite loop. > > Test: receive a packet which the ip length > 20 and the first byte of ip > option is 0, produce this issue > > Signed-off-by: yujuan.qi

Re: [PATCH] Cipso: cipso_v4_optptr enter infinite loop

2017-07-31 Thread Paul Moore
On Sun, Jul 30, 2017 at 11:23 PM, Yujuan Qi wrote: > From: "yujuan.qi" > > in for(),if((optlen > 0) && (optptr[1] == 0)), enter infinite loop. > > Test: receive a packet which the ip length > 20 and the first byte of ip > option is 0, produce this

Re: [PATCH] Cipso: cipso_v4_optptr enter infinite loop

2017-07-31 Thread Paul Moore
On Sun, Jul 30, 2017 at 11:23 PM, Yujuan Qi wrote: > From: "yujuan.qi" > > in for(),if((optlen > 0) && (optptr[1] == 0)), enter infinite loop. > > Test: receive a packet which the ip length > 20 and the first byte of ip > option is 0, produce this issue > > Signed-off-by: yujuan.qi > --- >

Re: [PATCH] Cipso: cipso_v4_optptr enter infinite loop

2017-07-28 Thread Paul Moore
On Fri, Jul 28, 2017 at 7:30 AM, Yujuan Qi wrote: > From: "yujuan.qi" > > in for(),if((optlen > 0) && (optptr[1] == 0)), enter infinite loop. > > Test: receive a packet which the ip length > 20 and the first byte of ip > option is 0, produce this

Re: [PATCH] Cipso: cipso_v4_optptr enter infinite loop

2017-07-28 Thread Paul Moore
On Fri, Jul 28, 2017 at 7:30 AM, Yujuan Qi wrote: > From: "yujuan.qi" > > in for(),if((optlen > 0) && (optptr[1] == 0)), enter infinite loop. > > Test: receive a packet which the ip length > 20 and the first byte of ip > option is 0, produce this issue > > Signed-off-by: yujuan.qi > --- >