Re: [PATCH v2 1/3] efi: Initialize canary to non-zero value

2023-12-18 Thread Glenn Washburn
On Wed, 13 Dec 2023 21:24:07 +0100 Daniel Kiper wrote: > On Mon, Dec 11, 2023 at 01:27:48PM -0600, Glenn Washburn wrote: > > The canary, __stack_chk_guard, is in the BSS and so will get initialized to > > zero if it is not explicitly initialized. If the UEFI firmware does not > > support the RNG

Re: [PATCH v2 1/3] efi: Initialize canary to non-zero value

2023-12-13 Thread Daniel Kiper
On Mon, Dec 11, 2023 at 01:27:48PM -0600, Glenn Washburn wrote: > The canary, __stack_chk_guard, is in the BSS and so will get initialized to > zero if it is not explicitly initialized. If the UEFI firmware does not > support the RNG protocol, then the canary will not be randomized and will > be ze

[PATCH v2 1/3] efi: Initialize canary to non-zero value

2023-12-11 Thread Glenn Washburn
The canary, __stack_chk_guard, is in the BSS and so will get initialized to zero if it is not explicitly initialized. If the UEFI firmware does not support the RNG protocol, then the canary will not be randomized and will be zero. This seems like a possibly easier value to write by an attacker. Ini