path: root/sys/contrib/openzfs/module/Makefile.in
diff options
authorAndrew Turner <andrew@FreeBSD.org>2022-05-21 10:45:41 +0000
committerAndrew Turner <andrew@FreeBSD.org>2022-05-21 10:45:41 +0000
commit0d6600b579be769b85f049ef421023316f21b5c3 (patch)
tree2fd1c5e26bd0a4beac864055d0940c7dd2ae9fcd /sys/contrib/openzfs/module/Makefile.in
parent9cd45772a44f268ccb3e20caf7f3f764f6b5e1a1 (diff)
Set mm before passing it to the UEFI firmwareHEADmain
When reading the UEFI memory map we pass in a pointer to the memory to hold the map. Unfortunately it wasn't initialised before the first use so clang decided it was undefined behaviour so the entire loop was removed. This leads to everything in bi_load after this to also be removed as dead code. The next function after bi_load in the binary is efi_copy_init. The above caused us to enter efi_copy_init with a return address of the start of the function. Because of this it would enter an infinite loop of calling the function, allocating memory, then returning to the start of the function. PR: 264021
Diffstat (limited to 'sys/contrib/openzfs/module/Makefile.in')
0 files changed, 0 insertions, 0 deletions