summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2008-11-20 14:57:09 +0000
committerluigi <luigi@FreeBSD.org>2008-11-20 14:57:09 +0000
commit8c1c552ad24b351d633dcc2db94357fcedaadf90 (patch)
treed37540ef120ed3b91e901120082af30a94c83e99 /sys/sparc64
parent2882e54294659817c1c1b78fb54b09ef21325d63 (diff)
downloadFreeBSD-src-8c1c552ad24b351d633dcc2db94357fcedaadf90.zip
FreeBSD-src-8c1c552ad24b351d633dcc2db94357fcedaadf90.tar.gz
As reported in kern/118222, pxeboot in RELENG7 (and presumably
above) exhibits some misbehaviours on machines with AMD64 CPUs, which at least in some cases I have tracked down to a heap overflow. It is unclear whether it depends on the CPU or on the pxe bios itself which may use more memory on AMD machines. Noticeably a pxeboot compiled from 6.x sources works fine on all machines I have tried so far, while a pxeboot compiled from 7.x sources does not. This patch is a first step in reducing the amount of memory used while processing the configuration files read by the loader at boot (some of them are quite large, 1700+ lines), and it does so by: + moving a buffer to static memory instead of allocating in the heap; + skipping empty lines; + reducing the amount of memory used for line descriptors; Unfortunately there are several changes between 6.x and above, affecting the compiler, the loader code itself, and libstand, and it is not so straightforward to These changes fix the behaviour on one motherboard with a single-core AMD cpu, but are still not enough e.g on an Asus M2N-VM (with a dual-core CPU). I need to investigate the problem a bit more before figuring out what should be committed to RELENG_7 PR: kern/118222
Diffstat (limited to 'sys/sparc64')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud