Re: [PATCH net] nsh: fix infinite loop

2018-05-04 Thread David Miller
From: Eric Dumazet Date: Thu, 3 May 2018 13:37:54 -0700 > syzbot caught an infinite recursion in nsh_gso_segment(). > > Problem here is that we need to make sure the NSH header is of > reasonable length. ... > Fixes: c411ed854584 ("nsh: add GSO support") > Signed-off-by:

Re: [PATCH net] nsh: fix infinite loop

2018-05-04 Thread Jiri Benc
On Thu, 3 May 2018 13:37:54 -0700, Eric Dumazet wrote: > diff --git a/net/nsh/nsh.c b/net/nsh/nsh.c > index > d7da99a0b0b852d7459eed9ac6d3cdf3d49a1a1c..9696ef96b719bf24625adea2a959deac1d2a975f > 100644 > --- a/net/nsh/nsh.c > +++ b/net/nsh/nsh.c > @@ -57,6 +57,8 @@ int nsh_pop(struct sk_buff

[PATCH net] nsh: fix infinite loop

2018-05-03 Thread Eric Dumazet
syzbot caught an infinite recursion in nsh_gso_segment(). Problem here is that we need to make sure the NSH header is of reasonable length. BUG: MAX_LOCK_DEPTH too low! turning off the locking correctness validator. depth: 48 max: 48! 48 locks held by syz-executor0/10189: #0: (ptrval)