Skip to content

GET_Measurements Slot-1 failed with LIBSPDM_ASSERT #158

@kiran-sl-sndk

Description

@kiran-sl-sndk

Command:
sudo ./target/debug/spdm_utils --pcie-vid 0x15b7 --pcie-devid 0x5050 --doe-pci-cfg --no-session request --cert-path ./set-cert.der get-version,get-capabilities,negotiate-algorithms,get-certificate,get-measurements --cert-slot-id 1

Failure:

LIBSPDM_ASSERT: /home/fvtthg506003/spdm-utils/third-party/libspdm/library/spdm_requester_lib/libspdm_req_get_measurements.c(81): context != NULL

Host Log:

libspdm_send_spdm_request[0] msg SPDM_GET_MEASUREMENTS(0xe0), size (0x25):
0000: 12 e0 01 00 e0 d0 a1 dc ab fa e5 f5 96 1b 1e 4f 27 5f a9 8f ef 5d f5 ab 1f 1f 14 49 cd 2b ba ef
0020: 0a 7c d4 f3 00
[2025-06-25T09:33:54Z INFO spdm_utils::doe_pci_cfg] Sending message [1, 0, 1, 0, c, 0, 0, 0, 12, e0, 1, 0, e0, d0, a1, dc, ab, fa, e5, f5, 96, 1b, 1e, 4f, 27, 5f, a9, 8f, ef, 5d, f5, ab, 1f, 1f, 14, 49, cd, 2b, ba, ef, a, 7c, d4, f3, 0, 0, 0, 0]
[2025-06-25T09:33:54Z INFO spdm_utils::doe_pci_cfg] Sent!

[2025-06-25T09:33:54Z INFO spdm_utils::doe_pci_cfg] Receiving message
[2025-06-25T09:33:54Z INFO spdm_utils::doe_pci_cfg] Received: [1, 0, 1, 0, 25, 0, 0, 0, 12, 60, 2, 0, 0, 0, 0, 0, a0, 4c, 8, d5, 8f, 60, fe, 7d, 56, 93, a3, cb, 16, dd, 34, 5c, 75, 7b, 65, 1, 27, 3f, e1, 3f, 0, 3b, d9, 2f, 1f, 45, 74, 86, 0, 0, f0, d, 46, 2a, b8, 6e, 45, 70, 62, f9, 3e, 75, 9d, 4, df, e8, 74, fc, 6e, 73, cf, b5, 82, f0, 5b, 25, 3e, a3, f3, d1, 15, 55, b2, 6e, 32, e8, c0, 6, fb, 92, f3, 38, b8, d7, 29, 5, 43, db, 22, 3e, 1c, 77, da, 2e, ed, a8, c8, f5, 74, 54, dd, b, 53, 7e, be, e4, 25, b9, d1, f4, 57, f2, b1, 31, 2c, d8, 8b, f0, 36, 58, fc, 3a, 55, ba, af, c5, d6, 8b, a9, 44, 6a, ac, b8, 37, 5d, 51, 0, 0]
libspdm_receive_spdm_response[0] msg SPDM_MEASUREMENTS(0x60), size (0x8c):
0000: 12 60 02 00 00 00 00 00 a0 4c 08 d5 8f 60 fe 7d 56 93 a3 cb 16 dd 34 5c 75 7b 65 01 27 3f e1 3f
0020: 00 3b d9 2f 1f 45 74 86 00 00 f0 0d 46 2a b8 6e 45 70 62 f9 3e 75 9d 04 df e8 74 fc 6e 73 cf b5
0040: 82 f0 5b 25 3e a3 f3 d1 15 55 b2 6e 32 e8 c0 06 fb 92 f3 38 b8 d7 29 05 43 db 22 3e 1c 77 da 2e
0060: ed a8 c8 f5 74 54 dd 0b 53 7e be e4 25 b9 d1 f4 57 f2 b1 31 2c d8 8b f0 36 58 fc 3a 55 ba af c5
0080: d6 8b a9 44 6a ac b8 37 5d 51 00 00
nonce (0x20) - a0 4c 08 d5 8f 60 fe 7d 56 93 a3 cb 16 dd 34 5c 75 7b 65 01 27 3f e1 3f 00 3b d9 2f 1f 45 74 86
signature (0x60):
0000: f0 0d 46 2a b8 6e 45 70 62 f9 3e 75 9d 04 df e8 74 fc 6e 73 cf b5 82 f0 5b 25 3e a3 f3 d1 15 55
0020: b2 6e 32 e8 c0 06 fb 92 f3 38 b8 d7 29 05 43 db 22 3e 1c 77 da 2e ed a8 c8 f5 74 54 dd 0b 53 7e
0040: be e4 25 b9 d1 f4 57 f2 b1 31 2c d8 8b f0 36 58 fc 3a 55 ba af c5 d6 8b a9 44 6a ac b8 37 5d 51
l1l2 hash - 95 26 fd 2c a5 3a 6e e9 e6 1e 29 de a6 28 45 1f 90 85 a5 b9 ed 65 09 a2 71 0a 77 f7 31 ca da 02 7a 94 2c 7f 11 d6 15 78 0a 0b 22 9b 94 28 68 83
LIBSPDM_ASSERT: /home/fvtthg506003/spdm-utils/third-party/libspdm/library/spdm_requester_lib/libspdm_req_get_measurements.c(81): context != NULL

Expectation: Expecting slot Id to 1 as we are passing argument --cert-slot-id 1. But noticed 00 in payload for slotID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions