From e80a6b6dd403ef0cabb35dfefa798a6e72d775d3 Mon Sep 17 00:00:00 2001 From: Vincent Donnefort Date: Fri, 28 Apr 2023 09:30:23 +0100 Subject: [PATCH] ramdisk_node_list: Add urandom node Bionic requires random numbers to init the shadow call stack. Those numbers are obtained via the syscall getrandom (non-blocking) and will fallback to /dev/urandom if the former fails. When loading pKVM modules, we are so early in the boot process that the only source of entropy for the linux RNG are the architecture random number generators... which might be available on some platforms. Without any source of entropy, the only way of generating a random number is to try to generate some, which is what the bionic fallback expects via urandom. As a consequence, add the urandom node to the initramfs. Bug: 274876849 Merged-In: I111e2db53fabd63d070b8e9ab9c52faebf484ab3 Change-Id: I34a0e3f7c72de7344512366d4a96183b445edc2e --- rootdir/ramdisk_node_list | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/ramdisk_node_list b/rootdir/ramdisk_node_list index d3ab8a66e..4f45faaec 100644 --- a/rootdir/ramdisk_node_list +++ b/rootdir/ramdisk_node_list @@ -1,3 +1,4 @@ dir dev 0755 0 0 nod dev/null 0600 0 0 c 1 3 nod dev/console 0600 0 0 c 5 1 +nod dev/urandom 0600 0 0 c 1 9