fwupd/plugins
Richard Hughes 26d3da4074 uefi: Fix a libasan failure when reading a UEFI variable
It seems some older versions of libefi var incorrectly build the 'length' value
in the DP returned from efi_generate_file_device_path(). This means we copy past
the end of the allocated buffer when parsing the efi_update_info_t structure.

This bug seems fixed in efivar git master, and this fix is only going to help
people with older efivar versions. It's probably a good thing to be a bit more
paranoid about EFI variable data anyway.

    DEBUG: UpdateInfo:
           ? 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
    ????????????????????????????????????????????????????????????????????????????????????????????????????????
    0x0000 ? 07 00 00 00 20 d9 7b 69 cf 12 a9 4d 83 85 99 69 09 bc 65 59 00 00 05 00 00 00 00 00 00 00 00 00
    0x0020 ? 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 04 01 2a 00 01 00 00 00 00 08 00 00
    0x0040 ? 00 00 00 00 00 40 06 00 00 00 00 00 5a aa 97 5a 10 d5 7e 49 99 0b ca 8d 35 4d c8 6d 02 02 04 04
    0x0060 ? 86 00 5c 00 45 00 46 00 49 00 5c 00 66 00 65 00 64 00 6f 00 72 00 61 00 5c 00 66 00 77 00 5c 00
    0x0080 ? 66 00 77 00 75 00 70 00 64 00 2d 00 36 00 39 00 37 00 62 00 64 00 39 00 32 00 30 00 2d 00 31 00
    0x00a0 ? 32 00 63 00 66 00 2d 00 34 00 64 00 61 00 39 00 2d 00 38 00 33 00 38 00 35 00 2d 00 39 00 39 00
    0x00c0 ? 36 00 39 00 30 00 39 00 62 00 63 00 36 00 35 00 35 00 39 00 2e 00 63 00 61 00 70 00 00 00 7f ff
    0x00e0 ? 04 00
    DEBUG: DP type:0x04 subtype:0x01 size:0x002a
    DEBUG: DP type:0x04 subtype:0x04 size:0x0086
    DEBUG: found END_ENTIRE at 0x00aa
    DEBUG: DP length invalid! Truncating from 0x0086 to 0x0080
    DEBUG: DP type:0x7f subtype:0xff size:0x0004
2019-05-02 17:25:34 +01:00
..
altos Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
amt Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
ata ata: Set version format to plain for devices obtained from udev 2019-04-30 09:31:55 +01:00
colorhug Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
csr Use '#pragma once' to avoid a lot of boilerplate 2019-02-09 08:42:30 -06:00
dell trivial: Fix an libasan failure in the dell plugin 2019-05-02 10:46:06 +01:00
dell-dock Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
dell-esrt Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
dfu Export the version-format to clients 2019-04-30 09:25:41 +01:00
ebitdo Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
fastboot Fix some typos spotted using codespell 2019-04-08 12:47:53 +01:00
flashrom Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
modem-manager trivial: Fix a missing config.h include in a new source file 2019-05-02 09:59:47 +01:00
nitrokey Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
nvme Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
redfish Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
rts54hid Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
rts54hub Fix some typos spotted using codespell 2019-04-08 12:47:53 +01:00
steelseries Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
superio Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
synapticsmst Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
test Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
thunderbolt Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
thunderbolt-power Show a console warning if loading an out-of-tree plugin 2019-01-19 07:26:20 +00:00
udev Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
uefi uefi: Fix a libasan failure when reading a UEFI variable 2019-05-02 17:25:34 +01:00
unifying Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
upower trivial: upower: correct a logic error from ed021ab 2019-01-31 14:56:08 -06:00
wacom-raw Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
wacom-usb Never guess the version format from the version string 2019-04-30 09:25:41 +01:00
meson.build Add a plugin to support ModemManager hardware 2019-02-27 16:09:13 +00:00
README.md trivial: Clarify our position on proprietary plugins 2019-01-18 12:21:46 -06:00

Adding a new plugin

An extensible architecture allows for providing new plugin types (for reading and writing different firmware) as well as ways quirk their behavior.

You can find more information about the architecture in the developers section of the fwupd website.

If you have a firmware specification and would like to see support in this project, please file an issue and share the spec. Patches are also welcome.

We will not accept plugins that upgrade hardware using a proprietary Linux executable, library, or DBus interface.

Plugin interaction

Some plugins may be able to influence the behavior of other plugins. This includes things like one plugin turning on a device, or providing missing metadata to another plugin.

The ABI for these interactions is defined in: https://github.com/hughsie/fwupd/blob/master/src/fu-device-metadata.h

All interactions between plugins should have the interface defined in that file.