[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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content