[ipxe-devel] Issues with sanboot+http and ISOs > 2GB

Linus Lüssing linus.luessing at c0d3.blue
Wed May 24 03:25:51 UTC 2017


Hi,

I'm having an entry like:

-----
:kali-linux-2016.2
echo Booting Kali Linux 2016.2
sanboot
http://172.23.208.16/img/kali-linux-2016.2/kali-linux-2016.2-${archl}.iso
goto start
---

The ISO is 3076767744 bytes large. Its menu loads fine.
However booting the live image itself fails.

Looking at the http exchange with Wireshark, I noticed that the HTTP
Get Requests upon trying to boot the live image option in its menu
makes ipxe create a broken "Range:" header. It looks like:

"Range: -x--y"

Which the nginx obviously responds to with a "HTTP/1.1 416
Requested Range Not Satisfiable".

It seems like the "%zd" in http_format_range() is causing an integer
overflow, causing these negative numbers. %zd -> 2*31 = 2GB max.

Instead of a "%zd" it should probably be something like a "%llu",
shouldn't it?

Regards, Linus



More information about the ipxe-devel mailing list