[RHEL 5.4] nfsd dereferences uninitialized list head on error exit in nfsd4_list_rec_dir()

Solution Verified - Updated -

Issue

  • In nfsd4_list_rec_dir(), if the dentry_open() returns an error,  'goto out' statement skips 'INIT_LIST_HEAD(dentries)'.
  • That results in panic or hang in the while statement at 'out:' label, because nfsd dereference uninitialized list pointers.

Environment

  • Red Hat Enterprise Linux 5 Update 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.