System panic in an XFS code path (rb_erase) following VxFS ACL warning: "refcount_t: underflow; use-after-free" on InfoScale 9.0.1

book

Article ID: 1000766366

calendar_today

Updated On:

Description

A Linux server running InfoScale 9.0.1 may panic and reboot. 

  • The panic stack shows XFS kernel functions. 
  • That can make it look like an XFS or OS problem, even though a VxFS issue can cause it.
  • vxfs worker thread stack shows the refcount underflow warning as below
  • refcount_t: underflow; use-after-free.
  • WARNING: ... at lib/refcount.c:28 refcount_warn_saturate+...

Cause

  • A known issue exists in VxFS regarding how cached ACLs are released when inodes are reclaimed/freed from memory:
  • A cached ACL structure can be decremented/released twice, triggering a refcount_t: underflow; use-after-free condition.
  • This double-release corrupts kernel memory structures (slab / memory pages).
  • Subsequent kernel operations by unrelated subsystems—in this case, XFS manipulating red-black trees via rb_erase—encounter the corrupted memory and trigger a kernel panic.
  • The appearance of the warning "refcount_t: underflow; use-after-free" associated with VxFS call traces is the primary indicator that memory corruption originated in VxFS.

Resolution

  • This defect is formally resolved under Incident 4190089.
  • Recommended Upgrade:
    Upgrade to InfoScale 9.0.2 or later releases where the fix is integrated.
  • Patch Workaround / Interim Fix:
    Apply the latest available InfoScale 9.0 maintenance patch containing Incident 4190089.

Issue/Introduction

A Linux server running InfoScale 9.0.1 may experience an unexpected kernel panic and reboot.

Although the crash dump and panic stack point to native Linux XFS kernel functions (such as rb_erase), the underlying root cause is kernel memory corruption triggered by an earlier VxFS Access Control List (ACL) double-free issue.