exec_init() should be able to handle a 64bit init process
Currently exec_init() assumes the init process is 32bit. If the init process is 64bit (as is the case when bhyve is re-exec'ed) it will truncate addresses to 32bit, leading EFAULT in copyout() of the argument vector.
Updated by Hans Rosenfeld about 3 years ago
Testing: I've been running with this change for a while. I've verified the system still boots and init gets all supplied arguments. I have also verified that zones of various brands still work (smartos, LX, bhyve), so the existing 32bit support still works as it did before. The 64bit case was tested in conjunction with bhyve zones on SmartOS, bhyve can be re-exec'd as expected when a VM is rebooted from within.
Updated by Electric Monk about 3 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 35b5a2ef2c05b7c6ccdf28298cd7c084c454649d Author: Hans Rosenfeld <firstname.lastname@example.org> Date: 2018-09-26T19:30:14.000Z 9798 exec_init() should be able to handle a 64bit init process Reviewed by: John Levon <email@example.com> Reviewed by: Jerry Jelinek <firstname.lastname@example.org> Reviewed by: Patrick Mooney <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Andy Fiddaman <email@example.com> Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Approved by: Garrett D'Amore <email@example.com>