The tap driver can retrieve a potentially unlimited number of packets in a single poll. This can lead to heap exhaustion under heavy load. Fix by imposing an artificial receive quota (as already used in other drivers without natural receive limits). Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
40 |
|
40 |
|
41 |
|
41 |
|
42 |
|
42 |
|
|
43 |
|
|
43 |
|
44 |
|
44 |
|
45 |
|
45 |
|
46 |
|
|
|
||
127 |
|
128 |
|
128 |
|
129 |
|
129 |
|
130 |
|
|
131 |
|
|
130 |
|
132 |
|
131 |
|
133 |
|
132 |
|
134 |
|
|
|
||
144 |
|
146 |
|
145 |
|
147 |
|
146 |
|
148 |
|
147 |
|
|
|
|
149 |
|
|
|
150 |
|
|
148 |
|
151 |
|
149 |
|
152 |
|
150 |
|
153 |
|