IBM Support

IJ37542: ON LINUX KERNEL 3.10 OR HIGHER, O_TRUNC OPEN FLAG MAY BE IGNORED WHEN OPEN() IS INVOKED WITH THE O_CREAT FLAG

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

  • On linux kernel 3.10 or higher,  if the O_TRUNC flag is
    used and the file has been opened already,
    the O_TRUNC flag may be incorrectly ignored.
    

Local fix

  • Avoid using open() with O_CREAT and O_TRUNC flag
    

Problem summary

  • On linux kernel 3.10 or higher,  if the O_TRUNC flag is
    used and the file has been opened already,
    the O_TRUNC flag may be incorrectly ignored.
    

Problem conclusion

  • This problem is fixed in 5.1.3
    To see all Spectrum Scale APARs and
    their respective fix solutions refer to page
    https://public.dhe.ibm.com/storage/spectrumscale/spectrum_scale_
    apars.html
    
    Benefits of the solution:
    Ensure O_TRUNC flag is honored when used
    together with O_CREAT on open() calls.
    
    Work Around:
    Avoid using open() with O_CREAT and O_TRUNC flag
    
    Problem trigger:
    Using open() with O_CREAT and O_TRUNC flag on a
    system with linux kernel 3.10 or higher.
    
    Symptom:  Unexpected Results/Behavior
    
    Platforms affected:  ALL Linux OS environments
    
    Functional Area affected:  All Scale Users
    
    Customer Impact: Critical
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ37542

  • Reported component name

    SPEC SCALE STD

  • Reported component ID

    5737F33AP

  • Reported release

    512

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-02-09

  • Closed date

    2022-02-09

  • Last modified date

    2022-03-07

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

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

Fix information

  • Fixed component name

    SPEC SCALE STD

  • Fixed component ID

    5737F33AP

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"STXKQY"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"512","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

Modified date:
08 March 2022