Very nasty things can happen if a NULL network device is used. Check that pxe_netdev is non-NULL at the applicable entry points, so that this type of problem gets reported to the caller rather than being allowed to crash the system. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
155 |
|
155 |
|
156 |
|
156 |
|
157 |
|
157 |
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
158 |
|
166 |
|
159 |
|
167 |
|
160 |
|
168 |
|
|
|
||
58 |
|
58 |
|
59 |
|
59 |
|
60 |
|
60 |
|
|
61 |
|
|
61 |
|
62 |
|
62 |
|
63 |
|
63 |
|
64 |
|
64 |
|
65 |
|
|
66 |
|
|
65 |
|
67 |
|
|
68 |
|
|
66 |
|
69 |
|
67 |
|
70 |
|
68 |
|
71 |
|
|
|
||
75 |
|
78 |
|
76 |
|
79 |
|
77 |
|
80 |
|
|
81 |
|
|
|
82 |
|
|
78 |
|
83 |
|
79 |
|
84 |
|
80 |
|
85 |
|
81 |
|
86 |
|
82 |
|
87 |
|
|
88 |
|
|
83 |
|
89 |
|
84 |
|
90 |
|
85 |
|
91 |
|
|
|
||
88 |
|
94 |
|
89 |
|
95 |
|
90 |
|
96 |
|
|
97 |
|
|
|
98 |
|
|
91 |
|
99 |
|
92 |
|
100 |
|
93 |
|
101 |
|
|
|
||
116 |
|
124 |
|
117 |
|
125 |
|
118 |
|
126 |
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
119 |
|
135 |
|
120 |
|
136 |
|
121 |
|
137 |
|
|
|
||
127 |
|
143 |
|
128 |
|
144 |
|
129 |
|
145 |
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
130 |
|
155 |
|
131 |
|
156 |
|
132 |
|
157 |
|
|
|
||
142 |
|
167 |
|
143 |
|
168 |
|
144 |
|
169 |
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
145 |
|
178 |
|
146 |
|
179 |
|
147 |
|
180 |
|
|
|
||
158 |
|
191 |
|
159 |
|
192 |
|
160 |
|
193 |
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
161 |
|
203 |
|
162 |
|
204 |
|
163 |
|
205 |
|
|
|
||
178 |
|
220 |
|
179 |
|
221 |
|
180 |
|
222 |
|
|
223 |
|
|
|
224 |
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
|
|
|
228 |
|
|
|
229 |
|
|
|
230 |
|
|
|
231 |
|
|
181 |
|
232 |
|
182 |
|
233 |
|
183 |
|
234 |
|
|
|
||
196 |
|
247 |
|
197 |
|
248 |
|
198 |
|
249 |
|
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
|
|
|
257 |
|
|
|
258 |
|
|
199 |
|
259 |
|
200 |
|
260 |
|
201 |
|
261 |
|
|
|
||
214 |
|
274 |
|
215 |
|
275 |
|
216 |
|
276 |
|
|
277 |
|
|
|
278 |
|
|
|
279 |
|
|
|
280 |
|
|
|
281 |
|
|
|
282 |
|
|
|
283 |
|
|
|
284 |
|
|
|
285 |
|
|
217 |
|
286 |
|
218 |
|
287 |
|
219 |
|
288 |
|
|
|
||
230 |
|
299 |
|
231 |
|
300 |
|
232 |
|
301 |
|
233 |
|
|
|
|
302 |
|
|
234 |
|
303 |
|
235 |
|
304 |
|
236 |
|
305 |
|
|
|
||
239 |
|
308 |
|
240 |
|
309 |
|
241 |
|
310 |
|
|
311 |
|
|
|
312 |
|
|
|
313 |
|
|
|
314 |
|
|
|
315 |
|
|
|
316 |
|
|
|
317 |
|
|
|
318 |
|
|
242 |
|
319 |
|
243 |
|
320 |
|
244 |
|
321 |
|
|
|
||
299 |
|
376 |
|
300 |
|
377 |
|
301 |
|
378 |
|
|
379 |
|
|
302 |
|
380 |
|
303 |
|
381 |
|
304 |
|
382 |
|
|
|
||
355 |
|
433 |
|
356 |
|
434 |
|
357 |
|
435 |
|
|
436 |
|
|
|
437 |
|
|
|
438 |
|
|
|
439 |
|
|
|
440 |
|
|
|
441 |
|
|
|
442 |
|
|
|
443 |
|
|
|
444 |
|
|
358 |
|
445 |
|
359 |
|
446 |
|
360 |
|
447 |
|
|
|
||
366 |
|
453 |
|
367 |
|
454 |
|
368 |
|
455 |
|
369 |
|
|
|
|
456 |
|
|
|
457 |
|
|
|
458 |
|
|
|
459 |
|
|
|
460 |
|
|
|
461 |
|
|
|
462 |
|
|
|
463 |
|
|
|
464 |
|
|
|
465 |
|
|
370 |
|
466 |
|
|
467 |
|
|
371 |
|
468 |
|
372 |
|
469 |
|
373 |
|
470 |
|
|
|
||
403 |
|
500 |
|
404 |
|
501 |
|
405 |
|
502 |
|
|
503 |
|
|
|
504 |
|
|
|
505 |
|
|
|
506 |
|
|
|
507 |
|
|
|
508 |
|
|
|
509 |
|
|
|
510 |
|
|
|
511 |
|
|
406 |
|
512 |
|
407 |
|
513 |
|
408 |
|
514 |
|
|
|
||
418 |
|
524 |
|
419 |
|
525 |
|
420 |
|
526 |
|
421 |
|
|
|
422 |
|
|
|
423 |
|
|
|
|
527 |
|
|
|
528 |
|
|
424 |
|
529 |
|
425 |
|
530 |
|
426 |
|
531 |
|
|
532 |
|
|
|
533 |
|
|
|
534 |
|
|
|
535 |
|
|
|
536 |
|
|
|
537 |
|
|
|
538 |
|
|
|
539 |
|
|
|
540 |
|
|
|
541 |
|
|
|
542 |
|
|
427 |
|
543 |
|
428 |
|
544 |
|
429 |
|
545 |
|
430 |
|
546 |
|
431 |
|
547 |
|
432 |
|
548 |
|
433 |
|
|
|
434 |
|
|
|
|
549 |
|
|
|
550 |
|
|
435 |
|
551 |
|
436 |
|
552 |
|
437 |
|
553 |
|
|
|
||
462 |
|
578 |
|
463 |
|
579 |
|
464 |
|
580 |
|
|
581 |
|
|
|
582 |
|
|
|
583 |
|
|
|
584 |
|
|
|
585 |
|
|
|
586 |
|
|
|
587 |
|
|
|
588 |
|
|
|
589 |
|
|
465 |
|
590 |
|
466 |
|
591 |
|
467 |
|
592 |
|
468 |
|
593 |
|
469 |
|
|
|
470 |
|
594 |
|
471 |
|
595 |
|
472 |
|
596 |
|
473 |
|
597 |
|
474 |
|
598 |
|
|
599 |
|
|
475 |
|
600 |
|
476 |
|
601 |
|
477 |
|
602 |
|
|
|
||
484 |
|
609 |
|
485 |
|
610 |
|
486 |
|
611 |
|
|
612 |
|
|
|
613 |
|
|
|
614 |
|
|
|
615 |
|
|
|
616 |
|
|
|
617 |
|
|
|
618 |
|
|
|
619 |
|
|
|
620 |
|
|
487 |
|
621 |
|
488 |
|
622 |
|
489 |
|
623 |
|
|
|
||
500 |
|
634 |
|
501 |
|
635 |
|
502 |
|
636 |
|
|
637 |
|
|
|
638 |
|
|
|
639 |
|
|
|
640 |
|
|
|
641 |
|
|
|
642 |
|
|
|
643 |
|
|
|
644 |
|
|
503 |
|
645 |
|
504 |
|
646 |
|
505 |
|
647 |
|
|
|
||
514 |
|
656 |
|
515 |
|
657 |
|
516 |
|
658 |
|
|
659 |
|
|
|
660 |
|
|
|
661 |
|
|
|
662 |
|
|
|
663 |
|
|
|
664 |
|
|
|
665 |
|
|
|
666 |
|
|
517 |
|
667 |
|
518 |
|
668 |
|
519 |
|
669 |
|
|
|
||
525 |
|
675 |
|
526 |
|
676 |
|
527 |
|
677 |
|
528 |
|
|
|
|
678 |
|
|
529 |
|
679 |
|
530 |
|
680 |
|
531 |
|
681 |
|
532 |
|
682 |
|
533 |
|
683 |
|
534 |
|
684 |
|
|
685 |
|
|
|
686 |
|
|
|
687 |
|
|
|
688 |
|
|
|
689 |
|
|
|
690 |
|
|
|
691 |
|
|
|
692 |
|
|
|
693 |
|
|
|
694 |
|
|
|
695 |
|
|
535 |
|
696 |
|
536 |
|
697 |
|
537 |
|
698 |
|
|
|
||
551 |
|
712 |
|
552 |
|
713 |
|
553 |
|
714 |
|
554 |
|
|
|
|
715 |
|
|
555 |
|
716 |
|
556 |
|
717 |
|
557 |
|
718 |
|
|
719 |
|
|
|
720 |
|
|
|
721 |
|
|
|
722 |
|
|
|
723 |
|
|
|
724 |
|
|
|
725 |
|
|
|
726 |
|
|
|
727 |
|
|
558 |
|
728 |
|
559 |
|
729 |
|
560 |
|
|
|
|
730 |
|
|
561 |
|
731 |
|
562 |
|
732 |
|
563 |
|
733 |
|
|
|
||
615 |
|
785 |
|
616 |
|
786 |
|
617 |
|
787 |
|
|
788 |
|
|
|
789 |
|
|
|
790 |
|
|
|
791 |
|
|
|
792 |
|
|
|
793 |
|
|
|
794 |
|
|
|
795 |
|
|
618 |
|
796 |
|
619 |
|
797 |
|
620 |
|
798 |
|
|
|
||
645 |
|
823 |
|
646 |
|
824 |
|
647 |
|
825 |
|
|
826 |
|
|
|
827 |
|
|
|
828 |
|
|
|
829 |
|
|
|
830 |
|
|
|
831 |
|
|
|
832 |
|
|
|
833 |
|
|
648 |
|
834 |
|
649 |
|
835 |
|
650 |
|
836 |
|
|
|
||
671 |
|
857 |
|
672 |
|
858 |
|
673 |
|
859 |
|
|
860 |
|
|
|
861 |
|
|
|
862 |
|
|
|
863 |
|
|
|
864 |
|
|
|
865 |
|
|
|
866 |
|
|
|
867 |
|
|
674 |
|
868 |
|
675 |
|
869 |
|
676 |
|
870 |
|