lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 6 Oct 2020 23:08:08 -0700
From:   David Ahern <dsahern@...il.com>
To:     Jacob Keller <jacob.e.keller@...el.com>, netdev@...r.kernel.org
Cc:     dsahern@...il.com
Subject: Re: [iproute2-next v2] devlink: support setting the overwrite mask
 attribute

On 9/30/20 2:05 PM, Jacob Keller wrote:
> The recently added DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK allows
> userspace to indicate how a device should handle subsections of a flash
> component when updating. For example, a flash component might contain
> vital data such as PCIe serial number or configuration fields such as
> settings that control device bootup.
> 
> The overwrite mask allows specifying whether the device should overwrite
> these subsections when updating from the provided image. If nothing is
> specified, then the update is expected to preserve all vital fields and
> configuration.
> 
> Add support for specifying the overwrite mask using the new "overwrite"
> option to the flash command line.
> 
> By specifying "overwrite identifiers", the user request that the flash
> update should overwrite any settings in the updated flash component with
> settings from the provided flash image
> 
>   $devlink dev flash pci/0000:af:00.0 file flash_image.bin overwrite identifiers
> 
> By specifying "overwrite settings" the user requests that the flash update
> should overwrite any settings in the updated flash component with setting
> values from the provided flash image.
> 
>   $devlink dev flash pci/0000:af:00.0 file flash_image.bin overwrite settings
> 
> These options may be combined, in which case both subsections will be sent
> in the overwrite mask, resulting in a request to overwrite all settings and
> identifiers stored in the updated flash components.
> 
>   $devlink dev flash pci/0000:af:00.0 file flash_image.bin overwrite settings overwrite identifiers
> 
> Signed-off-by: Jacob Keller <jacob.e.keller@...el.com>
> ---
>  devlink/devlink.c | 48 +++++++++++++++++++++++++++++++++++++++++++++--
>  1 file changed, 46 insertions(+), 2 deletions(-)
> 

applied to iproute2-next. Thanks


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ