initrd_init() calls umalloc() to allocate space for the initrd image, but does so before hide_etherboot() has been called. It is therefore possible for the initrd to end up overwriting iPXE itself. Fix by converting initrd_init() from an init_fn to a startup_fn. Originally-fixed-by: Till Straumann <strauman@slac.stanford.edu> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
135 |
|
135 |
|
136 |
|
136 |
|
137 |
|
137 |
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
138 |
|
141 |
|
139 |
|
142 |
|
140 |
|
143 |
|
|
|
||
205 |
|
208 |
|
206 |
|
209 |
|
207 |
|
210 |
|
|
211 |
|
|
|
212 |
|
|
|
213 |
|
|
208 |
|
214 |
|
209 |
|
215 |
|
210 |
|
216 |
|
|
|
||
245 |
|
251 |
|
246 |
|
252 |
|
247 |
|
253 |
|
248 |
|
|
|
249 |
|
|
|
|
254 |
|
|
|
255 |
|
|
250 |
|
256 |
|