#
9c57ef5d |
| 10-Mar-2025 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
requester: Add null check in pldm_instance_id_free
pldm_instance_id_free() function does not check for a valid ctx object before dereferencing it. Hence it could cause crash when its clients pass a
requester: Add null check in pldm_instance_id_free
pldm_instance_id_free() function does not check for a valid ctx object before dereferencing it. Hence it could cause crash when its clients pass a null pointer by accident.
Change-Id: I4f06127eef16d2ab147e4c5a73a47850d7f5e546 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
#
6c7ee4f4 |
| 17-Mar-2025 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
requester: Add null check in pldm_instance_id_alloc
pldm_instance_id_alloc() function does not check for a valid ctx object before dereferencing it. Hence it could cause crash when its clients pass
requester: Add null check in pldm_instance_id_alloc
pldm_instance_id_alloc() function does not check for a valid ctx object before dereferencing it. Hence it could cause crash when its clients pass a null pointer by accident.
Change-Id: I340aa8171cd397f5af772a9cc6d4f80c8263a089 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
Revision tags: v0.11.0, v0.10.0, v0.9.1, v0.9.0 |
|
#
e4240679 |
| 28-Jun-2024 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
requester: instance-id: Release read lock on conflict
36af84cdbb66 ("requester: Add new APIs for instance ID allocation and freeing") introduced the new instance ID allocation APIs, and some unbalan
requester: instance-id: Release read lock on conflict
36af84cdbb66 ("requester: Add new APIs for instance ID allocation and freeing") introduced the new instance ID allocation APIs, and some unbalanced locking along with it. When a conflict arose on an instance ID, the read lock was not released by the non-owning caller.
Release the lock on conflict and on error, and add a test case to prevent regression.
gitlint-ignore: UC1, B1 Fixes: 36af84cdbb66 ("requester: Add new APIs for instance ID allocation and freeing") Reported-by: Jerry Chen <jerry_c_chen@wiwynn.com> Change-Id: Iecd1583c6b8863b458cc4fbf1ac42b20ca2a3433 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
Revision tags: v0.8.0 |
|
#
efb40069 |
| 09-Nov-2023 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
libpldm: More fixes for header use
b0c1d20a5bde ("libpldm: Fix header use") only did half the job, addressing compilation concerns for the library itself. As it turns out there were still plenty of
libpldm: More fixes for header use
b0c1d20a5bde ("libpldm: Fix header use") only did half the job, addressing compilation concerns for the library itself. As it turns out there were still plenty of places that used local includes for paths to the public headers.
Apply the rest of the header cleanups to hopefully get us into a consistent state.
Fixes: b0c1d20a5bde ("libpldm: Fix header use") Change-Id: I8d4b59c9241770583abb30389452af0a32b18b99 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
Revision tags: v0.7.0, v0.6.0, v0.5.0, v0.4.0, v0.3.0 |
|
#
f56975e1 |
| 26-Apr-2023 |
Rashmica Gupta <rashmica@linux.ibm.com> |
tests/instance-id: remove unneeded local variable
The local `fd` shadows the class member `fd` causing a resource leak.
Change-Id: I20d55f7c56244e14741988f3322e01a8aeb5267b Signed-off-by: Rashmica
tests/instance-id: remove unneeded local variable
The local `fd` shadows the class member `fd` causing a resource leak.
Change-Id: I20d55f7c56244e14741988f3322e01a8aeb5267b Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com>
show more ...
|
#
a6f0cf3e |
| 23-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
instance-id: Ensure database is appropriately sized
Fail initialisation if we know that we may fail to satisfy valid allocations.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Iff38b27
instance-id: Ensure database is appropriately sized
Fail initialisation if we know that we may fail to satisfy valid allocations.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Iff38b27fd324da57a1d81b6ad3c5951e369ce3b3
show more ...
|
#
0aea707b |
| 23-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
instance-id: Track existing allocations for each db instance
OFD locking allows merging and splitting of locks, which means that it won't fail an attempt to "recursively" lock the range. We were rel
instance-id: Track existing allocations for each db instance
OFD locking allows merging and splitting of locks, which means that it won't fail an attempt to "recursively" lock the range. We were relying on that to prevent double allocation when the available instance IDs for a TID were exhausted.
Given that we can't rely on it, explicitly track the allocations in the local state.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: Ic0f6903935ac712a86a7967d1cceb5a0c463878b
show more ...
|
#
b27cebfd |
| 23-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
tests: Add instance-id tests
They weren't included on the patch introducing the API. Better late than never!
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I36b38959f427f4abf9fb3308d6e3
tests: Add instance-id tests
They weren't included on the patch introducing the API. Better late than never!
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I36b38959f427f4abf9fb3308d6e301a2a692170f
show more ...
|