Hadoop Common
  1. Hadoop Common
  2. HADOOP-10522

JniBasedUnixGroupMapping mishandles errors

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      The mishandling of errors in the jni user-to-groups mapping modules can cause segmentation faults in subsequent calls. Here are the bugs:

      1) If hadoop_user_info_fetch() returns an error code that is not ENOENT, the error may not be handled at all. This bug was found by Chris Nauroth.

      2) In hadoop_user_info_fetch() and hadoop_group_info_fetch(), the global errno is directly used. This is not thread-safe and could be the cause of some failures that disappeared after enabling the big lookup lock.

      3) In the above methods, there is no limit on retries.

        Issue Links

          Activity

          Allen Wittenauer made changes -
          Fix Version/s 3.0.0 [ 12320357 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Kihwal Lee made changes -
          Link This issue breaks HADOOP-10527 [ HADOOP-10527 ]
          Kihwal Lee made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 3.0.0 [ 12320357 ]
          Fix Version/s 2.4.1 [ 12326695 ]
          Resolution Fixed [ 1 ]
          Kihwal Lee made changes -
          Target Version/s 2.5.0 [ 12326263 ] 2.4.1 [ 12326695 ]
          Kihwal Lee made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Assignee Kihwal Lee [ kihwal ]
          Kihwal Lee made changes -
          Field Original Value New Value
          Attachment hadoop-10522.patch [ 12640897 ]
          Kihwal Lee created issue -

            People

            • Assignee:
              Kihwal Lee
              Reporter:
              Kihwal Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development