obsolete

java-17-openjdk-17.0.7.0.7-1.fc37 and java-latest-openjdk-20.0.1.0.9-4.rolling.fc37

FEDORA-2023-32d08f02af created by jvanek a year ago for Fedora 37

Updated to April Security update

This update has been submitted for testing by jvanek.

a year ago

This update's test gating status has been changed to 'waiting'.

a year ago

This update's test gating status has been changed to 'failed'.

a year ago

I'm not 100% sure what's going on with the failure here, honestly, but it seems reproducible - it's failed three times the same way. Weirdly, it didn't fail the same way on the staging openQA instance.

It's failing the openQA FreeIPA test that enrols into the domain via Cockpit. Other FreeIPA enrolment tests pass. It fails when trying to login as a domain user - the login fails with "System error". Server journal doesn't show anything much. Client journal has this:

Apr 28 16:43:16 client002.test.openqa.fedoraproject.org systemd[1]: Started getty@tty2.service - Getty on tty2.
Apr 28 16:43:16 client002.test.openqa.fedoraproject.org audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=getty@tty2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 28 16:43:25 client002.test.openqa.fedoraproject.org login[3539]: pam_sss(login:auth): authentication success; logname=LOGIN uid=0 euid=0 tty=/dev/tty2 ruser= rhost= user=test1@TEST.OPENQA.FEDORAPROJECT.ORG
Apr 28 16:43:25 client002.test.openqa.fedoraproject.org audit[3539]: USER_AUTH pid=3539 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:local_login_t:s0-s0:c0.c1023 msg='op=PAM:authentication grantors=pam_usertype,pam_usertype,pam_sss acct="test1@TEST.OPENQA.FEDORAPROJECT." exe="/usr/bin/login" hostname=client002.test.openqa.fedoraproject.org addr=? terminal=/dev/tty2 res=success'
Apr 28 16:43:25 client002.test.openqa.fedoraproject.org login[3539]: pam_sss(login:account): Access denied for user test1@TEST.OPENQA.FEDORAPROJECT.ORG: 4 (System error)
Apr 28 16:43:25 client002.test.openqa.fedoraproject.org login[3539]: System error
Apr 28 16:43:25 client002.test.openqa.fedoraproject.org audit[3539]: USER_ACCT pid=3539 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:local_login_t:s0-s0:c0.c1023 msg='op=PAM:accounting grantors=? acct="test1@TEST.OPENQA.FEDORAPROJECT." exe="/usr/bin/login" hostname=client002.test.openqa.fedoraproject.org addr=? terminal=/dev/tty2 res=failed'
Apr 28 16:43:30 client002.test.openqa.fedoraproject.org systemd[1]: getty@tty2.service: Deactivated successfully.

and var/log/sssd/selinux_child.log has this:

(2023-04-28 19:43:25): [selinux_child[3542]] [sss_set_seuser] (0x0020): [RID#24] Cannot commit SELinux transaction
********************** PREVIOUS MESSAGE WAS TRIGGERED BY THE FOLLOWING BACKTRACE:
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x0400): [RID#24] selinux_child started.
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x2000): [RID#24] Running with effective IDs: [0][0].
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x2000): [RID#24] Running with real IDs [0][0].
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x0400): [RID#24] context initialized
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [unpack_buffer] (0x2000): [RID#24] seuser length: 12
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [unpack_buffer] (0x2000): [RID#24] seuser: unconfined_u
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [unpack_buffer] (0x2000): [RID#24] mls_range length: 14
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [unpack_buffer] (0x2000): [RID#24] mls_range: s0-s0:c0.c1023
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [unpack_buffer] (0x2000): [RID#24] username length: 5
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [unpack_buffer] (0x2000): [RID#24] username: test1
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x0400): [RID#24] performing selinux operations
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [seuser_needs_update] (0x2000): [RID#24] sss_get_seuser: ret: 0 seuser: unconfined_u mls: s0-s0:c0.c1023
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [sss_seuser_exists] (0x0400): [RID#24] seuser exists: no
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [seuser_needs_update] (0x0400): [RID#24] The SELinux user does need an update
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [sss_set_seuser] (0x0020): [RID#24] Cannot commit SELinux transaction
********************** BACKTRACE DUMP ENDS HERE *********************************

(2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x0020): [RID#24] Cannot set SELinux login context.
(2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x0020): [RID#24] selinux_child failed!
********************** PREVIOUS MESSAGE WAS TRIGGERED BY THE FOLLOWING BACKTRACE:
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x0020): [RID#24] Cannot set SELinux login context.
   *  (2023-04-28 19:43:25): [selinux_child[3542]] [main] (0x0020): [RID#24] selinux_child failed!
********************** BACKTRACE DUMP ENDS HERE *********************************

I can try and look into it more on Monday...

This update has been pushed to testing.

a year ago
User Icon geraldosimiao commented & provided feedback a year ago
karma

Here I have this error, and FAIL TO INSTALL:

  Erro: Erro no teste de transação:
   o arquivo /usr/lib/.build-id/ae/5beb882acdb12641968ba3d13f5a7e1b00089a conflita entre a tentativa de instalação de java-17-openjdk-headless-1:17.0.7.0.7-1.fc37.x86_64 e java-latest-openjdk-headless-1:20.0.1.0.9-4.rolling.fc37.x86_64

Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.

a year ago
User Icon filiperosset commented & provided feedback a year ago
karma

no regressions noted

Tahx a lot for that debuginfo issue. Will look into that.

Adam, thsoe traces are from openqa. Do you think thaey have something to do with this articualr pkg update?

User Icon alexpl commented & provided feedback a year ago
karma

Same error as Geraldo above:

Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/lib/.build-id/ae/5beb882acdb12641968ba3d13f5a7e1b00089a conflicts between attempted installs of java-latest-openjdk-headless-1:20.0.1.0.9-4.rolling.fc37.x86_64 and java-17-openjdk-headless-1:17.0.7.0.7-1.fc37.x86_64

and these are the packages that would be updated:

 java-17-openjdk                x86_64   1:17.0.7.0.7-1.fc37           updates-testing     426 k
 java-17-openjdk-devel          x86_64   1:17.0.7.0.7-1.fc37           updates-testing     4.7 M
 java-17-openjdk-headless       x86_64   1:17.0.7.0.7-1.fc37           updates-testing      42 M
 java-latest-openjdk-headless   x86_64   1:20.0.1.0.9-4.rolling.fc37   updates-testing      44 M

This update's test gating status has been changed to 'passed'.

a year ago
karma
User Icon huembert commented & provided feedback a year ago
karma

same error while installing via dnf (it also occurs with Fedora 38)

Error: Transaction test error:
  file /usr/lib/.build-id/ae/5beb882acdb12641968ba3d13f5a7e1b00089a conflicts between attempted installs of java-17-openjdk-headless-1:17.0.7.0.7-1.fc37.x86_64 and java-latest-openjdk-headless-1:20.0.1.0.9-4.rolling.fc37.x86_64

Hello! It had happened that libjsvml.so builds identically in jdk17 and jd20 That meanns that debuginfo's hash will be same: /usr/lib/.build-id/ae/5beb882acdb12641968ba3d13f5a7e1b00089a -> ../../../../usr/lib/jvm/java-20-openjdk-20.0.1.0.9-4.rolling.fc37.x86_64/lib/libjsvml.so /usr/lib/.build-id/ae/5beb882acdb12641968ba3d13f5a7e1b00089a -> ../../../../usr/lib/jvm/java-17-openjdk-17.0.7.0.7-1.fc37.x86_64/lib/libjsvml.so

Thhus, as they are symlinks pointing to diffferent file, will lead to:

Error: Transaction test error: file /usr/lib/.build-id/ae/5beb882acdb12641968ba3d13f5a7e1b00089a from install of java-17-openjdk-headless-1:17.0.7.0.7-1.fc37.x86_64 conflicts with file from package java-latest-openjdk-headless-1:20.0.1.0.9-4.rolling.fc37.x86_64

I have double checked that I'm,not building jdk17 in jdk20 body or vice-versa. Also the rest of jdk is correctl different.

Unluckily, the .build-id/ are in both .debuginfo subpkg and in normal package. Headless subbpkg in our case. so This is prohibiting the java to install - if you wish both 20 and 17 isntalled, which I would like to.

I have two solutions around: %define _build_id_links alldebug Will cause the .build-id/ to be only in debuginfo subpkg, and I do not know all possible consequenqnces - the obvious one, that you will notbe abel to keep both 17 and 20's debuginfo I conisder as acceptable. slightly patch libjsvml.so by adding some volatile field, but that is no go for reproducible build....

Thougts?

I think option #1 is the most reasonable one and perhaps the least troublesome for you. Should the need occur, would a user be able to use the one or the other set of debug packages in a relatively straightforward manner?

Yes. The debuginfo packages would bstill usfull - but not together. Onl one xor second. Thanx a lot for input!

In meantime I found, that I can rewrote build-id without actually any consequences - the libjsvml.so will still be debuggable. I wil repalce the original bild-id hash by modified hash of library|full path.

I have the fix ready. I wil now push this to stbale, to allow update at least of standalone jdk17 to the security level, and crate new update, with fixed buildid of libjvlm.so

jvanek edited this update.

a year ago

This update's test gating status has been changed to 'waiting'.

a year ago

jvanek edited this update.

a year ago

This update's test gating status has been changed to 'passed'.

a year ago

This update has been obsoleted by java-17-openjdk-17.0.7.0.7-5.fc37.

a year ago

Please login to add feedback.

Metadata
Type
unspecified
Karma
-1
Signed
Content Type
RPM
Test Gating
Autopush Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
14 days
Thresholds
Minimum Karma
+2
Minimum Testing
14 days
Dates
submitted
a year ago
in testing
a year ago
modified
a year ago

Automated Test Results