IBM Support

IV53041: PAM LIBPAM.A LEAKS MEMORY

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When an application continuously calls into
    pam_authenticate with explicit conv routine
    being called to prompt, the operating system
    will eventually kill the process because
    memory becomes exhausted. This is
    because PAM libpam.a is not releasing
    allocated memory.
    

Local fix

Problem summary

  • Application which calls pam_authenticate function in loop
    causes the crash with following stack.
    
    malloc_y(0x10, 0x0, 0x9001000a0071ee0, 0x9001000a00043a0,
    0xffffffffffede80, 0x1, 0x0, 0x11005a110) at 0x900000000041dbc
    malloc_common@AF103_87(??) at 0x900000000029f8c
    malloc(??) at 0x900000000029d0c
    calloc_common(??, ??) at 0x9000000000293dc
    pam_framework_utils.__pam_input_output(??, ??, ??, ??, ??)
    at 0x900000004198d50
    pam_get_user(??, ??, ??) at 0x900000004197a70
    pam_sm_authenticate(??, ??, ??, ??) at 0x90000000418fa80
    pam_authenticate(??, ??) at 0x900000004196ac8
    .() at 0x100171720
    

Problem conclusion

  • The crash is due to a memory leak in pam_authenticate function,
    the memory leak has been resolved using this.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV53041

  • Reported component name

    AIX 5.3 EXT SUP

  • Reported component ID

    5765G0399

  • Reported release

    53E

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2013-12-09

  • Closed date

    2013-12-09

  • Last modified date

    2013-12-09

  • APAR is sysrouted FROM one or more of the following:

    IV45815

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AIX 5.3 EXT SUP

  • Fixed component ID

    5765G0399

Applicable component levels

  • R53E PSY

       UP

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11P","label":"APARs - AIX 5.3 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"53E","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 December 2013