IBM Support

IZ78704: UNP_DISCONNECT CRASH DUE TO INCORRECT SOCKET REFERENCE COUNT APPLIES TO AIX 6100-05

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Crash in unp_disconnect due to socket reference count not
    being incremented and decremented where it should be. As
    a result, the socket and unpcb that hangs from it  can be
    freed while still being accessed by another thread
    (dangling reference).
    
    The stack is as follows:
    
    (0)> f
    pvthread+01C900 STACK:
    [004081C0]unp_disconnect@AF28_10+000020
    (F100070000C88C80,
    DEADBEEFDEADBEEF [??])
    [00407F2C]unp_detach+00014C (??)
    [004064DC]uipc_usrreq+00033C (??, ??, ??, ??, ??)
    [004286FC]soclose2+00031C (??, ??)
    [0042A2B0]soclose+000010 (??)
    [00433EC4]soo_close+000224 (??)
    [00433EC4]soo_close+000224 (??)
    [0054BB04]closef+000064 (??)
    [00497838]closefd+0000F8 (??, ??)
    [005A8898]fs_exit+0000F8 ()
    [0025B188]kexitx+000428 (??)
    [000D484C]kexit+00008C ()
    [kdb_get_virtual_memory] no real storage @
    FFFFFFFF3FFFE60
    

Local fix

Problem summary

  • System may crash due to accessing a deallocated unix domain
    socket, which could happen due to race windows in which
    socket locks are temporarily unlocked.
    

Problem conclusion

  • Add proper serialization to unix domain sockets to prevent
    race conditions in which unix domain sockets can be freed
    while still being accessed from other threads.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ78704

  • Reported component name

    AIX 610 STD EDI

  • Reported component ID

    5765G6200

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2010-07-02

  • Closed date

    2010-07-02

  • Last modified date

    2013-03-28

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

    IZ72397

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

    U838356

Fix information

  • Fixed component name

    AIX 610 STD EDI

  • Fixed component ID

    5765G6200

Applicable component levels

  • R610 PSY U838356

       UP10/08/20 I 1000

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SG11Q","label":"AIX 6.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSMV87","label":"AIX 6.1 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSAUMY","label":"IBM AIX Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SG11Q","label":"AIX 6.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SG11R","label":"APARs - AIX 7.1 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
17 December 2021