Skip to content

TLS client handshake with ECDHE-SM2-X causes coredump under multi-core pressure testing #96

Open
@wxy279

Description

@wxy279

Hi,
I’m currently developing a TLS client based on IPP-CP. When using RSA for handshake, everything works fine even under pressure testing with multiple cores (e.g., 2 cores achieve around 10,000 TPS per second without issues).
However, when I switch to SM2 for handshake, I encounter a problem: under single-core pressure testing, things look okay (about 500 TPS sustained for 150 seconds). But when I enable two cores, the program coredumps. The stack trace in the coredump appears incorrect and seems to indicate a memory corruption (possibly out-of-bounds memory write).
The CPU on the test device is Intel(R) Xeon(R) Silver 4314.
I’d like to ask: are there any special considerations or known issues in the SM2 handshake implementation when used in multi-core environments?
Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions