All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Change categories:
- Added
- Changed
- Deprecated
- Removed
- Fixed
- Security
- base: Provide pldm_msg_hdr_correlate_response()
- transport: af-mctp: Add pldm_transport_af_mctp_bind()
- oem: ibm: Add chapdata file type support
- base: Added PLDM_SMBIOS & PLDM_RDE message types
- oem: meta: Add decode_oem_meta_file_io_req()
- base: Stabilise pldm_msg_hdr_correlate_response()
- transport: af-mctp: Stabilise pldm_transport_af_mctp_bind()
- libpldm: Fix header use
- libpldm: More fixes for header use
- pdr: Stabilise pldm_pdr_find_last_in_range() API
- pdr: Stabilise pldm_entity_association_pdr_add_from_node_with_record_handle()
- oem: meta: stabilise decode_oem_meta_file_io_req()
- pdr: pldm_entity_association_tree_copy_root(): Document preconditions
- libpldm: Rationalise the local and installed path of pldm.h
- pdr: Assign record_handle in entity_association_pdr_add_children()
- state-set: Add new enum for Operational Fault Status enum
-
transport: Match specified metadata in pldm_transport_send_recv_msg()
-
transport: mctp-demux: Drop ABI annotation for internal symbols
-
transport: Stabilise core transport and implementation APIs
This stabilisation covers the following headers and functions:
-
libpldm/transport.h
- pldm_transport_poll()
- pldm_transport_send_msg()
- pldm_transport_recv_msg()
- pldm_transport_send_recv_msg()
-
libpldm/transport/af-mctp.h
- pldm_transport_af_mctp_init()
- pldm_transport_af_mctp_destroy()
- pldm_transport_af_mctp_core()
- pldm_transport_af_mctp_init_pollfd()
- pldm_transport_af_mctp_map_tid()
- pldm_transport_af_mctp_unmap_tid()
-
libpldm/transport/mctp-demux.h
- pldm_transport_mctp_demux_init()
- pldm_transport_mctp_demux_destroy()
- pldm_transport_mctp_demux_core()
- pldm_transport_mctp_demux_init_pollfd()
- pldm_transport_mctp_demux_map_tid()
- pldm_transport_mctp_demux_unmap_tid()
-
-
All the existing "requester" APIs from
libpldm/pldm.h
(also known aslibpldm/requester/pldm.h
):- pldm_open()
- pldm_send_recv()
- pldm_send()
- pldm_recv()
- pldm_recv_any()
- pldm_close()
Users should migrate to the newer "transport" APIs instead.
- tests: Exclude transport tests when build excludes testing ABIs
- abi: Capture deprecation of pldm_close()
- pdr: Avoid ID overflow in pldm_entity_association_tree_add_entity()
- meson: Apply
b_ndebug=if-release
by default - pdr : Stabilize pldm_entity_association_tree_add_entity()
- pdr: Stabilise pldm_entity_association_tree_find_with_locality()
- pdr: Stabilize pldm_entity_node_get_remote_container_id()
- transport: af-mctp: Assign out-params on success in *_recv()
- transport: Generalise the pldm_transport_recv_msg() API
- pdr: Remove pldm_entity_association_pdr_add()
- state-set: Remove enum pldm_state_set_operational_fault_status_values
- transport: register init_pollfd callback for af-mctp
- transport: fix init_pollfd function parameter
- transport: Fix doxygen and variables for send and recv functions
- transport: af-mctp: Ensure malloc() succeeds in *_recv()
- pdr: Introduce pldm_entity_association_pdr_add_check()
- pdr: Allow record_handle to be NULL for pldm_pdr_add_check()
- transport: pldm_transport_poll(): Adjust return value semantics
- transport: free un-wanted responses in pldm_transport_send_recv_msg()
-
state-set: Enum pldm_state_set_operational_fault_status_values
The enum operational_fault_status is defined with wrong members and will eventually be replaced with the correct members. Any uses of pldm_state_set_operational_fault_status_values members should move to equivalent pldm_state_set_operational_stress_status_values members if needed.
-
platform: Struct field name in fru_record_set PDR
References to entity_instance_num should be changed to entity_instance
-
platform: Struct field name in numeric sensor value PDR
References to entity_instance_num should be changed to entity_instance
- bios_table: Remove pldm_bios_table_attr_entry_integer_encode_length()
- bios_table: Remove pldm_bios_table_attr_value_entry_encode_enum()
- bios_table: Remove pldm_bios_table_attr_value_entry_encode_string()
- bios_table: Remove pldm_bios_table_attr_value_entry_encode_integer()
- bios_table: Remove pldm_bios_table_append_pad_checksum()
- fru: Remove get_fru_record_by_option()
- pdr: Make is_present() static
- pdr: Remove pldm_pdr_add()
- pdr: Remove pldm_pdr_add_fru_record_set()
- pdr: Remove pldm_entity_association_pdr_add_from_node()
- pdr: Make find_entity_ref_in_tree() static
- pdr: Make entity_association_tree_find() static
- requester: Fix response buffer cast in pldm_send_recv()
- pdr: Hoist record handle overflow test to avoid memory leak
- transport: Correct comparison in while loop condition
- bios_table: Introduce pldm_bios_table_append_pad_checksum_check()
- fru: Introduce get_fru_record_by_option_check()
- pdr: Introduce pldm_entity_association_pdr_add_from_node_check()
- pdr: Introduce pldm_pdr_add_check()
- pdr: Introduce pldm_pdr_add_fru_record_set_check()
-
requester: Mark pldm_close() as LIBPLDM_ABI_TESTING
-
requester: Expose pldm_close() in header
-
bios_table: pldm_bios_table_string_entry_encode_check(): Handle overflow
-
bios_table: pldm_bios_table_iter_create(): Return NULL on failed alloc
-
bios_table: pldm_bios_table_iter_next(): Invalid entry halts iteration
-
pdr: pldm_pdr_init(): Return NULL on allocation failure
-
pdr: pldm_pdr_destroy(): Exit early if repo is NULL
-
pdr: Document preconditions for trivial accessor functions
A trivial accessor function is one that exposes properties of an object in a way can't result in an error, beyond passing an invalid argument to the function. For APIs meeting this definition we define a precondition that struct pointers must point to valid objects to avoid polluting the function prototypes. The following APIs now have this precondition explicitly defined:
- pldm_entity_extract()
- pldm_entity_get_parent()
- pldm_entity_is_exist_parent()
- pldm_entity_is_node_parent()
- pldm_is_current_parent_child
- pldm_is_empty_entity_assoc_tree()
- pldm_pdr_get_record_count()
- pldm_pdr_get_record_handle()
- pldm_pdr_get_repo_size()
- pldm_pdr_record_is_remote()
-
pdr: pldm_entity_node_get_remote_container_id() is a trivial accessor
-
pdr: pldm_pdr_fru_record_set_find_by_rsi(): Exit early on NULL arguments
-
pdr: pldm_entity_association_tree_init(): Return NULL on failed alloc
-
pdr: pldm_entity_association_tree_visit(): Document preconditions
-
pdr: pldm_entity_association_tree_visit(): Exit early on failure
-
pdr: pldm_entity_association_tree_destroy(): Exit early on bad argument
-
pdr: pldm_entity_get_num_children(): Return zero for invalid arguments
-
pdr: pldm_is_current_parent_child(): Return false for invalid arguments
-
pdr: pldm_entity_association_pdr_add(): Exit early on bad arguments
-
pdr: pldm_find_entity_ref_in_tree(): Exit early on bad arguments
-
pdr: pldm_entity_association_tree_find(): Early exit on bad arguments
-
pdr: pldm_entity_association_tree_destroy_root(): Exit early on bad arg
-
pdr: pldm_entity_association_pdr_extract(): Early exit on bad arguments
-
pdr: pldm_entity_association_pdr_extract(): Assign out params at exit
-
pdr: pldm_entity_get_num_children(): Don't return invalid values
-
libpldm: Lift or remove asserts where a subsequent check exists
-
pldm_bios_table_attr_entry_integer_encode()
Migrate to pldm_bios_table_attr_entry_integer_encode_check()
-
bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_enum()
Migrate to pldm_bios_table_attr_value_entry_encode_enum_check()
-
bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_string()
Migrate to pldm_bios_table_attr_value_entry_encode_string_check()
-
bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_integer()
Migrate to pldm_bios_table_attr_value_entry_encode_integer_check()
-
pdr: Deprecate is_present()
There should be no users of this symbol. If you are a user, you should figure out how to stop, or get in touch. This symbol will be marked static the release after deprecation.
-
pdr: Deprecate find_entity_ref_in_tree()
There should be no users of this symbol. If you are a user, you should figure out how to stop, or get in touch. This symbol will be marked static the release after deprecation.
-
pdr: Deprecate entity_association_tree_find()
There should be no users of this symbol. If you are a user, you should figure out how to stop, or get in touch. This symbol will be marked static the release after deprecation.
-
bios_table: Stabilise pldm_bios_table_append_pad_checksum_check()
pldm_bios_table_append_pad_checksum() is deprecated by this change. Users of pldm_bios_table_append_pad_checksum() should migrate to pldm_bios_table_append_pad_checksum_check()
-
fru: Stabilise get_fru_record_by_option_check()
get_fru_record_by_option() is deprecated by this change. Users of get_fru_record_by_option() should migrate to get_fru_record_by_option_check()
-
pdr: Stabilise pldm_entity_association_pdr_add_from_node_check()
pldm_entity_association_pdr_add_from_node() is deprecated by this change. Users of pldm_entity_association_pdr_add_from_node() should migrate to pldm_entity_association_pdr_add_from_node_check()
-
pdr: Stabilise pldm_pdr_add_check()
pldm_pdr_add() is deprecated by this change. Users of pldm_pdr_add() should migrate to pldm_pdr_add_check()
-
pdr: Stabilise pldm_pdr_add_fru_record_set_check()
pldm_pdr_add_fru_record_set() is deprecated by this change. Users of pldm_pdr_add_fru_record_set() should migrate to pldm_pdr_add_fru_record_set_check()
-
bios_table: Remove deprecated APIs sanitized by assert():
- pldm_bios_table_string_entry_encode()
- pldm_bios_table_string_entry_decode_string()
- pldm_bios_table_attr_entry_enum_encode()
- pldm_bios_table_attr_entry_enum_decode_pv_num()
- pldm_bios_table_attr_entry_enum_decode_def_num()
- pldm_bios_table_attr_entry_enum_decode_pv_hdls()
- pldm_bios_table_attr_entry_string_encode()
- pldm_bios_table_attr_entry_string_decode_def_string_length()
- pdr: Return success for pldm_pdr_find_child_container_id_range_exclude() API
- pdr: Rework pldm_pdr_find_container_id_range_exclude() API
- transport: mctp-demux: Don't test socket for non-zero value
- requester: Return PLDM_REQUESTER_OPEN_FAIL from pldm_open() on error
- pdr: pldm_pdr_fru_record_set_find_by_rsi(): Document reality of return
- transport: Fix possible NULL ptr deref in pldm_socket_sndbuf_init()
- abi: Update to remove pldm_close() from reference dumps
- bios_table: Annotate pldm_bios_table_attr_value_entry_encode_integer()
- Add encode/decode pldmMessagePollEvent data
- README: Add a section on working with libpldm
- pdr: Introduce remote_container_id and associated APIs
- pdr: Add APIs for creating and locating remote PDRs
- pdr: Add pldm_pdr_find_last_in_range()
- pdr: Add pldm_entity_association_pdr_add_from_node_with_record_handle()
- pdr: Add pldm_pdr_find_container_id_range_exclude()
-
include: Move installed transport.h under libpldm/
-
libpldm: Explicit deprecated, stable and testing ABI classes
-
meson: Reduce strength of oem-ibm requirements from enabled to allowed
The
oem-ibm
feature is now enabled by the default meson configuration, for CI purposes.oem-ibm
is still disabled by default in thelibpldm
bitbake recipe:To disable
oem-ibm
in your development builds, pass-Doem-ibm=disabled
when invokingmeson setup
-
bios_table: Relax pldm_bios_table_string_entry_decode_string_check()
-
bios_table: Relax pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()
-
bios_table: Deprecate APIs with arguments sanitized using assert()
C provides enough foot-guns without us encoding them into library APIs. Specifically, deprecate the following in favour of their
*_check()
variants which ensure assertions won't fail or otherwise invoke UB:- pldm_bios_table_string_entry_encode()
- pldm_bios_table_string_entry_decode_string()
- pldm_bios_table_attr_entry_enum_encode()
- pldm_bios_table_attr_entry_enum_decode_pv_num()
- pldm_bios_table_attr_entry_enum_decode_def_num()
- pldm_bios_table_attr_entry_enum_decode_pv_hdls()
- pldm_bios_table_attr_entry_string_encode()
- pldm_bios_table_attr_entry_string_decode_def_string_length()
- libpldm: Remove the requester-api option
- requester: Make pldm_open() return existing fd
- transport: Prevent sticking in waiting for response
- transport: Match on response in pldm_transport_send_recv_msg()
- requester: Add check before accessing hdr in pldm_recv()
- bios_table: pldm_bios_table_attr_entry_string_info_check() NULL deref