JDK-8194630 : GSS: Uninitialized cb->initiator_address when using channel binding with native kerberos
  • Type: Bug
  • Component: security-libs
  • Sub-Component: org.ietf.jgss:krb5
  • Affected Version: 8,9,10
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2017-12-22
  • Updated: 2018-06-28
  • Resolved: 2018-05-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11 b16Fixed
Description
FULL PRODUCT VERSION :
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Latest OpenJDK 9 master affected too.

ADDITIONAL OS VERSION INFORMATION :
Linux localhost.localdomain 4.14.6-300.fc27.x86_64 #1 SMP Thu Dec 14 15:31:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
When native kerberos/GSS is used (-Dsun.security.jgss.native=true) using channel binding without initAddr/acceptAddr will cause putting uninitialized "cb->initiator_address" (and potentially cb->acceptor_address too) on acceptSecContext into native kerberos library and crash of the JVM.

I was able to prepare patch for OpenJDK - see Workaround.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. use native kerberos library: -Dsun.security.jgss.native=true
2. set using ChannelBinding(byte[]) (without initAddr/acceptAddr) in gssContext
3. try to use this gssContext for negotiation

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Negotiation should be successful.
ACTUAL -
JVM will crash (because of using uninitialized cb->initiator_address) - or at least, the negotiation will fail because of wrong channel binding message checksum

ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fcb53e4dd51, pid=29888, tid=0x00007fcb548e5700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so.6+0x15ad51]  __memmove_avx_unaligned_erms+0x211
#
# Core dump written. Default location: /home/jkalina/work/tutorial-kerberos/reproducer-simple/core or core.29888
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00007fcb4c00a000):  JavaThread "main" [_thread_in_native, id=29889, stack(0x00007fcb547e5000,0x00007fcb548e6000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000000000001c3

Registers:
RAX=0x00007fcaa6737010, RBX=0x00000000498c8501, RCX=0x00007fcaa6737010, RDX=0x00000000498c8501
RSP=0x00007fcb548e3f88, RBP=0x00000000000001c3, RSI=0x00000000000001c3, RDI=0x00007fcaa6737010
R8 =0x00000000ffffffff, R9 =0x0000000000000000, R10=0x0000000000000022, R11=0x0000000000000246
R12=0x00007fcb4c0f1c48, R13=0x00007fcb4c0f1c60, R14=0x00007fcb4c0f1c70, R15=0x00007fcb4c0e9420
RIP=0x00007fcb53e4dd51, EFLAGS=0x0000000000010216, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007fcb548e3f88)
0x00007fcb548e3f88:   00007fcb34c96d2a 00007fcb548e41d0
0x00007fcb548e3f98:   00007fcb4c0f1c48 00000000498c8501
0x00007fcb548e3fa8:   00007fcb34c96d7a 0000000000000014
0x00007fcb548e3fb8:   00007fcb4c0f1c40 00007fcb4c0e9420
0x00007fcb548e3fc8:   00007fcb34c97122 0000000000000009
0x00007fcb548e3fd8:   00007fcb4c0f1c40 00007fcb4c0e9420
0x00007fcb548e3fe8:   00007fcb548e41b8 00007fcb4c0ff620
0x00007fcb548e3ff8:   00007fcb4c0fece0 00007fcb4c0e9420
0x00007fcb548e4008:   00007fcb34c971cc 00007fcb548e4150
0x00007fcb548e4018:   00007fcb4c0efe40 00007fcb548e40b0
0x00007fcb548e4028:   00007fcb34c9cc02 00007fcb548e43c0
0x00007fcb548e4038:   00007fcb548e45a0 0000000000000000
0x00007fcb548e4048:   0000003e4c078e80 00007fcb548e45c8
0x00007fcb548e4058:   00007fcb548e45c4 00007fcb548e4590
0x00007fcb548e4068:   00007fcb548e43d0 0000000000000000
0x00007fcb548e4078:   0000000000000000 00007fcb4c00a000
0x00007fcb548e4088:   00007fcb4c009030 00007fcb4c009070
0x00007fcb548e4098:   00007fcb4c009088 00007fcb4c009158
0x00007fcb548e40a8:   00000000000000d8 0000000000000000
0x00007fcb548e40b8:   0000000000000000 0000000000000000
0x00007fcb548e40c8:   0000000000000000 0000000000000000
0x00007fcb548e40d8:   0000000000000000 0000000000000000
0x00007fcb548e40e8:   0000000000000000 0000000000000000
0x00007fcb548e40f8:   0000000000000000 0000000000000000
0x00007fcb548e4108:   0000000000000000 0000000000000000
0x00007fcb548e4118:   0000000000000000 0000000000000000
0x00007fcb548e4128:   0000000000000000 0000000000000000
0x00007fcb548e4138:   0000000000000000 0000000000000000
0x00007fcb548e4148:   0000000000000000 0000000000000000
0x00007fcb548e4158:   0000000000000000 0000000000000000
0x00007fcb548e4168:   0000000000000000 0000000000000000
0x00007fcb548e4178:   0000000000000000 0000000000000000 

Instructions: (pc=0x00007fcb53e4dd51)
0x00007fcb53e4dd31:   00 00 77 bc c5 fe 7f 29 c5 fe 7f 71 e0 c5 fe 7f
0x00007fcb53e4dd41:   79 c0 c5 7e 7f 41 a0 c4 c1 7e 7f 23 c5 f8 77 c3
0x00007fcb53e4dd51:   c5 fe 6f 26 c5 fe 6f 6e 20 c5 fe 6f 76 40 c5 fe
0x00007fcb53e4dd61:   6f 7e 60 c5 7e 6f 44 16 e0 4c 8d 5c 17 e0 48 8d 

Register to memory mapping:

RAX=0x00007fcaa6737010 is an unknown value
RBX=0x00000000498c8501 is an unknown value
RCX=0x00007fcaa6737010 is an unknown value
RDX=0x00000000498c8501 is an unknown value
RSP=0x00007fcb548e3f88 is pointing into the stack for thread: 0x00007fcb4c00a000
RBP=0x00000000000001c3 is an unknown value
RSI=0x00000000000001c3 is an unknown value
RDI=0x00007fcaa6737010 is an unknown value
R8 =0x00000000ffffffff is an unknown value
R9 =0x0000000000000000 is an unknown value
R10=0x0000000000000022 is an unknown value
R11=0x0000000000000246 is an unknown value
R12=0x00007fcb4c0f1c48 is an unknown value
R13=0x00007fcb4c0f1c60 is an unknown value
R14=0x00007fcb4c0f1c70 is an unknown value
R15=0x00007fcb4c0e9420 is an unknown value


Stack: [0x00007fcb547e5000,0x00007fcb548e6000],  sp=0x00007fcb548e3f88,  free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0x15ad51]  __memmove_avx_unaligned_erms+0x211

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.security.jgss.wrapper.GSSLibStub.initContext(JJLorg/ietf/jgss/ChannelBinding;[BLsun/security/jgss/wrapper/NativeGSSContext;)[B+0
j  sun.security.jgss.wrapper.NativeGSSContext.initSecContext(Ljava/io/InputStream;I)[B+136
j  sun.security.jgss.GSSContextImpl.initSecContext(Ljava/io/InputStream;Ljava/io/OutputStream;)I+407
j  sun.security.jgss.GSSContextImpl.initSecContext([BII)[B+29
j  Reproducer.main([Ljava/lang/String;)V+108
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x00007fcb4c0c9000 JavaThread "Service Thread" daemon [_thread_blocked, id=29901, stack(0x00007fcb36865000,0x00007fcb36966000)]
  0x00007fcb4c0be000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=29900, stack(0x00007fcb36966000,0x00007fcb36a67000)]
  0x00007fcb4c0bc000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=29899, stack(0x00007fcb36a67000,0x00007fcb36b68000)]
  0x00007fcb4c0b9000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=29898, stack(0x00007fcb36b68000,0x00007fcb36c69000)]
  0x00007fcb4c0b7800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=29897, stack(0x00007fcb36c69000,0x00007fcb36d6a000)]
  0x00007fcb4c083800 JavaThread "Finalizer" daemon [_thread_blocked, id=29896, stack(0x00007fcb36d6a000,0x00007fcb36e6b000)]
  0x00007fcb4c07f000 JavaThread "Reference Handler" daemon [_thread_blocked, id=29895, stack(0x00007fcb36e6b000,0x00007fcb36f6c000)]
=>0x00007fcb4c00a000 JavaThread "main" [_thread_in_native, id=29889, stack(0x00007fcb547e5000,0x00007fcb548e6000)]

Other Threads:
  0x00007fcb4c077800 VMThread [stack: 0x00007fcb36f6c000,0x00007fcb3706d000] [id=29894]
  0x00007fcb4c0cc000 WatcherThread [stack: 0x00007fcb36764000,0x00007fcb36865000] [id=29902]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 PSYoungGen      total 73728K, used 2539K [0x000000076e380000, 0x0000000773580000, 0x00000007c0000000)
  eden space 63488K, 4% used [0x000000076e380000,0x000000076e5fae38,0x0000000772180000)
  from space 10240K, 0% used [0x0000000772b80000,0x0000000772b80000,0x0000000773580000)
  to   space 10240K, 0% used [0x0000000772180000,0x0000000772180000,0x0000000772b80000)
 ParOldGen       total 167936K, used 0K [0x00000006caa00000, 0x00000006d4e00000, 0x000000076e380000)
  object space 167936K, 0% used [0x00000006caa00000,0x00000006caa00000,0x00000006d4e00000)
 Metaspace       used 2915K, capacity 4486K, committed 4864K, reserved 1056768K
  class space    used 316K, capacity 386K, committed 512K, reserved 1048576K

Card table byte_map: [0x00007fcb50b97000,0x00007fcb51343000] byte_map_base: 0x00007fcb4d542000

Marking Bits: (ParMarkBitMap*) 0x00007fcb53cc5c80
 Begin Bits: [0x00007fcb20550000, 0x00007fcb242a8000)
 End Bits:   [0x00007fcb242a8000, 0x00007fcb28000000)

Polling page: 0x00007fcb54909000

CodeCache: size=245760Kb used=1102Kb max_used=1102Kb free=244657Kb
 bounds [0x00007fcb3d000000, 0x00007fcb3d270000, 0x00007fcb4c000000]
 total_blobs=268 nmethods=20 adapters=163
 compilation: enabled

Compilation events (10 events):
Event: 0.041 Thread 0x00007fcb4c0be000   14       3       java.lang.CharacterDataLatin1::getProperties (11 bytes)
Event: 0.041 Thread 0x00007fcb4c0be000 nmethod 14 0x00007fcb3d10fc90 code [0x00007fcb3d10fe00, 0x00007fcb3d10ff90]
Event: 0.042 Thread 0x00007fcb4c0be000   17       3       sun.misc.FDBigInteger::mult (64 bytes)
Event: 0.042 Thread 0x00007fcb4c0be000 nmethod 17 0x00007fcb3d110c90 code [0x00007fcb3d110e00, 0x00007fcb3d111090]
Event: 0.042 Thread 0x00007fcb4c0be000   18       3       sun.misc.FDBigInteger::<init> (30 bytes)
Event: 0.042 Thread 0x00007fcb4c0be000 nmethod 18 0x00007fcb3d111350 code [0x00007fcb3d1114c0, 0x00007fcb3d1116c8]
Event: 0.042 Thread 0x00007fcb4c0be000   19       3       sun.misc.FDBigInteger::mult (44 bytes)
Event: 0.042 Thread 0x00007fcb4c0be000 nmethod 19 0x00007fcb3d1117d0 code [0x00007fcb3d111960, 0x00007fcb3d111d58]
Event: 0.047 Thread 0x00007fcb4c0be000   20       3       java.lang.String::<init> (82 bytes)
Event: 0.047 Thread 0x00007fcb4c0be000 nmethod 20 0x00007fcb3d113110 code [0x00007fcb3d1132e0, 0x00007fcb3d1137d8]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (2 events):
Event: 0.016 Thread 0x00007fcb4c00a000 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x000000076e387ca8) thrown at [/HUDSON3/workspace/8-2-build-linux-amd64/jdk8u121/8372/hotspot/src/sh
Event: 0.016 Thread 0x00007fcb4c00a000 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x000000076e387f90) thrown at [/HUDSON3/workspace/8-2-build-linux-amd64/jdk8u121/8372/hotspot/src/share/vm/prims/jni.c

Events (10 events):
Event: 0.049 loading class javax/security/auth/Subject
Event: 0.049 loading class javax/security/auth/Subject done
Event: 0.049 loading class javax/security/auth/Subject$1
Event: 0.049 loading class javax/security/auth/Subject$1 done
Event: 0.053 loading class sun/security/jgss/GSSContextImpl
Event: 0.053 loading class com/sun/security/jgss/ExtendedGSSContext
Event: 0.053 loading class org/ietf/jgss/GSSContext
Event: 0.053 loading class org/ietf/jgss/GSSContext done
Event: 0.053 loading class com/sun/security/jgss/ExtendedGSSContext done
Event: 0.053 loading class sun/security/jgss/GSSContextImpl done


Dynamic libraries:
00400000-00401000 r-xp 00000000 fd:01 10882396                           /opt/Oracle-jdk-8u121/bin/java
00600000-00601000 rw-p 00000000 fd:01 10882396                           /opt/Oracle-jdk-8u121/bin/java
016df000-01700000 rw-p 00000000 00:00 0                                  [heap]
6caa00000-6d4e00000 rw-p 00000000 00:00 0 
6d4e00000-76e380000 ---p 00000000 00:00 0 
76e380000-773580000 rw-p 00000000 00:00 0 
773580000-7c0000000 ---p 00000000 00:00 0 
7c0000000-7c0080000 rw-p 00000000 00:00 0 
7c0080000-800000000 ---p 00000000 00:00 0 
7fcaa6737000-7fcaf0000000 rw-p 00000000 00:00 0 
7fcaf0000000-7fcaf0021000 rw-p 00000000 00:00 0 
7fcaf0021000-7fcaf4000000 ---p 00000000 00:00 0 
7fcaf8000000-7fcaf803e000 rw-p 00000000 00:00 0 
7fcaf803e000-7fcafc000000 ---p 00000000 00:00 0 
7fcafc000000-7fcafc021000 rw-p 00000000 00:00 0 
7fcafc021000-7fcb00000000 ---p 00000000 00:00 0 
7fcb00000000-7fcb0003e000 rw-p 00000000 00:00 0 
7fcb0003e000-7fcb04000000 ---p 00000000 00:00 0 
7fcb04000000-7fcb04021000 rw-p 00000000 00:00 0 
7fcb04021000-7fcb08000000 ---p 00000000 00:00 0 
7fcb08000000-7fcb08021000 rw-p 00000000 00:00 0 
7fcb08021000-7fcb0c000000 ---p 00000000 00:00 0 
7fcb0c84d000-7fcb14000000 r--p 00000000 fd:01 14295548                   /usr/lib/locale/locale-archive
7fcb14000000-7fcb14021000 rw-p 00000000 00:00 0 
7fcb14021000-7fcb18000000 ---p 00000000 00:00 0 
7fcb18000000-7fcb18021000 rw-p 00000000 00:00 0 
7fcb18021000-7fcb1c000000 ---p 00000000 00:00 0 
7fcb1c000000-7fcb1c021000 rw-p 00000000 00:00 0 
7fcb1c021000-7fcb20000000 ---p 00000000 00:00 0 
7fcb20550000-7fcb28000000 rw-p 00000000 00:00 0 
7fcb28000000-7fcb28021000 rw-p 00000000 00:00 0 
7fcb28021000-7fcb2c000000 ---p 00000000 00:00 0 
7fcb2c000000-7fcb2c021000 rw-p 00000000 00:00 0 
7fcb2c021000-7fcb30000000 ---p 00000000 00:00 0 
7fcb30000000-7fcb30021000 rw-p 00000000 00:00 0 
7fcb30021000-7fcb34000000 ---p 00000000 00:00 0 
7fcb34a6f000-7fcb34a8d000 r-xp 00000000 fd:01 13763833                   /usr/lib64/libgssrpc.so.4.2
7fcb34a8d000-7fcb34c8d000 ---p 0001e000 fd:01 13763833                   /usr/lib64/libgssrpc.so.4.2
7fcb34c8d000-7fcb34c8e000 r--p 0001e000 fd:01 13763833                   /usr/lib64/libgssrpc.so.4.2
7fcb34c8e000-7fcb34c8f000 rw-p 0001f000 fd:01 13763833                   /usr/lib64/libgssrpc.so.4.2
7fcb34c8f000-7fcb34ca9000 r-xp 00000000 fd:01 397571                     /usr/lib64/gssproxy/proxymech.so
7fcb34ca9000-7fcb34ea9000 ---p 0001a000 fd:01 397571                     /usr/lib64/gssproxy/proxymech.so
7fcb34ea9000-7fcb34eaa000 r--p 0001a000 fd:01 397571                     /usr/lib64/gssproxy/proxymech.so
7fcb34eaa000-7fcb34eab000 rw-p 0001b000 fd:01 397571                     /usr/lib64/gssproxy/proxymech.so
7fcb34eab000-7fcb34f2e000 r-xp 00000000 fd:01 13763978                   /usr/lib64/libpcre2-8.so.0.6.0
7fcb34f2e000-7fcb3512d000 ---p 00083000 fd:01 13763978                   /usr/lib64/libpcre2-8.so.0.6.0
7fcb3512d000-7fcb3512e000 r--p 00082000 fd:01 13763978                   /usr/lib64/libpcre2-8.so.0.6.0
7fcb3512e000-7fcb3512f000 rw-p 00083000 fd:01 13763978                   /usr/lib64/libpcre2-8.so.0.6.0
7fcb3512f000-7fcb35154000 r-xp 00000000 fd:01 13784096                   /usr/lib64/libselinux.so.1
7fcb35154000-7fcb35354000 ---p 00025000 fd:01 13784096                   /usr/lib64/libselinux.so.1
7fcb35354000-7fcb35355000 r--p 00025000 fd:01 13784096                   /usr/lib64/libselinux.so.1
7fcb35355000-7fcb35356000 rw-p 00026000 fd:01 13784096                   /usr/lib64/libselinux.so.1
7fcb35356000-7fcb35358000 rw-p 00000000 00:00 0 
7fcb35358000-7fcb3536b000 r-xp 00000000 fd:01 13779122                   /usr/lib64/libresolv-2.26.9000.so
7fcb3536b000-7fcb3556b000 ---p 00013000 fd:01 13779122                   /usr/lib64/libresolv-2.26.9000.so
7fcb3556b000-7fcb3556c000 r--p 00013000 fd:01 13779122                   /usr/lib64/libresolv-2.26.9000.so
7fcb3556c000-7fcb3556d000 rw-p 00014000 fd:01 13779122                   /usr/lib64/libresolv-2.26.9000.so
7fcb3556d000-7fcb3556f000 rw-p 00000000 00:00 0 
7fcb3556f000-7fcb35572000 r-xp 00000000 fd:01 13764197                   /usr/lib64/libkeyutils.so.1.6
7fcb35572000-7fcb35771000 ---p 00003000 fd:01 13764197                   /usr/lib64/libkeyutils.so.1.6
7fcb35771000-7fcb35772000 r--p 00002000 fd:01 13764197                   /usr/lib64/libkeyutils.so.1.6
7fcb35772000-7fcb35773000 rw-p 00000000 00:00 0 
7fcb35773000-7fcb35780000 r-xp 00000000 fd:01 13779136                   /usr/lib64/libkrb5support.so.0.1
7fcb35780000-7fcb35980000 ---p 0000d000 fd:01 13779136                   /usr/lib64/libkrb5support.so.0.1
7fcb35980000-7fcb35981000 r--p 0000d000 fd:01 13779136                   /usr/lib64/libkrb5support.so.0.1
7fcb35981000-7fcb35982000 rw-p 0000e000 fd:01 13779136                   /usr/lib64/libkrb5support.so.0.1
7fcb35982000-7fcb35985000 r-xp 00000000 fd:01 13763987                   /usr/lib64/libcom_err.so.2.1
7fcb35985000-7fcb35b84000 ---p 00003000 fd:01 13763987                   /usr/lib64/libcom_err.so.2.1
7fcb35b84000-7fcb35b85000 r--p 00002000 fd:01 13763987                   /usr/lib64/libcom_err.so.2.1
7fcb35b85000-7fcb35b86000 rw-p 00003000 fd:01 13763987                   /usr/lib64/libcom_err.so.2.1
7fcb35b86000-7fcb35bb7000 r-xp 00000000 fd:01 13763853                   /usr/lib64/libk5crypto.so.3.1
7fcb35bb7000-7fcb35db6000 ---p 00031000 fd:01 13763853                   /usr/lib64/libk5crypto.so.3.1
7fcb35db6000-7fcb35db8000 r--p 00030000 fd:01 13763853                   /usr/lib64/libk5crypto.so.3.1
7fcb35db8000-7fcb35db9000 rw-p 00032000 fd:01 13763853                   /usr/lib64/libk5crypto.so.3.1
7fcb35db9000-7fcb35e92000 r-xp 00000000 fd:01 13778736                   /usr/lib64/libkrb5.so.3.3
7fcb35e92000-7fcb36091000 ---p 000d9000 fd:01 13778736                   /usr/lib64/libkrb5.so.3.3
7fcb36091000-7fcb360a0000 r--p 000d8000 fd:01 13778736                   /usr/lib64/libkrb5.so.3.3
7fcb360a0000-7fcb360a2000 rw-p 000e7000 fd:01 13778736                   /usr/lib64/libkrb5.so.3.3
7fcb360c4000-7fcb36110000 r-xp 00000000 fd:01 13763822                   /usr/lib64/libgssapi_krb5.so.2.2
7fcb36110000-7fcb36310000 ---p 0004c000 fd:01 13763822                   /usr/lib64/libgssapi_krb5.so.2.2
7fcb36310000-7fcb36312000 r--p 0004c000 fd:01 13763822                   /usr/lib64/libgssapi_krb5.so.2.2
7fcb36312000-7fcb36313000 rw-p 0004e000 fd:01 13763822                   /usr/lib64/libgssapi_krb5.so.2.2
7fcb36313000-7fcb36344000 rw-p 00000000 00:00 0 
7fcb36344000-7fcb3635a000 r-xp 00000000 fd:01 10882480                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libnet.so
7fcb3635a000-7fcb3655a000 ---p 00016000 fd:01 10882480                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libnet.so
7fcb3655a000-7fcb3655b000 rw-p 00016000 fd:01 10882480                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libnet.so
7fcb3655b000-7fcb36564000 r-xp 00000000 fd:01 10882524                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libj2gss.so
7fcb36564000-7fcb36763000 ---p 00009000 fd:01 10882524                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libj2gss.so
7fcb36763000-7fcb36764000 rw-p 00008000 fd:01 10882524                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libj2gss.so
7fcb36764000-7fcb36765000 ---p 00000000 00:00 0 
7fcb36765000-7fcb36865000 rw-p 00000000 00:00 0 
7fcb36865000-7fcb36868000 ---p 00000000 00:00 0 
7fcb36868000-7fcb36966000 rw-p 00000000 00:00 0 
7fcb36966000-7fcb36969000 ---p 00000000 00:00 0 
7fcb36969000-7fcb36a67000 rw-p 00000000 00:00 0 
7fcb36a67000-7fcb36a6a000 ---p 00000000 00:00 0 
7fcb36a6a000-7fcb36b68000 rw-p 00000000 00:00 0 
7fcb36b68000-7fcb36b6b000 ---p 00000000 00:00 0 
7fcb36b6b000-7fcb36c69000 rw-p 00000000 00:00 0 
7fcb36c69000-7fcb36c6c000 ---p 00000000 00:00 0 
7fcb36c6c000-7fcb36d6a000 rw-p 00000000 00:00 0 
7fcb36d6a000-7fcb36d6d000 ---p 00000000 00:00 0 
7fcb36d6d000-7fcb36e6b000 rw-p 00000000 00:00 0 
7fcb36e6b000-7fcb36e6e000 ---p 00000000 00:00 0 
7fcb36e6e000-7fcb36f6c000 rw-p 00000000 00:00 0 
7fcb36f6c000-7fcb36f6d000 ---p 00000000 00:00 0 
7fcb36f6d000-7fcb38000000 rw-p 00000000 00:00 0 
7fcb38000000-7fcb38021000 rw-p 00000000 00:00 0 
7fcb38021000-7fcb3c000000 ---p 00000000 00:00 0 
7fcb3c006000-7fcb3c495000 rw-p 00000000 00:00 0 
7fcb3c495000-7fcb3c855000 ---p 00000000 00:00 0 
7fcb3c855000-7fcb3d000000 rw-p 00000000 00:00 0 
7fcb3d000000-7fcb3d270000 rwxp 00000000 00:00 0 
7fcb3d270000-7fcb4c000000 ---p 00000000 00:00 0 
7fcb4c000000-7fcb4c201000 rw-p 00000000 00:00 0 
7fcb4c201000-7fcb50000000 ---p 00000000 00:00 0 
7fcb50006000-7fcb50027000 rw-p 00000000 00:00 0 
7fcb50027000-7fcb50200000 r--s 03d3e000 fd:01 10882472                   /opt/Oracle-jdk-8u121/jre/lib/rt.jar
7fcb50200000-7fcb50276000 rw-p 00000000 00:00 0 
7fcb50276000-7fcb50277000 ---p 00000000 00:00 0 
7fcb50277000-7fcb50377000 rw-p 00000000 00:00 0 
7fcb50377000-7fcb50378000 ---p 00000000 00:00 0 
7fcb50378000-7fcb50478000 rw-p 00000000 00:00 0 
7fcb50478000-7fcb50479000 ---p 00000000 00:00 0 
7fcb50479000-7fcb50579000 rw-p 00000000 00:00 0 
7fcb50579000-7fcb5057a000 ---p 00000000 00:00 0 
7fcb5057a000-7fcb506cc000 rw-p 00000000 00:00 0 
7fcb506cc000-7fcb50b97000 ---p 00000000 00:00 0 
7fcb50b97000-7fcb50be9000 rw-p 00000000 00:00 0 
7fcb50be9000-7fcb510b3000 ---p 00000000 00:00 0 
7fcb510b3000-7fcb510dd000 rw-p 00000000 00:00 0 
7fcb510dd000-7fcb51342000 ---p 00000000 00:00 0 
7fcb51342000-7fcb5134d000 rw-p 00000000 00:00 0 
7fcb5134d000-7fcb51703000 ---p 00000000 00:00 0 
7fcb51703000-7fcb5171d000 r-xp 00000000 fd:01 10882503                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libzip.so
7fcb5171d000-7fcb5191d000 ---p 0001a000 fd:01 10882503                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libzip.so
7fcb5191d000-7fcb5191e000 rw-p 0001a000 fd:01 10882503                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libzip.so
7fcb5191e000-7fcb52123000 r--s 00000000 fd:01 262877                     /var/lib/sss/mc/passwd
7fcb52123000-7fcb5212b000 r-xp 00000000 fd:01 13772795                   /usr/lib64/libnss_sss.so.2
7fcb5212b000-7fcb5232a000 ---p 00008000 fd:01 13772795                   /usr/lib64/libnss_sss.so.2
7fcb5232a000-7fcb5232b000 r--p 00007000 fd:01 13772795                   /usr/lib64/libnss_sss.so.2
7fcb5232b000-7fcb5232c000 rw-p 00008000 fd:01 13772795                   /usr/lib64/libnss_sss.so.2
7fcb5232c000-7fcb52357000 r-xp 00000000 fd:01 10882530                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libjava.so
7fcb52357000-7fcb52556000 ---p 0002b000 fd:01 10882530                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libjava.so
7fcb52556000-7fcb52558000 rw-p 0002a000 fd:01 10882530                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libjava.so
7fcb52558000-7fcb52565000 r-xp 00000000 fd:01 10882481                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libverify.so
7fcb52565000-7fcb52764000 ---p 0000d000 fd:01 10882481                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libverify.so
7fcb52764000-7fcb52766000 rw-p 0000c000 fd:01 10882481                   /opt/Oracle-jdk-8u121/jre/lib/amd64/libverify.so
7fcb52766000-7fcb5276d000 r-xp 00000000 fd:01 13779124                   /usr/lib64/librt-2.26.9000.so
7fcb5276d000-7fcb5296c000 ---p 00007000 fd:01 13779124                   /usr/lib64/librt-2.26.9000.so
7fcb5296c000-7fcb5296d000 r--p 00006000 fd:01 13779124                   /usr/lib64/librt-2.26.9000.so
7fcb5296d000-7fcb5296e000 rw-p 00007000 fd:01 13779124                   /usr/lib64/librt-2.26.9000.so
7fcb5296e000-7fcb52b00000 r-xp 00000000 fd:01 13779098                   /usr/lib64/libm-2.26.9000.so
7fcb52b00000-7fcb52cff000 ---p 00192000 fd:01 13779098                   /usr/lib64/libm-2.26.9000.so
7fcb52cff000-7fcb52d00000 r--p 00191000 fd:01 13779098                   /usr/lib64/libm-2.26.9000.so
7fcb52d00000-7fcb52d01000 rw-p 00192000 fd:01 13779098                   /usr/lib64/libm-2.26.9000.so
7fcb52d01000-7fcb539cf000 r-xp 00000000 fd:01 10882534                   /opt/Oracle-jdk-8u121/jre/lib/amd64/server/libjvm.so
7fcb539cf000-7fcb53bcf000 ---p 00cce000 fd:01 10882534                   /opt/Oracle-jdk-8u121/jre/lib/amd64/server/libjvm.so
7fcb53bcf000-7fcb53ca8000 rw-p 00cce000 fd:01 10882534                   /opt/Oracle-jdk-8u121/jre/lib/amd64/server/libjvm.so
7fcb53ca8000-7fcb53cf3000 rw-p 00000000 00:00 0 
7fcb53cf3000-7fcb53ea5000 r-xp 00000000 fd:01 13779092                   /usr/lib64/libc-2.26.9000.so
7fcb53ea5000-7fcb540a4000 ---p 001b2000 fd:01 13779092                   /usr/lib64/libc-2.26.9000.so
7fcb540a4000-7fcb540a8000 r--p 001b1000 fd:01 13779092                   /usr/lib64/libc-2.26.9000.so
7fcb540a8000-7fcb540aa000 rw-p 001b5000 fd:01 13779092                   /usr/lib64/libc-2.26.9000.so
7fcb540aa000-7fcb540ae000 rw-p 00000000 00:00 0 
7fcb540ae000-7fcb540b1000 r-xp 00000000 fd:01 13779096                   /usr/lib64/libdl-2.26.9000.so
7fcb540b1000-7fcb542b0000 ---p 00003000 fd:01 13779096                   /usr/lib64/libdl-2.26.9000.so
7fcb542b0000-7fcb542b1000 r--p 00002000 fd:01 13779096                   /usr/lib64/libdl-2.26.9000.so
7fcb542b1000-7fcb542b2000 rw-p 00003000 fd:01 13779096                   /usr/lib64/libdl-2.26.9000.so
7fcb542b2000-7fcb542c7000 r-xp 00000000 fd:01 10881619                   /opt/Oracle-jdk-8u121/lib/amd64/jli/libjli.so
7fcb542c7000-7fcb544c7000 ---p 00015000 fd:01 10881619                   /opt/Oracle-jdk-8u121/lib/amd64/jli/libjli.so
7fcb544c7000-7fcb544c8000 rw-p 00015000 fd:01 10881619                   /opt/Oracle-jdk-8u121/lib/amd64/jli/libjli.so
7fcb544c8000-7fcb544e1000 r-xp 00000000 fd:01 13779120                   /usr/lib64/libpthread-2.26.9000.so
7fcb544e1000-7fcb546e1000 ---p 00019000 fd:01 13779120                   /usr/lib64/libpthread-2.26.9000.so
7fcb546e1000-7fcb546e2000 r--p 00019000 fd:01 13779120                   /usr/lib64/libpthread-2.26.9000.so
7fcb546e2000-7fcb546e3000 rw-p 0001a000 fd:01 13779120                   /usr/lib64/libpthread-2.26.9000.so
7fcb546e3000-7fcb546e7000 rw-p 00000000 00:00 0 
7fcb546e7000-7fcb5470c000 r-xp 00000000 fd:01 13766661                   /usr/lib64/ld-2.26.9000.so
7fcb54715000-7fcb547e5000 rw-p 00000000 00:00 0 
7fcb547e5000-7fcb547e8000 ---p 00000000 00:00 0 
7fcb547e8000-7fcb548e8000 rw-p 00000000 00:00 0 
7fcb548f9000-7fcb54900000 r--s 00000000 fd:01 13894438                   /usr/lib64/gconv/gconv-modules.cache
7fcb54900000-7fcb54908000 rw-s 00000000 00:29 1649541                    /tmp/hsperfdata_jkalina/29888
7fcb54908000-7fcb54909000 rw-p 00000000 00:00 0 
7fcb54909000-7fcb5490a000 r--p 00000000 00:00 0 
7fcb5490a000-7fcb5490c000 rw-p 00000000 00:00 0 
7fcb5490c000-7fcb5490d000 r--p 00025000 fd:01 13766661                   /usr/lib64/ld-2.26.9000.so
7fcb5490d000-7fcb5490e000 rw-p 00026000 fd:01 13766661                   /usr/lib64/ld-2.26.9000.so
7fcb5490e000-7fcb5490f000 rw-p 00000000 00:00 0 
7ffe4791b000-7ffe4793d000 rw-p 00000000 00:00 0                          [stack]
7ffe47962000-7ffe47965000 r--p 00000000 00:00 0                          [vvar]
7ffe47965000-7ffe47967000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

VM Arguments:
jvm_args: -Djavax.security.auth.useSubjectCredsOnly=false -Dsun.security.jgss.lib=/usr/lib64/libgssapi_krb5.so.2.2 -Dsun.security.jgss.native=true -Dsun.security.nativegss.debug=true -Dsun.security.krb5.debug=true -Dsun.security.jgss.debug=true -Djava.security.krb5.conf=/home/jkalina/work/tutorial-kerberos/kerberos-using-apacheds/krb5.conf 
java_command: Reproducer
java_class_path (initial): .
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/opt/Oracle-jdk-8u121/
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/jkalina/.composer/vendor/bin:/home/jkalina/.local/bin:/home/jkalina/bin
USERNAME=jkalina
SHELL=/bin/bash
DISPLAY=:0

Signal Handlers:
SIGSEGV: [libjvm.so+0xac78c0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xac78c0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x920ac0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x920ac0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x920ac0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x920ac0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x922300], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: [libjvm.so+0x923700], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGINT: [libjvm.so+0x923700], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGTERM: [libjvm.so+0x923700], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGQUIT: [libjvm.so+0x923700], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO


---------------  S Y S T E M  ---------------

OS:Fedora release 27 (Twenty Seven)

uname:Linux 4.14.6-300.fc27.x86_64 #1 SMP Thu Dec 14 15:31:24 UTC 2017 x86_64
libc:glibc 2.26.9000 NPTL 2.26.9000 
rlimit: STACK 8192k, CORE infinity, NPROC 62696, NOFILE 4096, AS infinity
load average:1.22 1.07 0.84

/proc/meminfo:
MemTotal:       16075724 kB
MemFree:          605472 kB
MemAvailable:    9640728 kB
Buffers:          480612 kB
Cached:          8385848 kB
SwapCached:            0 kB
Active:          8434184 kB
Inactive:        6069916 kB
Active(anon):    4790252 kB
Inactive(anon):   979848 kB
Active(file):    3643932 kB
Inactive(file):  5090068 kB
Unevictable:          32 kB
Mlocked:              32 kB
SwapTotal:       8105980 kB
SwapFree:        8105980 kB
Dirty:              3944 kB
Writeback:             0 kB
AnonPages:       5637776 kB
Mapped:           693480 kB
Shmem:            764916 kB
Slab:             728768 kB
SReclaimable:     641540 kB
SUnreclaim:        87228 kB
KernelStack:       23088 kB
PageTables:        98732 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    16143840 kB
Committed_AS:   19586944 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:     14336 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      491616 kB
DirectMap2M:    13828096 kB
DirectMap1G:     3145728 kB


CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 142 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, rtm, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx

/proc/cpuinfo:
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 142
model name	: Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
stepping	: 9
microcode	: 0x62
cpu MHz		: 2900.000
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs		:
bogomips	: 5808.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 142
model name	: Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
stepping	: 9
microcode	: 0x62
cpu MHz		: 2900.000
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs		:
bogomips	: 5808.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 142
model name	: Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
stepping	: 9
microcode	: 0x62
cpu MHz		: 2900.000
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs		:
bogomips	: 5808.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 142
model name	: Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
stepping	: 9
microcode	: 0x62
cpu MHz		: 2900.000
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs		:
bogomips	: 5808.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:



Memory: 4k page, physical 16075724k(605472k free), swap 8105980k(8105980k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for linux-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 16:36:53 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Fri Dec 22 17:16:20 2017
elapsed time: 0 seconds (0d 0h 0m 0s)


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import org.ietf.jgss.ChannelBinding;
import org.ietf.jgss.GSSContext;
import org.ietf.jgss.GSSCredential;
import org.ietf.jgss.GSSManager;
import org.ietf.jgss.GSSName;
import org.ietf.jgss.Oid;

class Reproducer {
    public static void main(String[] args) throws Exception {

        Oid KERBEROS_V5 = new Oid("1.2.840.113554.1.2.2");
        GSSManager manager = GSSManager.getInstance();
        GSSName name = manager.createName("remote/localhost@JBOSS.ORG", GSSName.NT_USER_NAME, KERBEROS_V5);

        GSSCredential credential = manager.createCredential(name, GSSCredential.INDEFINITE_LIFETIME, new Oid[]{KERBEROS_V5}, GSSCredential.INITIATE_AND_ACCEPT);

        GSSContext serverContext = manager.createContext(credential);
        GSSContext clientContext = manager.createContext(name, KERBEROS_V5, credential, GSSContext.INDEFINITE_LIFETIME);

        // using channel binding without initAddr/acceptAddr causes SIGSEGV without patch
        ChannelBinding cb = new ChannelBinding("channel-binding-data".getBytes());
        serverContext.setChannelBinding(cb);
        clientContext.setChannelBinding(cb);

        byte[] token = new byte[0];
        token = clientContext.initSecContext(token, 0, token.length);
        token = serverContext.acceptSecContext(token, 0, token.length);
        token = clientContext.initSecContext(token, 0, token.length);

        System.out.println("client established: " + clientContext.isEstablished());
        System.out.println("server established: " + serverContext.isEstablished());
    }
}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
I was able to fix this for OpenJDK (9, master branch) using following patch:

diff --git a/src/java.security.jgss/share/native/libj2gss/GSSLibStub.c b/src/java.security.jgss/share/native/libj2gss/GSSLibStub.c
--- a/src/java.security.jgss/share/native/libj2gss/GSSLibStub.c
+++ b/src/java.security.jgss/share/native/libj2gss/GSSLibStub.c
@@ -169,6 +169,11 @@
   // initialize addrtype in CB first
   cb->initiator_addrtype = GSS_C_AF_NULLADDR;
   cb->acceptor_addrtype = GSS_C_AF_NULLADDR;
+  // addresses needs to be initialized to empty
+  cb->initiator_address.length = 0;
+  cb->initiator_address.value = NULL;
+  cb->acceptor_address.length = 0;
+  cb->acceptor_address.value = NULL;
 
   /* set up initiator address */
   jinetAddr = (*env)->CallObjectMethod(env, jcb,


Comments
8194630: Uninitialized initiator_address in native GSS Summary: Zeroized the initiator/acceptor_address in gss_channel_bindings_t Reviewed-by: valeriep Contributed-by: Jan Kalina <jkalina@redhat.com>
24-05-2018