[PATCH 0/2] Fix Memory Management Issue in `ssh-sk-helper` with External SK Libraries

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Hi,

Sometimes, users might find that  the `ssh-sk-helper` crashes after
enrolling a new key when using external SK libraries.

Currently, the memory returned by SK APIs is freed by the host, but
external libraries may have their own methods of handling memory. For
instance some external libraries are linked against a foreign libc
statically. As a result, the `ssh-sk-helper` would have issues if it
tries to free memory allocated by external libraries.

To resolve this problem, here are two patches:
    1 - A patch introduces new APIs to free memory allocated by 
    external libraries, helping to prevent unexpected memory-related
    behavior when using external SK libraries.
    2 - A patch adopts new APIs for bundled `sk-usbhid` and `sk-dummy`.

Thank you for your time and feedback.

Best regards,
Xavier Hsinyuan

------

Xavier Hsinyuan (2):
  Introduce new SK APIs for freeing memory
  Adopt new SecurityKey API for sk-usbhid and sk-dummy

 regress/misc/sk-dummy/sk-dummy.c | 35 +++++++++++++-
 sk-api.h                         | 11 ++++-
 sk-usbhid.c                      | 55 +++++++++++++++++++++
 ssh-sk.c                         | 83 ++++++++++++++------------------
 4 files changed, 136 insertions(+), 48 deletions(-)

-- 
2.39.5

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux