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-next>] [day] [month] [year] [list]
Message-Id: <20240910030330.1880-1-shawn.shao@jaguarmicro.com>
Date: Tue, 10 Sep 2024 11:03:30 +0800
From: "Shawn.Shao" <shawn.shao@...uarmicro.com>
To: jacob.e.keller@...el.com,
	linux-kernel@...r.kernel.org
Cc: Shawn Shao <shawn.shao@...uarmicro.com>
Subject: [PATCH] lib: PLDM supports parsing the `DeviceUpdateOptionFlags` parameter

From: Shawn Shao <shawn.shao@...uarmicro.com>

The current PLDM library does not support parsing the
DeviceUpdateOptionFlags parameter, which is defined in
the PLDM specification to facilitate the transfer of
control information between the UA (Update Agent) and
the firmware.Please refer to:
https://www.dmtf.org/sites/default/files/standards/
documents/DSP0267_1.3.0.pdf P37.

Signed-off-by: Shawn Shao <shawn.shao@...uarmicro.com>
---
 lib/pldmfw/pldmfw.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/pldmfw/pldmfw.c b/lib/pldmfw/pldmfw.c
index 15ba5f76043f..cd1698e9c340 100644
--- a/lib/pldmfw/pldmfw.c
+++ b/lib/pldmfw/pldmfw.c
@@ -306,6 +306,7 @@ pldm_parse_one_record(struct pldmfw_priv *data,
 		return err;
 
 	record_len = get_unaligned_le16(&__record->record_len);
+	record->device_update_flags = get_unaligned_le32(&__record->device_update_flags);
 	record->package_data_len = get_unaligned_le16(&__record->package_data_len);
 	record->version_len = __record->version_len;
 	record->version_type = __record->version_type;
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ