On Thu Jun 6, 2024 at 9:20 AM EEST, Jarkko Sakkinen wrote: > > There are existing code where BUG_ON() is used during the kernel early > > boot code when memory allocation fails (e.g., see cgroup_init_subsys()), > > so it might be acceptable to use BUG_ON() here, but it's up to > > maintainers to decide whether it is OK. > > When it is not possible continue to run the system at all, and only > then. > > Here it is possible. Without SGX. With this logic sgx_init() should call BUG() in the error paths. BR, Jarkko