xref: /openbmc/libpldm/CHANGELOG.md (revision 98e137dede322e3fb6c390bacdc8692441149104)
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6and this project adheres to
7[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
9Change categories:
10
11- Added
12- Changed
13- Deprecated
14- Removed
15- Fixed
16- Security
17
18## [Unreleased]
19
20### Added
21
221. oem: meta: Add decode_oem_meta_file_io_write_req()
232. oem: meta: Add decode_oem_meta_file_io_read_req()
243. oem: meta: Add encode_oem_meta_file_io_read_resp()
254. pdr: Add pldm_entity_association_pdr_remove_contained_entity()
265. pdr: Add pldm_pdr_remove_fru_record_set_by_rsi()
276. pldm_entity_association_tree_copy_root_check()
287. oem: ibm: Add topology related state set and enum
29
308. base: Add size and buffer macros for struct pldm_msg
31
32   Together these macros reduce the need for use of reinterpret_cast<>() in C++.
33
34### Changed
35
361. dsp: bios_table: Null check for pldm_bios_table_iter_is_end()
37
38   pldm_bios_table_iter_is_end() now returns true if the provided argument is
39   NULL.
40
412. Register assignment for parameters of a number of APIs changed with increased
42   scrutiny on their implementations.
43
44   - `decode_entity_auxiliary_names_pdr()`
45   - `decode_get_state_sensor_readings_resp()`
46   - `decode_oem_meta_file_io_req()`
47   - `decode_platform_event_message_req()`
48   - `decode_platform_event_message_resp()`
49   - `decode_sensor_op_data()`
50   - `encode_get_state_effecter_states_resp()`
51   - `encode_state_effecter_pdr()`
52   - `encode_state_sensor_pdr()`
53   - `pldm_bios_table_append_pad_checksum()`
54   - `pldm_bios_table_attr_value_entry_encode_enum()`
55   - `pldm_bios_table_attr_value_entry_encode_string()`
56   - `pldm_pdr_find_record()`
57   - `pldm_pdr_get_next_record()`
58
593. platform: Support PLDM_CPER_EVENT in encode_platform_event_message_req()
60
614. dsp: firmware_update: Bounds check
62   decode_downstream_device_parameter_table_entry_versions()
63
64   The additional bounds-checking required the addition of further length
65   parameters.
66
67### Deprecated
68
691. oem: meta: Deprecate `decode_oem_meta_file_io_req()`
70
71   Users should switch to `decode_oem_meta_file_io_write_req()`. Modify this
72   function to make it safer.
73
74   Modification:
75
76   - The meaning of the returned result.
77   - Change parameters from individual pointers to a struct.
78   - Check the length provided in the message won't exceed the buffer.
79
802. pldm_entity_association_tree_copy_root()
81
82   The implementation allocates, but gives no indication to the caller if an
83   allocation (and hence the copy) has failed. Users should migrate to
84   pldm_entity_association_tree_copy_root_check().
85
863. The following APIs are deprecated as unsafe due to various unfixable CWE
87   violations:
88
89   - [CWE-129: Improper Validation of Array Index](https://cwe.mitre.org/data/definitions/129.html)
90
91     - `encode_get_bios_current_value_by_handle_resp()`
92     - `encode_get_bios_table_resp()`
93     - `encode_get_file_table_resp()`
94     - `encode_get_version_resp()`
95     - `pldm_bios_table_attr_entry_enum_decode_def_indices()`
96     - `pldm_bios_table_attr_entry_enum_decode_def_num()`
97     - `pldm_bios_table_attr_find_by_handle()`
98     - `pldm_bios_table_attr_find_by_string_handle()`
99     - `pldm_bios_table_attr_value_find_by_handle()`
100     - `pldm_bios_table_iter_create()`
101     - `pldm_bios_table_iter_is_end()`
102     - `pldm_bios_table_string_find_by_handle()`
103     - `pldm_bios_table_string_find_by_string()`
104
105   - [CWE-617: Reachable Assertion](https://cwe.mitre.org/data/definitions/617.html)
106
107     - `pldm_entity_association_tree_copy_root()`
108
109   - [CWE-789: Memory Allocation with Excessive Size Value](https://cwe.mitre.org/data/definitions/789.html)
110
111     - `decode_oem_meta_file_io_req()`
112
113   - [CWE-823: Use of Out-of-range Pointer Offset](https://cwe.mitre.org/data/definitions/823.html)
114     - `encode_fru_record()`
115     - `encode_get_pdr_resp()`
116     - `pldm_bios_table_attr_entry_enum_encode_length()`
117
118### Removed
119
1201. Deprecated functions with the `_check` suffix
121
122   - `get_fru_record_by_option_check()`
123   - `pldm_bios_table_append_pad_checksum_check()`
124   - `pldm_bios_table_attr_entry_enum_decode_def_num_check()`
125   - `pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()`
126   - `pldm_bios_table_attr_entry_enum_decode_pv_num_check()`
127   - `pldm_bios_table_attr_entry_enum_encode_check()`
128   - `pldm_bios_table_attr_entry_integer_encode_check()`
129   - `pldm_bios_table_attr_entry_string_decode_def_string_length_check()`
130   - `pldm_bios_table_attr_entry_string_encode_check()`
131   - `pldm_bios_table_attr_value_entry_encode_enum_check()`
132   - `pldm_bios_table_attr_value_entry_encode_integer_check()`
133   - `pldm_bios_table_attr_value_entry_encode_string_check()`
134   - `pldm_bios_table_string_entry_decode_string_check()`
135   - `pldm_bios_table_string_entry_encode_check()`
136   - `pldm_entity_association_pdr_add_check()`
137   - `pldm_entity_association_pdr_add_from_node_check()`
138   - `pldm_pdr_add_check()`
139   - `pldm_pdr_add_fru_record_set_check()`
140
141### Fixed
142
1431. dsp: bios_table: Null check for pldm_bios_table_iter_is_end()
144
145   Avoid a caller-controlled NULL pointer dereference in the library
146   implementation.
147
1482. platform: fix encode/decode_poll_for_platform_event_message_req
149
150   Update checking of `TransferOperationFlag` and `eventIDToAcknowledge` to
151   follow spec.
152
1533. platform: Fix checking `eventIDToAcknowledge`
154
155   As the event receiver sends `PollForPlatformEventMessage` with the
156   `tranferFlag` is `AcknowledgementOnly`, the value `eventIDToAcknowledge`
157   should be the previously retrieved eventID (from the PLDM terminus).
158
1594. dsp: platform: Prevent overflow of arithmetic on event_data_length
1605. dsp: platform: Bounds check encode_sensor_state_pdr()
1616. dsp: platform: Bounds check encode_state_effecter_pdr()
1627. dsp: pdr: Bounds check pldm_entity_association_pdr_extract()
1638. dsp: bios_table: Bounds check pldm_bios_table_append_pad_checksum()
1649. dsp: bios_table: Bounds check
165   pldm_bios_table_attr_value_entry_encode_string()
16610. dsp: bios_table: Bounds check pldm_bios_table_attr_value_entry_encode_enum()
16711. dsp: firmware_update: Bounds check
168    decode_downstream_device_parameter_table_entry_versions()
16912. oem: ibm: platform: Bounds check encode_bios_attribute_update_event_req()
17013. dsp: fru: Bounds check encode_get_fru_record_by_option_resp()
17114. dsp: fru: Bounds check encode_fru_record()
17215. dsp: bios: Bounds check encode_set_bios_table_req()
17316. dsp: bios: Bounds check encode_set_bios_attribute_current_value_req()
17417. dsp: bios_table: Bounds check pldm_bios_table_string_entry_encode()
17518. dsp: pdr: Rework test in pldm_entity_association_pdr_extract()
17619. dsp: platform: Fix decode_set_event_receiver_req()
177
178## [0.9.1] - 2024-09-07
179
180### Changed
181
1821. Moved evolutions intended for v0.9.0 into place
183
184   Evolutions for the release have been moved from `evolutions/current` to
185   `evolutions/v0.9.1`. Library users can apply them to migrate off of
186   deprecated APIs.
187
188## [0.9.0] - 2024-09-07
189
190### Added
191
1921. base: Define macros for reserved TIDs
1932. pdr: Add pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1943. pdr: Add pldm_entity_association_pdr_create_new()
1954. platform: Define macros for the responded transferflags
1965. pdr: Add pldm_pdr_get_terminus_handle() API
1976. pdr: Add related decode_entity_auxiliary_names_pdr() APIs
1987. fw_update: Add encode req & decode resp for get_downstream_fw_params
1998. platform: Add decode_pldm_platform_cper_event() API
2009. decode_get_pdr_repository_info_resp_safe()
201
202   Replaces decode_get_pdr_repository_info_resp() as discussed in the
203   `Deprecated` section below
204
20510. decode_get_pdr_resp_safe()
206
207    Replaces decode_get_pdr_resp() as discussed in the `Deprecated` section
208    below
209
210### Changed
211
2121. pdr: Stabilise related decode_entity_auxiliary_names_pdr() APIs
2132. platform: Rework decode/encode_pldm_message_poll_event_data() APIs
2143. platform: Stabilise decode_pldm_message_poll_event_data() APIs
2154. ABI break for decode_sensor_op_data()
216
217   Applying LIBPLDM_CC_NONNULL to the internal msgbuf APIs caused
218   abi-compliance-checker to flag a change in the register containing the
219   parameter `previous_op_state`.
220
2215. platform: Stabilise decode_pldm_platform_cper_event() API
2226. oem: meta: Stabilise decode_oem_meta_file_io_write_req() API
2237. oem: meta: Stabilise decode_oem_meta_file_io_read_req() API
2248. oem: meta: Stabilise encode_oem_meta_file_io_read_resp() API
225
226### Deprecated
227
2281. Rename and deprecate functions with the `_check` suffix
229
230   All library function return values always need to be checked. The `_check`
231   suffix is redundant, so remove it. Migration to the non-deprecated
232   equivalents without the `_check` suffix can be performed using
233   `scripts/ apply-renames` and the [clang-rename][] configurations under
234   `evolutions/`
235
236   The deprecated functions:
237
238   - `get_fru_record_by_option_check()`
239   - `pldm_bios_table_append_pad_checksum_check()`
240   - `pldm_bios_table_attr_entry_enum_decode_def_num_check()`
241   - `pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()`
242   - `pldm_bios_table_attr_entry_enum_decode_pv_num_check()`
243   - `pldm_bios_table_attr_entry_enum_encode_check()`
244   - `pldm_bios_table_attr_entry_integer_encode_check()`
245   - `pldm_bios_table_attr_entry_string_decode_def_string_length_check()`
246   - `pldm_bios_table_attr_entry_string_encode_check()`
247   - `pldm_bios_table_attr_value_entry_encode_enum_check()`
248   - `pldm_bios_table_attr_value_entry_encode_integer_check()`
249   - `pldm_bios_table_attr_value_entry_encode_string_check()`
250   - `pldm_bios_table_string_entry_decode_string_check()`
251   - `pldm_bios_table_string_entry_encode_check()`
252   - `pldm_entity_association_pdr_add_check()`
253   - `pldm_entity_association_pdr_add_from_node_check()`
254   - `pldm_pdr_add_check()`
255   - `pldm_pdr_add_fru_record_set_check()`
256
257[clang-rename]: https://clang.llvm.org/extra/clang-rename.html
258
2592. `decode_get_pdr_repository_info_resp()`
260
261   Users should move to `decode_get_pdr_repository_info_resp_safe()` which
262   eliminates the opportunity for buffer overruns when extracting objects from
263   the message.
264
2653. `decode_get_pdr_resp()`
266
267   Users should move to `decode_get_pdr_resp_safe()` which reduces the
268   invocation tedium and improves memory safety over `decode_get_pdr_resp()`.
269
270### Removed
271
2721. IBM OEM header compatibility symlinks.
273
274   Anyone left using the deprecated paths can migrate using the coccinelle patch
275   at `evolutions/current/oem-ibm-header-compat.cocci`.
276
277### Fixed
278
2791. requester: instance-id: Release read lock on conflict
2802. pdr: Error propagation for
281   pldm_entity_association_pdr_add_from_node_with_record_handle()
282
283## [0.8.0] - 2024-05-23
284
285### Added
286
2871. base: Provide pldm_msg_hdr_correlate_response()
2882. transport: af-mctp: Add pldm_transport_af_mctp_bind()
2893. oem: ibm: Add chapdata file type support
2904. base: Added PLDM_SMBIOS & PLDM_RDE message types
2915. oem: meta: Add decode_oem_meta_file_io_req()
2926. state-set: Add all state set values to system power state enum as per DSP0249
2937. platform: Add alias members to the enum
294   pldm_pdr_repository_chg_event_change_record_event_data_operation.
295
296   enum constants with inconsistent names are deprecated with this change.
297   remove old inconsistent enum members after backward compatibility cleanup is
298   done
299
3008. oem-ibm: Alias `pldm_oem_ibm_fru_field_type` members as `PLDM_OEM_IBM_*`
3019. oem: ibm: Add Firmware Update Access Key(UAK) as a FRU field type
30210. platform: Add 3 PDR type enum for Redfish Device Enablement per
303    DSP0248_1.2.0
30411. state_set: Add CONNECTED and DISCONNECTED enum for Link State set
30512. entity: Add enum for Network Interface Connectors and Network Ports
306    Connection Types
30713. pdr: Add decode_numeric_effecter_pdr_data()
30814. oem: ibm: Support for the Real SAI entity id
30915. fw_update: Add encode req & decode resp for query_downstream_devices
31016. fw_update: Add encode req & decode resp for query_downstream_identifiers
31117. platform: Add support for GetStateEffecterStates command
312
313### Changed
314
3151. base: Stabilise pldm_msg_hdr_correlate_response()
3162. transport: af-mctp: Stabilise pldm_transport_af_mctp_bind()
3173. libpldm: Fix header use
3184. libpldm: More fixes for header use
3195. pdr: Stabilise pldm_pdr_find_last_in_range() API
3206. pdr: Stabilise pldm_entity_association_pdr_add_from_node_with_record_handle()
3217. oem: meta: stabilise decode_oem_meta_file_io_req()
3228. pdr: pldm_entity_association_tree_copy_root(): Document preconditions
323
324### Deprecated
325
3261. Deprecate `pldm_oem_ibm_fru_field_type` members that that are not prefixed
327   with `PLDM_OEM_IBM_`
328
329### Fixed
330
3311. libpldm: Rationalise the local and installed path of pldm.h
3322. pdr: Assign record_handle in entity_association_pdr_add_children()
3333. msgbuf: Require sensor data enum in pldm_msgbuf_extract_sensor_value()
3344. pdr: Remove redundant constant for minimum numeric sensor PDR length
3355. tests: oem: meta: Fix fileio use of msgbuf
336
337## [0.7.0] - 2023-08-29
338
339### Added
340
3411. state-set: Add new enum for Operational Fault Status enum
342
343### Changed
344
3451. transport: Match specified metadata in pldm_transport_send_recv_msg()
3462. transport: mctp-demux: Drop ABI annotation for internal symbols
3473. transport: Stabilise core transport and implementation APIs
348
349   This stabilisation covers the following headers and functions:
350
351   - libpldm/transport.h
352
353     - pldm_transport_poll()
354     - pldm_transport_send_msg()
355     - pldm_transport_recv_msg()
356     - pldm_transport_send_recv_msg()
357
358   - libpldm/transport/af-mctp.h
359
360     - pldm_transport_af_mctp_init()
361     - pldm_transport_af_mctp_destroy()
362     - pldm_transport_af_mctp_core()
363     - pldm_transport_af_mctp_init_pollfd()
364     - pldm_transport_af_mctp_map_tid()
365     - pldm_transport_af_mctp_unmap_tid()
366
367   - libpldm/transport/mctp-demux.h
368     - pldm_transport_mctp_demux_init()
369     - pldm_transport_mctp_demux_destroy()
370     - pldm_transport_mctp_demux_core()
371     - pldm_transport_mctp_demux_init_pollfd()
372     - pldm_transport_mctp_demux_map_tid()
373     - pldm_transport_mctp_demux_unmap_tid()
374
375### Deprecated
376
3771. All the existing "requester" APIs from `libpldm/pldm.h` (also known as
378   `libpldm/requester/pldm.h`):
379
380   - pldm_open()
381   - pldm_send_recv()
382   - pldm_send()
383   - pldm_recv()
384   - pldm_recv_any()
385   - pldm_close()
386
387   Users should migrate to the newer "transport" APIs instead.
388
389## Fixed
390
3911. tests: Exclude transport tests when build excludes testing ABIs
3922. abi: Capture deprecation of pldm_close()
393
394## [0.6.0] - 2023-08-22
395
396### Changed
397
3981. pdr: Avoid ID overflow in pldm_entity_association_tree_add_entity()
3992. meson: Apply `b_ndebug=if-release` by default
4003. pdr : Stabilize pldm_entity_association_tree_add_entity()
4014. pdr: Stabilise pldm_entity_association_tree_find_with_locality()
4025. pdr: Stabilize pldm_entity_node_get_remote_container_id()
4036. transport: af-mctp: Assign out-params on success in \*\_recv()
4047. transport: Generalise the pldm_transport_recv_msg() API
405
406### Removed
407
4081. pdr: Remove pldm_entity_association_pdr_add()
4092. state-set: Remove enum pldm_state_set_operational_fault_status_values
410
411### Fixed
412
4131. transport: register init_pollfd callback for af-mctp
4142. transport: fix init_pollfd function parameter
4153. transport: Fix doxygen and variables for send and recv functions
4164. transport: af-mctp: Ensure malloc() succeeds in \*\_recv()
417
418## [0.5.0] - 2023-08-09
419
420### Added
421
4221. pdr: Introduce pldm_entity_association_pdr_add_check()
423
424### Changed
425
4261. pdr: Allow record_handle to be NULL for pldm_pdr_add_check()
4272. transport: pldm_transport_poll(): Adjust return value semantics
4283. transport: free un-wanted responses in pldm_transport_send_recv_msg()
429
430### Deprecated
431
4321. state-set: Enum pldm_state_set_operational_fault_status_values
433
434   The enum operational_fault_status is defined with wrong members and will
435   eventually be replaced with the correct members. Any uses of
436   pldm_state_set_operational_fault_status_values members should move to
437   equivalent pldm_state_set_operational_stress_status_values members if needed.
438
4392. platform: Struct field name in fru_record_set PDR
440
441   References to entity_instance_num should be changed to entity_instance
442
4433. platform: Struct field name in numeric sensor value PDR
444
445   References to entity_instance_num should be changed to entity_instance
446
447### Removed
448
4491. bios_table: Remove pldm_bios_table_attr_entry_integer_encode_length()
4502. bios_table: Remove pldm_bios_table_attr_value_entry_encode_enum()
4513. bios_table: Remove pldm_bios_table_attr_value_entry_encode_string()
4524. bios_table: Remove pldm_bios_table_attr_value_entry_encode_integer()
4535. bios_table: Remove pldm_bios_table_append_pad_checksum()
4546. fru: Remove get_fru_record_by_option()
4557. pdr: Make is_present() static
4568. pdr: Remove pldm_pdr_add()
4579. pdr: Remove pldm_pdr_add_fru_record_set()
45810. pdr: Remove pldm_entity_association_pdr_add_from_node()
45911. pdr: Make find_entity_ref_in_tree() static
46012. pdr: Make entity_association_tree_find() static
461
462### Fixed
463
4641. requester: Fix response buffer cast in pldm_send_recv()
4652. pdr: Hoist record handle overflow test to avoid memory leak
4663. transport: Correct comparison in while loop condition
467
468## [0.4.0] - 2023-07-14
469
470### Added
471
4721. bios_table: Introduce pldm_bios_table_append_pad_checksum_check()
4732. fru: Introduce get_fru_record_by_option_check()
4743. pdr: Introduce pldm_entity_association_pdr_add_from_node_check()
4754. pdr: Introduce pldm_pdr_add_check()
4765. pdr: Introduce pldm_pdr_add_fru_record_set_check()
477
478### Changed
479
4801. requester: Mark pldm_close() as LIBPLDM_ABI_TESTING
4812. requester: Expose pldm_close() in header
4823. bios_table: pldm_bios_table_string_entry_encode_check(): Handle overflow
4834. bios_table: pldm_bios_table_iter_create(): Return NULL on failed alloc
4845. bios_table: pldm_bios_table_iter_next(): Invalid entry halts iteration
4856. pdr: pldm_pdr_init(): Return NULL on allocation failure
4867. pdr: pldm_pdr_destroy(): Exit early if repo is NULL
4878. pdr: Document preconditions for trivial accessor functions
488
489   A trivial accessor function is one that exposes properties of an object in a
490   way can't result in an error, beyond passing an invalid argument to the
491   function. For APIs meeting this definition we define a precondition that
492   struct pointers must point to valid objects to avoid polluting the function
493   prototypes. The following APIs now have this precondition explicitly defined:
494
495   - pldm_entity_extract()
496   - pldm_entity_get_parent()
497   - pldm_entity_is_exist_parent()
498   - pldm_entity_is_node_parent()
499   - pldm_is_current_parent_child
500   - pldm_is_empty_entity_assoc_tree()
501   - pldm_pdr_get_record_count()
502   - pldm_pdr_get_record_handle()
503   - pldm_pdr_get_repo_size()
504   - pldm_pdr_record_is_remote()
505
5069. pdr: pldm_entity_node_get_remote_container_id() is a trivial accessor
50710. pdr: pldm_pdr_fru_record_set_find_by_rsi(): Exit early on NULL arguments
50811. pdr: pldm_entity_association_tree_init(): Return NULL on failed alloc
50912. pdr: pldm_entity_association_tree_visit(): Document preconditions
51013. pdr: pldm_entity_association_tree_visit(): Exit early on failure
51114. pdr: pldm_entity_association_tree_destroy(): Exit early on bad argument
51215. pdr: pldm_entity_get_num_children(): Return zero for invalid arguments
51316. pdr: pldm_is_current_parent_child(): Return false for invalid arguments
51417. pdr: pldm_entity_association_pdr_add(): Exit early on bad arguments
51518. pdr: pldm_find_entity_ref_in_tree(): Exit early on bad arguments
51619. pdr: pldm_entity_association_tree_find(): Early exit on bad arguments
51720. pdr: pldm_entity_association_tree_destroy_root(): Exit early on bad arg
51821. pdr: pldm_entity_association_pdr_extract(): Early exit on bad arguments
51922. pdr: pldm_entity_association_pdr_extract(): Assign out params at exit
52023. pdr: pldm_entity_get_num_children(): Don't return invalid values
52124. libpldm: Lift or remove asserts where a subsequent check exists
522
523### Deprecated
524
5251. pldm_bios_table_attr_entry_integer_encode()
526
527   Migrate to pldm_bios_table_attr_entry_integer_encode_check()
528
5292. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_enum()
530
531   Migrate to pldm_bios_table_attr_value_entry_encode_enum_check()
532
5333. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_string()
534
535   Migrate to pldm_bios_table_attr_value_entry_encode_string_check()
536
5374. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_integer()
538
539   Migrate to pldm_bios_table_attr_value_entry_encode_integer_check()
540
5415. pdr: Deprecate is_present()
542
543   There should be no users of this symbol. If you are a user, you should figure
544   out how to stop, or get in touch. This symbol will be marked static the
545   release after deprecation.
546
5476. pdr: Deprecate find_entity_ref_in_tree()
548
549   There should be no users of this symbol. If you are a user, you should figure
550   out how to stop, or get in touch. This symbol will be marked static the
551   release after deprecation.
552
5537. pdr: Deprecate entity_association_tree_find()
554
555   There should be no users of this symbol. If you are a user, you should figure
556   out how to stop, or get in touch. This symbol will be marked static the
557   release after deprecation.
558
5598. bios_table: Stabilise pldm_bios_table_append_pad_checksum_check()
560
561   pldm_bios_table_append_pad_checksum() is deprecated by this change. Users of
562   pldm_bios_table_append_pad_checksum() should migrate to
563   pldm_bios_table_append_pad_checksum_check()
564
5659. fru: Stabilise get_fru_record_by_option_check()
566
567   get_fru_record_by_option() is deprecated by this change. Users of
568   get_fru_record_by_option() should migrate to get_fru_record_by_option_check()
569
57010. pdr: Stabilise pldm_entity_association_pdr_add_from_node_check()
571
572    pldm_entity_association_pdr_add_from_node() is deprecated by this change.
573    Users of pldm_entity_association_pdr_add_from_node() should migrate to
574    pldm_entity_association_pdr_add_from_node_check()
575
57611. pdr: Stabilise pldm_pdr_add_check()
577
578    pldm_pdr_add() is deprecated by this change. Users of pldm_pdr_add() should
579    migrate to pldm_pdr_add_check()
580
58112. pdr: Stabilise pldm_pdr_add_fru_record_set_check()
582
583    pldm_pdr_add_fru_record_set() is deprecated by this change. Users of
584    pldm_pdr_add_fru_record_set() should migrate to
585    pldm_pdr_add_fru_record_set_check()
586
587### Removed
588
5891. bios_table: Remove deprecated APIs sanitized by assert():
590
591   - pldm_bios_table_string_entry_encode()
592   - pldm_bios_table_string_entry_decode_string()
593   - pldm_bios_table_attr_entry_enum_encode()
594   - pldm_bios_table_attr_entry_enum_decode_pv_num()
595   - pldm_bios_table_attr_entry_enum_decode_def_num()
596   - pldm_bios_table_attr_entry_enum_decode_pv_hdls()
597   - pldm_bios_table_attr_entry_string_encode()
598   - pldm_bios_table_attr_entry_string_decode_def_string_length()
599
600### Fixed
601
6021. pdr: Return success for pldm_pdr_find_child_container_id_range_exclude() API
6032. pdr: Rework pldm_pdr_find_container_id_range_exclude() API
6043. transport: mctp-demux: Don't test socket for non-zero value
6054. requester: Return PLDM_REQUESTER_OPEN_FAIL from pldm_open() on error
6065. pdr: pldm_pdr_fru_record_set_find_by_rsi(): Document reality of return
6076. transport: Fix possible NULL ptr deref in pldm_socket_sndbuf_init()
6087. abi: Update to remove pldm_close() from reference dumps
6098. bios_table: Annotate pldm_bios_table_attr_value_entry_encode_integer()
610
611## [0.3.0] - 2023-06-23
612
613### Added
614
6151. Add encode/decode pldmMessagePollEvent data
6162. README: Add a section on working with libpldm
6173. pdr: Introduce remote_container_id and associated APIs
6184. pdr: Add APIs for creating and locating remote PDRs
6195. pdr: Add pldm_pdr_find_last_in_range()
6206. pdr: Add pldm_entity_association_pdr_add_from_node_with_record_handle()
6217. pdr: Add pldm_pdr_find_container_id_range_exclude()
622
623### Changed
624
6251. include: Move installed transport.h under libpldm/
6262. libpldm: Explicit deprecated, stable and testing ABI classes
6273. meson: Reduce strength of oem-ibm requirements from enabled to allowed
628
629   The `oem-ibm` feature is now enabled by the default meson configuration, for
630   CI purposes. `oem-ibm` is still disabled by default in the `libpldm` bitbake
631   recipe:
632
633   <https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb#L10>
634
635   To disable `oem-ibm` in your development builds, pass `-Doem-ibm=disabled`
636   when invoking `meson setup`
637
6384. bios_table: Relax pldm_bios_table_string_entry_decode_string_check()
6395. bios_table: Relax pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()
640
641### Deprecated
642
6431. bios_table: Deprecate APIs with arguments sanitized using assert()
644
645   C provides enough foot-guns without us encoding them into library APIs.
646   Specifically, deprecate the following in favour of their `*_check()` variants
647   which ensure assertions won't fail or otherwise invoke UB:
648
649   - pldm_bios_table_string_entry_encode()
650   - pldm_bios_table_string_entry_decode_string()
651   - pldm_bios_table_attr_entry_enum_encode()
652   - pldm_bios_table_attr_entry_enum_decode_pv_num()
653   - pldm_bios_table_attr_entry_enum_decode_def_num()
654   - pldm_bios_table_attr_entry_enum_decode_pv_hdls()
655   - pldm_bios_table_attr_entry_string_encode()
656   - pldm_bios_table_attr_entry_string_decode_def_string_length()
657
658### Removed
659
6601. libpldm: Remove the requester-api option
661
662### Fixed
663
6641. requester: Make pldm_open() return existing fd
6652. transport: Prevent sticking in waiting for response
6663. transport: Match on response in pldm_transport_send_recv_msg()
6674. requester: Add check before accessing hdr in pldm_recv()
6685. bios_table: pldm_bios_table_attr_entry_string_info_check() NULL deref
669