Re: [PATCH RESEND] efivarfs: Ensure VariableName is NUL-terminated

2015-04-06 Thread Matt Fleming
On Thu, 02 Apr, at 08:39:00AM, Ross Lagerwall wrote: > Some buggy firmware implementations update VariableNameSize on success > such that it does not include the final NUL character which results in > garbage in the efivarfs name entries. Use kzalloc on the efivar_entry > (as is done in

Re: [PATCH RESEND] efivarfs: Ensure VariableName is NUL-terminated

2015-04-06 Thread Matt Fleming
On Thu, 02 Apr, at 08:39:00AM, Ross Lagerwall wrote: Some buggy firmware implementations update VariableNameSize on success such that it does not include the final NUL character which results in garbage in the efivarfs name entries. Use kzalloc on the efivar_entry (as is done in efivars.c) to

Re: [PATCH RESEND] efivarfs: Ensure VariableName is NUL-terminated

2015-04-02 Thread Matthew Garrett
On Thu, 2015-04-02 at 08:39 +0100, Ross Lagerwall wrote: > Some buggy firmware implementations update VariableNameSize on success > such that it does not include the final NUL character which results in > garbage in the efivarfs name entries. Use kzalloc on the efivar_entry > (as is done in

[PATCH RESEND] efivarfs: Ensure VariableName is NUL-terminated

2015-04-02 Thread Ross Lagerwall
Some buggy firmware implementations update VariableNameSize on success such that it does not include the final NUL character which results in garbage in the efivarfs name entries. Use kzalloc on the efivar_entry (as is done in efivars.c) to ensure that the name is always NUL-terminated. The

[PATCH RESEND] efivarfs: Ensure VariableName is NUL-terminated

2015-04-02 Thread Ross Lagerwall
Some buggy firmware implementations update VariableNameSize on success such that it does not include the final NUL character which results in garbage in the efivarfs name entries. Use kzalloc on the efivar_entry (as is done in efivars.c) to ensure that the name is always NUL-terminated. The

Re: [PATCH RESEND] efivarfs: Ensure VariableName is NUL-terminated

2015-04-02 Thread Matthew Garrett
On Thu, 2015-04-02 at 08:39 +0100, Ross Lagerwall wrote: Some buggy firmware implementations update VariableNameSize on success such that it does not include the final NUL character which results in garbage in the efivarfs name entries. Use kzalloc on the efivar_entry (as is done in