IBM Support

IV64477: AIX NAMEFS OVER AUTOFS MOUNTS COULD CAUSE SYSTEM CRASH APPLIES TO AIX 6100-08

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • AIX NFS client with automount setup could crash system
    if a namefs mount over autofs is triggered. This happens
    if the NFS server does not respond to the mount operation
    thereby causing the namefs over autofs (instead of namefs
    over NFS over autofs).
    .
    The crash is due to stack overflow which in turn is due
    to
    an endless VNOP calls between autofs and LFS/NAMEFS.
    .
    Stack trace could look like (the VNOP operation could be
    different):
    
    (0)> f
    pvthread+02AE00 STACK:
    [07BB2720]auto_dprint+000000 (0000000000000004,
    0000000007BC8BD0,
       0000000002AE00BD, F100011009668850, F1000110080FD910,
    0000000007BC55F0,
       F100011009668850, 0000000007BCA608)
    [07BBDDA8]auto_trigger_mount+0000E8 (??, ??, ??)
    [07BC2DBC]auto_setattr+00007C (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [07BC4174]VOP_SETATTR+0002B4 (??, ??, ??, ??)
    [07BC2F0C]auto_setattr+0001CC (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [07BC4174]VOP_SETATTR+0002B4 (??, ??, ??, ??)
    [07BC2F0C]auto_setattr+0001CC (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [07BC4174]VOP_SETATTR+0002B4 (??, ??, ??, ??)
    [07BC2F0C]auto_setattr+0001CC (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [07BC4174]VOP_SETATTR+0002B4 (??, ??, ??, ??)
    [07BC2F0C]auto_setattr+0001CC (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [07BC4174]VOP_SETATTR+0002B4 (??, ??, ??, ??)
    [07BC2F0C]auto_setattr+0001CC (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [07BC4174]VOP_SETATTR+0002B4 (??, ??, ??, ??)
    [07BC2F0C]auto_setattr+0001CC (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [07BC4174]VOP_SETATTR+0002B4 (??, ??, ??, ??)
    [07BC2F0C]auto_setattr+0001CC (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    [07BC4174]VOP_SETATTR+0002B4 (??, ??, ??, ??)
    [07BC2F0C]auto_setattr+0001CC (??, ??, ??, ??)
    [07BAA04C]aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
    [005C36A8]vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    ..
    ...
    

Local fix

  • Do not use namefs mounts over autofs triggered paths.
    

Problem summary

  • A system crash with a similar stack trace
    (0)> f
    pvthread+02AE00 STACK:
     07BB2720 auto_dprint+000000 (0000000000000004,
    0000000007BC8BD0,
    0000000002AE00BD, F100011009668850, F1000110080FD910,
    0000000007BC55F0,
    F100011009668850, 0000000007BCA608)
     07BBDDA8 auto_trigger_mount+0000E8 (??, ??, ??)
     07BC2DBC auto_setattr+00007C (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     07BC4174 VOP_SETATTR+0002B4 (??, ??, ??, ??)
     07BC2F0C auto_setattr+0001CC (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     07BC4174 VOP_SETATTR+0002B4 (??, ??, ??, ??)
     07BC2F0C auto_setattr+0001CC (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     07BC4174 VOP_SETATTR+0002B4 (??, ??, ??, ??)
     07BC2F0C auto_setattr+0001CC (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     07BC4174 VOP_SETATTR+0002B4 (??, ??, ??, ??)
     07BC2F0C auto_setattr+0001CC (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     07BC4174 VOP_SETATTR+0002B4 (??, ??, ??, ??)
     07BC2F0C auto_setattr+0001CC (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     07BC4174 VOP_SETATTR+0002B4 (??, ??, ??, ??)
     07BC2F0C auto_setattr+0001CC (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     07BC4174 VOP_SETATTR+0002B4 (??, ??, ??, ??)
     07BC2F0C auto_setattr+0001CC (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
     07BC4174 VOP_SETATTR+0002B4 (??, ??, ??, ??)
     07BC2F0C auto_setattr+0001CC (??, ??, ??, ??)
     07BAA04C aix2onc_setattr+00026C (??, ??, ??, ??, ??, ??)
     005C36A8 vnop_setattr+000308 (??, ??, ??, ??, ??, ??)
    ..
    

Problem conclusion

  • In auto_setattr(), check if namefs mount tries to sit
    on top of autofs and return ELOOP
    

Temporary fix

Comments

  • 6100-08 - use AIX APAR IV64477
    6100-09 - use AIX APAR IV63688
    7100-02 - use AIX APAR IV62312
    7100-03 - use AIX APAR IV63673
    

APAR Information

  • APAR number

    IV64477

  • Reported component name

    AIX 610 STD EDI

  • Reported component ID

    5765G6200

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2014-09-02

  • Closed date

    2014-09-02

  • Last modified date

    2015-01-21

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

    IV62312

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

Fix information

  • Fixed component name

    AIX 610 STD EDI

  • Fixed component ID

    5765G6200

Applicable component levels

  • R610 PSY U867346

       UP15/01/18 I 1000

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSLLZP","label":"AIX Standard 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":"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":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems 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":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems 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":"","label":""}}]

Document Information

Modified date:
21 January 2015