Added a large number of missing calls to free_pkb(). In the case of UDP, no received packets were ever freed, which lead to memory exhaustion remarkably quickly once pxelinux started up. In general, any function with _rx() in its name which accepts a pk_buff *must* either call free_pkb() or pass the pkb to another _rx() function (e.g. the next layer up the stack). Since the UDP (and TCP) layers don't pass packet buffers up to the higher-layer protocols (the "applications"), they must free the packet buffer after calling the application's newdata() method.tags/v0.9.3
|
|
||
83 |
|
83 |
|
84 |
|
84 |
|
85 |
|
85 |
|
|
86 |
|
|
86 |
|
87 |
|
87 |
|
88 |
|
88 |
|
89 |
|
|
|
||
95 |
|
96 |
|
96 |
|
97 |
|
97 |
|
98 |
|
98 |
|
|
|
|
99 |
|
|
|
100 |
|
|
99 |
|
101 |
|
100 |
|
|
|
|
102 |
|
|
101 |
|
103 |
|
102 |
|
104 |
|
103 |
|
105 |
|
|
|
||
206 |
|
208 |
|
207 |
|
209 |
|
208 |
|
210 |
|
209 |
|
|
|
210 |
|
|
|
|
211 |
|
|
|
212 |
|
|
211 |
|
213 |
|
212 |
|
214 |
|
213 |
|
215 |
|
|
|
||
19 |
|
19 |
|
20 |
|
20 |
|
21 |
|
21 |
|
|
22 |
|
|
22 |
|
23 |
|
23 |
|
24 |
|
24 |
|
25 |
|
|
|
||
68 |
|
69 |
|
69 |
|
70 |
|
70 |
|
71 |
|
71 |
|
|
|
|
72 |
|
|
72 |
|
73 |
|
73 |
|
74 |
|
74 |
|
75 |
|
75 |
|
76 |
|
76 |
|
77 |
|
77 |
|
78 |
|
78 |
|
|
|
|
79 |
|
|
|
80 |
|
|
79 |
|
81 |
|
80 |
|
82 |
|
81 |
|
83 |
|
82 |
|
84 |
|
83 |
|
85 |
|
84 |
|
86 |
|
85 |
|
|
|
|
87 |
|
|
86 |
|
88 |
|
87 |
|
89 |
|
88 |
|
90 |
|
|
|
||
389 |
|
389 |
|
390 |
|
390 |
|
391 |
|
391 |
|
392 |
|
|
|
393 |
|
|
|
394 |
|
|
|
|
392 |
|
|
|
393 |
|
|
395 |
|
394 |
|
396 |
|
395 |
|
397 |
|
396 |
|
|
|
||
400 |
|
399 |
|
401 |
|
400 |
|
402 |
|
401 |
|
403 |
|
|
|
|
402 |
|
|
404 |
|
403 |
|
405 |
|
404 |
|
406 |
|
405 |
|
407 |
|
406 |
|
408 |
|
407 |
|
409 |
|
408 |
|
410 |
|
|
|
|
409 |
|
|
411 |
|
410 |
|
412 |
|
411 |
|
413 |
|
412 |
|
|
|
||
447 |
|
446 |
|
448 |
|
447 |
|
449 |
|
448 |
|
|
449 |
|
|
|
450 |
|
|
|
451 |
|
|
|
452 |
|
|
450 |
|
453 |
|
451 |
|
454 |
|
452 |
|
455 |
|
|
|
||
97 |
|
97 |
|
98 |
|
98 |
|
99 |
|
99 |
|
|
100 |
|
|
100 |
|
101 |
|
101 |
|
|
|
|
102 |
|
|
102 |
|
103 |
|
103 |
|
104 |
|
104 |
|
105 |
|
|
|
||
106 |
|
107 |
|
107 |
|
108 |
|
108 |
|
109 |
|
109 |
|
|
|
110 |
|
|
|
|
110 |
|
|
111 |
|
111 |
|
112 |
|
112 |
|
|
113 |
|
|
|
114 |
|
|
113 |
|
115 |
|
114 |
|
116 |
|
115 |
|
117 |
|
|
|
||
54 |
|
54 |
|
55 |
|
55 |
|
56 |
|
56 |
|
|
57 |
|
|
57 |
|
58 |
|
58 |
|
59 |
|
59 |
|
60 |
|
|
|
||
78 |
|
79 |
|
79 |
|
80 |
|
80 |
|
81 |
|
|
82 |
|
|
81 |
|
83 |
|
82 |
|
84 |
|
83 |
|
85 |
|
|
|
||
93 |
|
93 |
|
94 |
|
94 |
|
95 |
|
95 |
|
|
96 |
|
|
|
97 |
|
|
96 |
|
98 |
|
97 |
|
99 |
|
98 |
|
100 |
|
|
|
||
100 |
|
102 |
|
101 |
|
103 |
|
102 |
|
104 |
|
103 |
|
|
|
104 |
|
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
105 |
|
110 |
|
106 |
|
111 |
|
107 |
|
112 |
|
|
|
||
122 |
|
127 |
|
123 |
|
128 |
|
124 |
|
129 |
|
|
130 |
|
|
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
|
|
125 |
|
137 |
|
126 |
|
138 |
|
127 |
|
|
|
128 |
|
|
|
|
139 |
|
|
|
140 |
|
|
129 |
|
141 |
|
130 |
|
142 |
|
131 |
|
|
|
|
143 |
|
|
132 |
|
144 |
|
133 |
|
145 |
|
134 |
|
146 |
|
|
|
||
136 |
|
148 |
|
137 |
|
149 |
|
138 |
|
150 |
|
139 |
|
|
|
|
151 |
|
|
140 |
|
152 |
|
141 |
|
153 |
|
142 |
|
|
|
|
154 |
|
|
143 |
|
155 |
|
144 |
|
156 |
|
145 |
|
157 |
|
146 |
|
158 |
|
147 |
|
159 |
|
148 |
|
|
|
149 |
|
|
|
|
160 |
|
|
|
161 |
|
|
150 |
|
162 |
|
151 |
|
163 |
|
152 |
|
164 |
|
153 |
|
165 |
|
154 |
|
|
|
|
166 |
|
|
155 |
|
167 |
|
156 |
|
168 |
|
157 |
|
169 |
|
|
|
||
186 |
|
198 |
|
187 |
|
199 |
|
188 |
|
200 |
|
|
201 |
|
|
189 |
|
202 |
|
190 |
|
203 |
|
191 |
|
204 |
|
192 |
|
205 |
|
193 |
|
206 |
|
194 |
|
|
|
|
207 |
|
|
|
208 |
|
|
195 |
|
209 |
|
196 |
|
210 |
|
197 |
|
211 |
|
|
|
||
205 |
|
219 |
|
206 |
|
220 |
|
207 |
|
221 |
|
208 |
|
|
|
|
222 |
|
|
|
223 |
|
|
209 |
|
224 |
|
210 |
|
225 |
|
211 |
|
226 |
|
|
|
||
215 |
|
230 |
|
216 |
|
231 |
|
217 |
|
232 |
|
218 |
|
|
|
|
233 |
|
|
|
234 |
|
|
219 |
|
235 |
|
220 |
|
236 |
|
221 |
|
237 |
|
|
|
||
237 |
|
253 |
|
238 |
|
254 |
|
239 |
|
255 |
|
240 |
|
|
|
241 |
|
|
|
|
256 |
|
|
|
257 |
|
|
|
258 |
|
|
242 |
|
259 |
|
243 |
|
260 |
|
244 |
|
261 |
|
245 |
|
262 |
|
246 |
|
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
|
|
|
267 |
|
|
247 |
|
268 |
|
248 |
|
269 |
|
249 |
|
270 |
|