[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#905568: linux-image-4.17.0-1-amd64: Enable CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE to prevent trashing cheap EFI flash storage chips



Control: tag -1 moreinfo

On Mon, 2018-08-06 at 10:51 +0100, Sam Morris wrote:
> Package: src:linux
> Version: 4.17.8-1
> Severity: normal
> 
> fwupd is unable to update the firmware on my Lenovo P50.
> 
> lstat("/sys/firmware/efi/efivars/fwupd-ddc0ee61-e7f0-4e7d-acc5-c070a398838e-0-0abba7dc-e516-4167-bbf5-4d9d1c739416", {st_mode=S_IFREG|0644, st_size=230, ...}) = 0
> openat(AT_FDCWD, "/sys/firmware/efi/efivars/fwupd-ddc0ee61-e7f0-4e7d-acc5-c070a398838e-0-0abba7dc-e516-4167-bbf5-4d9d1c739416", O_RDONLY) = 22
> lseek(22, 0, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
> ioctl(22, FS_IOC_GETFLAGS, 0x7ffd48365c14) = 0
> close(22)                               = 0
> openat(AT_FDCWD, "/sys/firmware/efi/efivars/fwupd-ddc0ee61-e7f0-4e7d-acc5-c070a398838e-0-0abba7dc-e516-4167-bbf5-4d9d1c739416", O_WRONLY) = 22
> lseek(22, 0, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
> poll([{fd=22, events=POLLOUT}], 1, -1)  = 1 ([{fd=22, revents=POLLOUT}])
> write(22, "\7\0\0\0\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 230) = -1 ENOSPC (No space left on device)
> 
> While searching for a solution I came across
> <https://bugzilla.redhat.com/show_bug.cgi?id=919485>.[...]

That is from 2013.  The EFI variable support code was subsequently
changed to work around common bugs in EFI implementations.  If you
still don't want efi-pstore, you can put efi-pstore.pstore_disable=Y on
the kernel command line.  But I don't think we're likely to change the
default again.

Older messages logged to EFI variables will be deleted automatically.

However I notice that your report says:

[...]
> ** Tainted: W (512)
>  * Taint on warning.

If this warning, or warnings, are logged at every boot, that might mean
that the variable space always gets filled up again before fwupd can
run.

Can you look back through the system log (dmesg or /var/log/messages)
to find the warning message?  We would need to see everything from
"WARNING" down to "end trace".

Ben.

-- 
Ben Hutchings
Larkinson's Law: All laws are basically false.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: