From eeded9a07772c386b36a652cef3252445d26308c Mon Sep 17 00:00:00 2001 From: Richard Reingruber Date: Thu, 26 Nov 2026 16:56:29 +0000 Subject: [PATCH 1/7] 8385658: Debug code in frame::patch_pc() doesn't initialize on_heap info Reviewed-by: mdoerr Backport-of: e5d8e332050854da0c1b635df57e13bb4d920c06 --- src/hotspot/cpu/ppc/frame_ppc.cpp | 6 +++--- src/hotspot/cpu/x86/frame_x86.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hotspot/cpu/ppc/frame_ppc.cpp b/src/hotspot/cpu/ppc/frame_ppc.cpp index 6b6a792117d4..7d2e22b5965d 100644 --- a/src/hotspot/cpu/ppc/frame_ppc.cpp +++ b/src/hotspot/cpu/ppc/frame_ppc.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2012, 2025 SAP SE. All rights reserved. + * Copyright (c) 2000, 2026, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2026 SAP SE. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -319,7 +319,7 @@ void frame::patch_pc(Thread* thread, address pc) { #ifdef ASSERT { - frame f(this->sp(), pc, this->unextended_sp()); + frame f(sp(), unextended_sp(), fp(), pc, cb(), oop_map(), is_heap_frame()); assert(f.is_deoptimized_frame() == this->is_deoptimized_frame() && f.pc() == this->pc() && f.raw_pc() == this->raw_pc(), "must be (f.is_deoptimized_frame(): %d this->is_deoptimized_frame(): %d " "f.pc(): " INTPTR_FORMAT " this->pc(): " INTPTR_FORMAT " f.raw_pc(): " INTPTR_FORMAT " this->raw_pc(): " INTPTR_FORMAT ")", diff --git a/src/hotspot/cpu/x86/frame_x86.cpp b/src/hotspot/cpu/x86/frame_x86.cpp index b9a2ef35f10e..d1e28b5e3446 100644 --- a/src/hotspot/cpu/x86/frame_x86.cpp +++ b/src/hotspot/cpu/x86/frame_x86.cpp @@ -299,7 +299,7 @@ void frame::patch_pc(Thread* thread, address pc) { #ifdef ASSERT { - frame f(this->sp(), this->unextended_sp(), this->fp(), pc); + frame f(sp(), unextended_sp(), fp(), pc, cb(), oop_map(), is_heap_frame()); assert(f.is_deoptimized_frame() == this->is_deoptimized_frame() && f.pc() == this->pc() && f.raw_pc() == this->raw_pc(), "must be (f.is_deoptimized_frame(): %d this->is_deoptimized_frame(): %d " "f.pc(): " INTPTR_FORMAT " this->pc(): " INTPTR_FORMAT " f.raw_pc(): " INTPTR_FORMAT " this->raw_pc(): " INTPTR_FORMAT ")", From 60afbce4837fea450b31588ba30f36cfc7ba2aff Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Fri, 27 Nov 2026 07:37:12 +0000 Subject: [PATCH 2/7] 8397507: ProcessPath.c replace ALLOC und REALLOC macros Backport-of: 203378f623b4d683eaf44d4ad2fd0d91a42fc556 --- .../native/libawt/java2d/loops/ProcessPath.c | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/java.desktop/share/native/libawt/java2d/loops/ProcessPath.c b/src/java.desktop/share/native/libawt/java2d/loops/ProcessPath.c index 4022cb85bd45..86146ec7f183 100644 --- a/src/java.desktop/share/native/libawt/java2d/loops/ProcessPath.c +++ b/src/java.desktop/share/native/libawt/java2d/loops/ProcessPath.c @@ -1723,17 +1723,6 @@ jboolean ProcessPath(ProcessHandler* hnd, return JNI_TRUE; } -/* TODO Add checking of the result of the malloc/realloc functions to handle - * out of memory error and don't leak earlier allocated data - */ - - -#define ALLOC(ptr, type, n) \ - ptr = (type *)malloc((n)*sizeof(type)) -#define REALLOC(ptr, type, n) \ - ptr = (type *)realloc(ptr, (n)*sizeof(type)) - - struct _Edge; typedef struct _Point { @@ -1980,12 +1969,18 @@ void FillPolygon(ProcessHandler* hnd, if (n <=1) return; - ALLOC(yHash, Point*, hashSize); + yHash = (Point**) malloc(hashSize * sizeof(Point*)); + if (yHash == NULL) return; + for (k = 0; k < hashSize; k++) { yHash[k] = NULL; } - ALLOC(active, Edge, n); + active = (Edge*) malloc(n * sizeof(Edge)); + if (active == NULL) { + free(yHash); + return; + } /* Creating double linked list (prev, next links) describing path order and * hash table with points which fall between scanlines. nextByY link is From 6793a4947df033bcdd2d2df73b8c44ee173f72b0 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Fri, 27 Nov 2026 07:42:18 +0000 Subject: [PATCH 3/7] 8395929: Change the exception texts in SmtpClient and FtpClient to something mentioning LF/newline AND CR after JDK-8383756 Backport-of: 1066596263d9f7b6520521b4c08e8929abcaa9e6 --- src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java | 2 +- src/java.base/share/classes/sun/net/smtp/SmtpClient.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java b/src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java index 1951dbc925a1..6748c3d03a4c 100644 --- a/src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java +++ b/src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java @@ -529,7 +529,7 @@ private boolean issueCommand(String cmd) throws IOException, if (cmd.indexOf('\n') != -1 || cmd.indexOf('\r') != -1) { sun.net.ftp.FtpProtocolException ex = new sun.net.ftp.FtpProtocolException("Illegal FTP command"); - ex.initCause(new IllegalArgumentException("Illegal carriage return")); + ex.initCause(new IllegalArgumentException("Illegal carriage return or line feed")); throw ex; } sendServer(cmd + "\r\n"); diff --git a/src/java.base/share/classes/sun/net/smtp/SmtpClient.java b/src/java.base/share/classes/sun/net/smtp/SmtpClient.java index 73968ddf1926..c8807b645b3a 100644 --- a/src/java.base/share/classes/sun/net/smtp/SmtpClient.java +++ b/src/java.base/share/classes/sun/net/smtp/SmtpClient.java @@ -76,7 +76,7 @@ private void toCanonical(String s) throws IOException { public void to(String s) throws IOException { if (s.indexOf('\n') != -1 || s.indexOf('\r') != -1) { throw new IOException("Illegal SMTP command", - new IllegalArgumentException("Illegal carriage return")); + new IllegalArgumentException("Illegal carriage return or line feed")); } int st = 0; int limit = s.length(); @@ -122,7 +122,7 @@ else if (st == pos) public void from(String s) throws IOException { if (s.indexOf('\n') != -1 || s.indexOf('\r') != -1) { throw new IOException("Illegal SMTP command", - new IllegalArgumentException("Illegal carriage return")); + new IllegalArgumentException("Illegal carriage return or line feed")); } if (s.startsWith("<")) { issueCommand("mail from: " + s + "\r\n", 250); From 133b3e43a18b00ecb2d5f6bda12cac247ea31528 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Fri, 27 Nov 2026 07:43:50 +0000 Subject: [PATCH 4/7] 8392559: [GCC static analyzer] function methodSignature should check for JVMTI errors Backport-of: 8610e806260f4eec6d98a5b418e4a1bc11a9a3cb --- src/jdk.jdwp.agent/share/native/libjdwp/util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jdk.jdwp.agent/share/native/libjdwp/util.c b/src/jdk.jdwp.agent/share/native/libjdwp/util.c index 45de2ba7b7aa..d8675499e314 100644 --- a/src/jdk.jdwp.agent/share/native/libjdwp/util.c +++ b/src/jdk.jdwp.agent/share/native/libjdwp/util.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2026, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -718,6 +718,10 @@ methodSignature(jmethodID method, error = JVMTI_FUNC_PTR(gdata->jvmti,GetMethodName) (gdata->jvmti, method, &name, &signature, &generic_signature); + if (error != JVMTI_ERROR_NONE) { + EXIT_ERROR(error, "GetMethodName failed"); + } + if ( pname != NULL ) { *pname = name; } else if ( name != NULL ) { From d4cdf42ef33c18cf3c91969fe3426cb2d92e8164 Mon Sep 17 00:00:00 2001 From: Derek White Date: Mon, 30 Nov 2026 17:20:18 +0000 Subject: [PATCH 5/7] 8388080: Increase static size of some stubs for APX code Reviewed-by: drwhite, stuefe Backport-of: d1c87e5b4f3f17c473e2425983b3eb8c7ac15fa8 --- src/hotspot/cpu/x86/methodHandles_x86.hpp | 2 +- src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/cpu/x86/methodHandles_x86.hpp b/src/hotspot/cpu/x86/methodHandles_x86.hpp index b158720ca875..8be6ec8ffe3d 100644 --- a/src/hotspot/cpu/x86/methodHandles_x86.hpp +++ b/src/hotspot/cpu/x86/methodHandles_x86.hpp @@ -27,7 +27,7 @@ // Adapters enum /* platform_dependent_constants */ { - adapter_code_size = 6000 DEBUG_ONLY(+ 6000) + adapter_code_size = 8000 DEBUG_ONLY(+ 6000) }; // Additional helper methods for MethodHandles code generation: diff --git a/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp b/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp index 78259157dfa1..a0e0530427d2 100644 --- a/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp +++ b/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp @@ -3644,7 +3644,7 @@ RuntimeStub* SharedRuntime::generate_jfr_write_checkpoint() { }; const char* name = SharedRuntime::stub_name(SharedStubId::jfr_write_checkpoint_id); - CodeBuffer code(name, 1024, 64); + CodeBuffer code(name, 1024 + (UseAPX ? 1024 : 0), 64); MacroAssembler* masm = new MacroAssembler(&code); address start = __ pc(); From 2b0bd5452c1f1b494de592661c5364c14f32150b Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Tue, 1 Dec 2026 18:22:13 +0000 Subject: [PATCH 6/7] 8386762: C2: Allow inlining cold methods Backport-of: 1a395aac6f1bfc385d8ad0399467d1df6cf027a9 --- .../share/compiler/compilerDefinitions.cpp | 4 ++ src/hotspot/share/opto/bytecodeInfo.cpp | 56 ++++++++++--------- src/hotspot/share/opto/c2_globals.hpp | 5 ++ 3 files changed, 38 insertions(+), 27 deletions(-) diff --git a/src/hotspot/share/compiler/compilerDefinitions.cpp b/src/hotspot/share/compiler/compilerDefinitions.cpp index f82e96be6ae7..05589f8cc4d0 100644 --- a/src/hotspot/share/compiler/compilerDefinitions.cpp +++ b/src/hotspot/share/compiler/compilerDefinitions.cpp @@ -593,6 +593,10 @@ void CompilerConfig::ergo_initialize() { } #ifdef COMPILER2 + // Xcomp has no reasonable profiling information, enable inlining cold methods + if (Arguments::is_compiler_only() && FLAG_IS_DEFAULT(InlineColdMethods)) { + FLAG_SET_DEFAULT(InlineColdMethods, true); + } if (!EliminateLocks) { EliminateNestedLocks = false; } diff --git a/src/hotspot/share/opto/bytecodeInfo.cpp b/src/hotspot/share/opto/bytecodeInfo.cpp index 908fff22a770..b66b43c2a7e5 100644 --- a/src/hotspot/share/opto/bytecodeInfo.cpp +++ b/src/hotspot/share/opto/bytecodeInfo.cpp @@ -295,32 +295,34 @@ bool InlineTree::should_not_inline(ciMethod* callee_method, ciMethod* caller_met return false; } - // don't use counts with -Xcomp - if (UseInterpreter) { - if (!callee_method->has_compiled_code() && - !callee_method->was_executed_more_than(0)) { - set_msg("never executed"); - return true; - } + // accept cold methods in CTW or -Xcomp + if (InlineColdMethods) { + return false; + } - if (is_init_with_ea(callee_method, caller_method, C)) { - // Escape Analysis: inline all executed constructors - return false; - } + if (!callee_method->has_compiled_code() && + !callee_method->was_executed_more_than(0)) { + set_msg("never executed"); + return true; + } - if (MinInlineFrequencyRatio > 0) { - int call_site_count = caller_method->scale_count(profile.count()); - int invoke_count = caller_method->interpreter_invocation_count(); - assert(invoke_count != 0, "require invocation count greater than zero"); - double freq = (double)call_site_count / (double)invoke_count; - // avoid division by 0, set divisor to at least 1 - int cp_min_inv = MAX2(1, CompilationPolicy::min_invocations()); - double min_freq = MAX2(MinInlineFrequencyRatio, 1.0 / cp_min_inv); - - if (freq < min_freq) { - set_msg("low call site frequency"); - return true; - } + if (is_init_with_ea(callee_method, caller_method, C)) { + // Escape Analysis: inline all executed constructors + return false; + } + + if (MinInlineFrequencyRatio > 0) { + int call_site_count = caller_method->scale_count(profile.count()); + int invoke_count = caller_method->interpreter_invocation_count(); + assert(invoke_count != 0, "require invocation count greater than zero"); + double freq = (double)call_site_count / (double)invoke_count; + // avoid division by 0, set divisor to at least 1 + int cp_min_inv = MAX2(1, CompilationPolicy::min_invocations()); + double min_freq = MAX2(MinInlineFrequencyRatio, 1.0 / cp_min_inv); + + if (freq < min_freq) { + set_msg("low call site frequency"); + return true; } } @@ -328,8 +330,8 @@ bool InlineTree::should_not_inline(ciMethod* callee_method, ciMethod* caller_met } bool InlineTree::is_not_reached(ciMethod* callee_method, ciMethod* caller_method, int caller_bci, ciCallProfile& profile) { - if (!UseInterpreter) { - return false; // -Xcomp + if (InlineColdMethods) { + return false; // CTW or -Xcomp } if (profile.count() > 0) { return false; // reachable according to profile @@ -403,7 +405,7 @@ bool InlineTree::try_to_inline(ciMethod* callee_method, ciMethod* caller_method, } } - if (!UseInterpreter && + if (InlineColdMethods && is_init_with_ea(callee_method, caller_method, C)) { // Escape Analysis stress testing when running Xcomp: // inline constructors even if they are not reached. diff --git a/src/hotspot/share/opto/c2_globals.hpp b/src/hotspot/share/opto/c2_globals.hpp index fd55f2fd6668..4ebc5baebe1f 100644 --- a/src/hotspot/share/opto/c2_globals.hpp +++ b/src/hotspot/share/opto/c2_globals.hpp @@ -737,6 +737,11 @@ "high tier compiler") \ range(0, max_jint) \ \ + product(bool, InlineColdMethods, false, DIAGNOSTIC, \ + "Inline cold methods that would otherwise be rejected due to " \ + "cold profile counters. Useful for compiler testing to expose " \ + "more code to compilers.") \ + \ product(bool, IncrementalInline, true, \ "do post parse inlining") \ \ From b1ae8f3bc39b4ca870fe95dc385583cf565b1161 Mon Sep 17 00:00:00 2001 From: Goetz Lindenmaier Date: Wed, 2 Dec 2026 08:59:22 +0000 Subject: [PATCH 7/7] 8303772: Remove expired Entrust Root Certification Authority root Backport-of: d1b30a7eb96ddf5b8828797af9123f384163eba4 --- .../security/validator/EntrustTLSPolicy.java | 6 -- src/java.base/share/data/cacerts/entrustevca | 34 -------- .../security/lib/cacerts/VerifyCACerts.java | 8 +- .../distrust/Entrust.java | 4 +- .../chains/entrust/entrustevca-chain.pem | 79 ------------------- 5 files changed, 5 insertions(+), 126 deletions(-) delete mode 100644 src/java.base/share/data/cacerts/entrustevca delete mode 100644 test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/chains/entrust/entrustevca-chain.pem diff --git a/src/java.base/share/classes/sun/security/validator/EntrustTLSPolicy.java b/src/java.base/share/classes/sun/security/validator/EntrustTLSPolicy.java index efb84ac8bc99..ae1bcb8be9f3 100644 --- a/src/java.base/share/classes/sun/security/validator/EntrustTLSPolicy.java +++ b/src/java.base/share/classes/sun/security/validator/EntrustTLSPolicy.java @@ -40,12 +40,6 @@ final class EntrustTLSPolicy { // SHA-256 certificate fingerprints of distrusted roots private static final Set FINGERPRINTS = Set.of( - // cacerts alias: entrustevca - // DN: CN=Entrust Root Certification Authority, - // OU=(c) 2006 Entrust, Inc., - // OU=www.entrust.net/CPS is incorporated by reference, - // O=Entrust, Inc., C=US - "73C176434F1BC6D5ADF45B0E76E727287C8DE57616C1E6E6141A2B2CBC7D8E4C", // cacerts alias: entrustrootcaec1 // DN: CN=Entrust Root Certification Authority - EC1, // OU=(c) 2012 Entrust, Inc. - for authorized use only, diff --git a/src/java.base/share/data/cacerts/entrustevca b/src/java.base/share/data/cacerts/entrustevca deleted file mode 100644 index 6c2c50968b96..000000000000 --- a/src/java.base/share/data/cacerts/entrustevca +++ /dev/null @@ -1,34 +0,0 @@ -Owner: CN=Entrust Root Certification Authority, OU="(c) 2006 Entrust, Inc.", OU=www.entrust.net/CPS is incorporated by reference, O="Entrust, Inc.", C=US -Issuer: CN=Entrust Root Certification Authority, OU="(c) 2006 Entrust, Inc.", OU=www.entrust.net/CPS is incorporated by reference, O="Entrust, Inc.", C=US -Serial number: 456b5054 -Valid from: Mon Nov 27 20:23:42 GMT 2006 until: Fri Nov 27 20:53:42 GMT 2026 -Signature algorithm name: SHA1withRSA -Subject Public Key Algorithm: 2048-bit RSA key -Version: 3 ------BEGIN CERTIFICATE----- -MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMC -VVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0 -Lm5ldC9DUFMgaXMgaW5jb3Jwb3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMW -KGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsGA1UEAxMkRW50cnVzdCBSb290IENl -cnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0MloXDTI2MTEyNzIw -NTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMTkw -NwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSBy -ZWZlcmVuY2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNV -BAMTJEVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJ -KoZIhvcNAQEBBQADggEPADCCAQoCggEBALaVtkNC+sZtKm9I35RMOVcF7sN5EUFo -Nu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYszA9u3g3s+IIRe7bJWKKf4 -4LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOwwCj0Yzfv9 -KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGI -rb68j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+Q3X0dgNmBu1kmwhH+5pPi -94DkZfs0Nw4pgHBNrziGLp5/V6+eF67rHMsoIV+2HNjnogQi+dPa2MsCAwEAAaOB -sDCBrTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zArBgNVHRAEJDAi -gA8yMDA2MTEyNzIwMjM0MlqBDzIwMjYxMTI3MjA1MzQyWjAfBgNVHSMEGDAWgBRo -kORnpKZTgMeGZqTx90tD+4S9bTAdBgNVHQ4EFgQUaJDkZ6SmU4DHhmak8fdLQ/uE -vW0wHQYJKoZIhvZ9B0EABBAwDhsIVjcuMTo0LjADAgSQMA0GCSqGSIb3DQEBBQUA -A4IBAQCT1DCw1wMgKtD5Y+iRDAUgqV8ZyntyTtSx29CW+1RaGSwMCPeyvIWonX9t -O1KzKtvn1ISMY/YPyyYBkVBs9F8U4pN0wBOeMDpQ47RgxRzwIkSNcUesyBrJ6Zua -AGAT/3B+XxFNSRuzFVJ7yVTav52Vr2ua2J7p8eRDjeIRRDq/r72DQnNSi6q7pynP -9WQcCk3RvKqsnyrQ/39/2n3qse0wJcGE2jTSW3iDVuycNsMm4hH2Z0kdkquM++v/ -eu6FSqdQgPCnXEqULl8FmTxSQeDNtGPPAUO6nIPcj2A781q0tHuu2guQOHXvgR1m -0vdXcDazv/wor3ElhVsT/h5/WrQ8 ------END CERTIFICATE----- diff --git a/test/jdk/sun/security/lib/cacerts/VerifyCACerts.java b/test/jdk/sun/security/lib/cacerts/VerifyCACerts.java index 693b9c982fc3..d090f4139d03 100644 --- a/test/jdk/sun/security/lib/cacerts/VerifyCACerts.java +++ b/test/jdk/sun/security/lib/cacerts/VerifyCACerts.java @@ -29,7 +29,7 @@ * 8243559 8225072 8258630 8259312 8256421 8225081 8225082 8225083 8245654 * 8305975 8304760 8307134 8295894 8314960 8317373 8317374 8318759 8319187 * 8321408 8316138 8341057 8303770 8350498 8359170 8361212 8372351 8387123 - * 8386371 8392771 8395690 + * 8386371 8392771 8395690 8303772 * @summary Check root CA entries in cacerts file */ import java.io.ByteArrayInputStream; @@ -48,12 +48,12 @@ public class VerifyCACerts { + File.separator + "security" + File.separator + "cacerts"; // The numbers of certs now. - private static final int COUNT = 107; + private static final int COUNT = 106; // SHA-256 of cacerts, can be generated with // shasum -a 256 cacerts | sed -e 's/../&:/g' | tr '[:lower:]' '[:upper:]' | cut -c1-95 private static final String CHECKSUM - = "5F:8D:07:81:52:CB:9A:C6:8B:87:11:05:8C:11:7B:6C:07:32:EE:23:DA:8D:38:99:D1:93:96:70:5E:0C:80:E9"; + = "9E:7F:FA:C8:09:26:47:21:6F:BC:D1:FB:6E:C7:13:9D:31:42:58:EC:84:97:CB:72:D1:9A:C0:75:DE:2C:DC:A4"; // Hex formatter to upper case with ":" delimiter private static final HexFormat HEX = HexFormat.ofDelimiter(":").withUpperCase(); @@ -188,8 +188,6 @@ public class VerifyCACerts { "6D:C4:71:72:E0:1C:BC:B0:BF:62:58:0D:89:5F:E2:B8:AC:9A:D4:F8:73:80:1E:0C:10:B9:C8:37:D2:1E:B1:77"); put("entrustrootcag2 [jdk]", "43:DF:57:74:B0:3E:7F:EF:5F:E4:0D:93:1A:7B:ED:F1:BB:2E:6B:42:73:8C:4E:6D:38:41:10:3D:3A:A7:F3:39"); - put("entrustevca [jdk]", - "73:C1:76:43:4F:1B:C6:D5:AD:F4:5B:0E:76:E7:27:28:7C:8D:E5:76:16:C1:E6:E6:14:1A:2B:2C:BC:7D:8E:4C"); put("ttelesecglobalrootclass3ca [jdk]", "FD:73:DA:D3:1C:64:4F:F1:B4:3B:EF:0C:CD:DA:96:71:0B:9C:D9:87:5E:CA:7E:31:70:7A:F3:E9:6D:52:2B:BD"); put("ttelesecglobalrootclass2ca [jdk]", diff --git a/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/Entrust.java b/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/Entrust.java index 3f25ab4a2132..837de29d66d1 100644 --- a/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/Entrust.java +++ b/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/Entrust.java @@ -28,7 +28,7 @@ /** * @test - * @bug 8337664 8341059 8361212 8386371 + * @bug 8337664 8341059 8361212 8386371 8303772 * @summary Check that TLS Server certificates chaining back to distrusted * Entrust roots are invalid * @library /test/lib @@ -46,7 +46,7 @@ public class Entrust { // Each of the roots have a test certificate chain stored in a file // named "-chain.pem". private static final String[] ROOTS_TO_TEST = new String[]{ - "entrustevca", "entrustrootcaec1", "entrustrootcag2", "entrust2048ca"}; + "entrustrootcaec1", "entrustrootcag2", "entrust2048ca"}; // Date after the restrictions took effect when distrust was first announced private static final ZonedDateTime DISTRUST_DATE = diff --git a/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/chains/entrust/entrustevca-chain.pem b/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/chains/entrust/entrustevca-chain.pem deleted file mode 100644 index e9c06b19c694..000000000000 --- a/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/chains/entrust/entrustevca-chain.pem +++ /dev/null @@ -1,79 +0,0 @@ -Root Certificate: - Version: 3 (0x2) - Serial Number: 1164660820 (0x456b5054) - Signature Algorithm: sha1WithRSAEncryption - Issuer: C=US, O=Entrust, Inc., OU=www.entrust.net/CPS is incorporated by reference, OU=(c) 2006 Entrust, Inc., CN=Entrust Root Certification Authority - Validity - Not Before: Nov 27 20:23:42 2006 GMT - Not After : Nov 27 20:53:42 2026 GMT - ------BEGIN CERTIFICATE----- -MIIHEjCCBfqgAwIBAgIQFhH4VGskTR+tQK3JbN63kTANBgkqhkiG9w0BAQsFADCB -sTELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsT -MHd3dy5lbnRydXN0Lm5ldC9ycGEgaXMgaW5jb3Jwb3JhdGVkIGJ5IHJlZmVyZW5j -ZTEfMB0GA1UECxMWKGMpIDIwMDkgRW50cnVzdCwgSW5jLjEuMCwGA1UEAxMlRW50 -cnVzdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEwxRT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