Stack Clash fix breaks JVM when launched from C
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have tested only with linux 4.10.0-24-generic on amd64. The attached repro case:
- compiles a java class
- compiles a C program that initialises the JVM and calls a static method from the java class
- launch the compiled C program.
Expected result:
the c program should execute the Java method and print some numbers in the terminal
Actual result:
the c program segfaults while initialising the JVM
reverting to linux 4.10.0-22-generic amd64 fixes the problem. Since the only change in the changelog is the Stack Clash fix and since I remember reading that the JVM does tricky stuff with the stack, this is a natural culprit.
It touches any program that initialises a JVM (so for instance Java bindings in Postgresql or Java applets in firefox although the latter have been deprecated and are only supported in firefox ESR now).
I attach the repro-case.
The issue happens with both openjdk-8-jdk from the repository and the standard jdk 8 from oracle.
[note: edited after initial submission to fix some typos]
---
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CurrentDesktop: Unity:Unity7
DistroRelease: Ubuntu 17.04
EcryptfsInUse: Yes
HibernationDevice: RESUME=
InstallationDate: Installed on 2016-10-19 (248 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
MachineType: Hewlett-Packard HP EliteBook 820 G2
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.164.1
Tags: zesty
Uname: Linux 4.10.0-22-generic x86_64
UnreportableReason: The report belongs to a package that is not installed.
UpgradeStatus: Upgraded to zesty on 2017-06-23 (1 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare src sudo vboxusers
_MarkForUpload: False
dmi.bios.date: 04/10/2017
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: M71 Ver. 01.19
dmi.board.name: 225A
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 96.5B
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.name: HP EliteBook 820 G2
dmi.product.
dmi.sys.vendor: Hewlett-Packard
CVE References
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
description: | updated |
tags: | added: id-599af6610f9a304e95fd9796 |
I forgot to mention that I'm on Zesty 17.04, but I have reports from colleague saying this also happens on 16.04 and 16.10.