Ticket #389 (closed defect: fixed)

NB! Read about ReportingBugs before filing a ticket!

Opened 8 months ago

Last modified 3 months ago

PKCS#11 module shouldn't fail if mlock doesn't work

Reported by: stefw Owned by: opensc-devel@…
Priority: normal Milestone:
Component: opensc Version: 0.12.2
Severity: normal Keywords: haspatch
Cc: Blocked By:
Blocking:

Description

Sometimes a process has already used mlock() and reaches the limits on the amount of memory that can be locked. In other cases, no memory can be locked at all.

Currently C_CreateObject fails when memory cannot be mlock()'d because caching of the PIN fails.

Attachments

0001-libopensc-Don-t-fail-to-allocate-memory-when-mlock-f.patch Download (7.3 KB) - added by stefw 8 months ago.
0002-libopensc-Add-paranoid-memory-setting-for-behavior-when-mlock-.patch Download (3.4 KB) - added by stefw 5 months ago.
Add setting for paranoid-memory

Change History

Changed 5 months ago by stefw

Add setting for paranoid-memory

comment:1 Changed 3 months ago by ludovic

  • Status changed from new to closed
  • Resolution set to fixed

Patches now applied in OpenSC/staging  https://github.com/OpenSC/OpenSC/pull/20

Note: See TracTickets for help on using tickets.