Re: [PATCH net] net: avoid potential infinite loop in tc_ctl_action()

2019-10-15 Thread David Miller
From: Eric Dumazet Date: Mon, 14 Oct 2019 11:22:30 -0700 > tc_ctl_action() has the ability to loop forever if tcf_action_add() > returns -EAGAIN. > > This special case has been done in case a module needed to be loaded, > but it turns out that tcf_add_notify() could also return -EAGAIN > if the

[PATCH net] net: avoid potential infinite loop in tc_ctl_action()

2019-10-14 Thread Eric Dumazet
tc_ctl_action() has the ability to loop forever if tcf_action_add() returns -EAGAIN. This special case has been done in case a module needed to be loaded, but it turns out that tcf_add_notify() could also return -EAGAIN if the socket sk_rcvbuf limit is hit. We need to separate the two cases, and