Segfault in ld-2.19.so while starting Steam after upgrade to 3.13.0-59.98

Bug #1479093 reported by Stefan Bader
326
This bug affects 100 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned
Precise
Invalid
Undecided
Unassigned
Trusty
Fix Released
High
Unassigned
Vivid
Invalid
Undecided
Unassigned
Wily
Invalid
Medium
Unassigned
linux-lts-trusty (Ubuntu)
Invalid
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned
Trusty
Invalid
Undecided
Unassigned
Vivid
Invalid
Undecided
Unassigned
Wily
Invalid
Undecided
Unassigned
linux-lts-utopic (Ubuntu)
Invalid
Undecided
Unassigned
Precise
Invalid
Undecided
Unassigned
Trusty
Invalid
Undecided
Unassigned
Vivid
Invalid
Undecided
Unassigned
Wily
Invalid
Undecided
Unassigned
linux-lts-vivid (Ubuntu)
Invalid
Undecided
Unassigned
Precise
Invalid
Undecided
Unassigned
Trusty
Invalid
Undecided
Unassigned
Vivid
Invalid
Undecided
Unassigned
Wily
Invalid
Undecided
Unassigned

Bug Description

The previous kernel 3.13.0-58.97 does not show the issue when booting back into it. Currently only noticed on starting Steam but there its is reproducable every time on X230 laptop (Intel graphics). Might be related to Steam using 32bit libraries.
Attaching some log and dump that steam produces but fails to upload (wherever).

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-3.13.0-59-generic 3.13.0-59.98
ProcVersionSignature: Ubuntu 3.13.0-59.98-generic 3.13.11-ckt22
Uname: Linux 3.13.0-59-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: smb 2678 F.... pulseaudio
CurrentDesktop: Unity
Date: Tue Jul 28 21:42:17 2015
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=7aacd0c3-12d4-4f50-baf7-e1fd8f871f95
InstallationDate: Installed on 2013-07-25 (733 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MachineType: LENOVO 2324CTO
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-59-generic.efi.signed root=UUID=5d3281d3-0142-4039-bb9b-28653778aca0 ro quiet splash mmc-core.removable=0 nomdmonddf nomdmonisw vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-59-generic N/A
 linux-backports-modules-3.13.0-59-generic N/A
 linux-firmware 1.127.14
SourcePackage: linux
UpgradeStatus: Upgraded to trusty on 2014-04-29 (455 days ago)
dmi.bios.date: 04/30/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: G2ET94WW (2.54 )
dmi.board.asset.tag: Not Available
dmi.board.name: 2324CTO
dmi.board.vendor: LENOVO
dmi.board.version: Win8 Pro DPK TPG
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrG2ET94WW(2.54):bd04/30/2013:svnLENOVO:pn2324CTO:pvrThinkPadX230:rvnLENOVO:rn2324CTO:rvrWin8ProDPKTPG:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 2324CTO
dmi.product.version: ThinkPad X230
dmi.sys.vendor: LENOVO

CVE References

Revision history for this message
Stefan Bader (smb) wrote :
Revision history for this message
Stefan Bader (smb) wrote :
Revision history for this message
Stefan Bader (smb) wrote :
Revision history for this message
Stefan Bader (smb) wrote :

From the dump this part of steam looks to be involved but not sure how this relates to the segfaults. Each attempt creates 3 (I think of those).

Assert( Assertion Failed: CApplicationManager::GetMountVolume: invalid index ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/clientdll/applicationmanager.cpp:3117

Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: kernel-da-key
Revision history for this message
Ool (0ol) wrote :

I post this work around first in a duplicate bug report, so I put it here to:

I change the kernel version of my Ubuntu Trusty 14.04.02 from 3.13.0-59 to 3.16.0-45 with the LTS enable stack:
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
no more segfault :)

Adam Conrad (adconrad)
Changed in linux (Ubuntu Trusty):
status: New → Confirmed
Changed in linux (Ubuntu Wily):
status: Confirmed → New
Changed in linux-lts-utopic (Ubuntu Vivid):
status: New → Invalid
Changed in linux-lts-utopic (Ubuntu Wily):
status: New → Invalid
Changed in linux-lts-vivid (Ubuntu Vivid):
status: New → Invalid
Changed in linux-lts-vivid (Ubuntu Wily):
status: New → Invalid
Revision history for this message
Brad Figg (brad-figg) wrote :

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu Vivid):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-lts-utopic (Ubuntu Trusty):
status: New → Confirmed
Changed in linux-lts-vivid (Ubuntu Trusty):
status: New → Confirmed
Revision history for this message
Stefan Bader (smb) wrote :

With the latest 3.16-lts-trusty there is no problem.

Changed in linux-lts-utopic (Ubuntu Trusty):
status: Confirmed → Invalid
Revision history for this message
Felipe Castillo (fcastillo.ec) wrote :

@Stefan I'm not quite sure what your statement means? I'm using Ubuntu Trusty and I'm having this problem. Is there a different kernel for trusty than pre-installed one?
Is this also a workaround for the issue, or would it be better to just use kernel -58?

Revision history for this message
Daniel Convissor (convissor) wrote :

I'm seeing this too trying to run netflix-desktop under the 3.13.0-59 kernel. (Which worked fine until today.)

@fcastillo.ec: Stefan was telling us that the LTS Enablement Stack (suggested by Ool) worked for him. Sure, you can use the 58 kernel if that works for you, but do be aware that the 59 kernel contains security fixes.

The LTS Enablement Stack worked for me, but do be aware, it removed several other packages I had installed (netflix-desktop among them). Upon reinstalling netflix-desktop, I'm back in business.

Revision history for this message
Stefan Bader (smb) wrote :

The Vivid LTS kernel is ok as well.

Changed in linux-lts-vivid (Ubuntu Trusty):
status: Confirmed → Invalid
Revision history for this message
Stefan Bader (smb) wrote :

As for work-arounds: the simplest and quickest for the moment would be to boot the previous kernel, but as it was said that opens up some security issue that the current upload tried to fix. We work on fixing the regression as soon as possible.

Moving to a HWE stack seems to be another option but one which comes with a lot more change to the system. And the more change the more risk something may break. Both HWE kernels look to work correctly with the security fix applied.

Revision history for this message
Olivier Debon (olivier-debon) wrote :

Another weird workaround I discovered while investigating, just steam this way:
~user # strace -f -o/dev/null steam

It slow down UI, so it could be a race condition on steam client, though it ran fine before upgrading ubuntu.

If that helps.

Adam Conrad (adconrad)
Changed in linux (Ubuntu Vivid):
status: Confirmed → Invalid
Changed in linux (Ubuntu Wily):
status: Confirmed → Invalid
Revision history for this message
Adam Conrad (adconrad) wrote :

A fix for this is building right now and, if all goes well, should be released in 8 to 12 hours.

Revision history for this message
ThePhilips (thephilips) wrote :

Just a ping. After update to the *-59 kernel, several internal applications started failing in system() library call: the shell (/bin/sh -c) was crashing shortly after exec() with a segmentation fault. Similarly to comment #15, the applications works if started using the 'strace -f'.

Revision history for this message
georg (georg-g) wrote :

I can confirm segfaults after updating the kernel to 3.13.0-59 on various 64 Bit machines. Its related to shelling out commands from 32 bit executables. In my case its a proprietary program, but its reproducible with the following steps:

    $ apt-get install gcc-multilib
    $ cat test.c
    #include "stdlib.h"
    int main()
    {
        system("/bin/echo Hello World");
    }
    $ gcc -m64 test.c
    Hello World
    $ gcc -m32 test.c
    $ ./a.out # Program is crashing here
    $ dmesg|tail -n 1
    [ 102.260840] sh[2283]: segfault at 3dbb92d0 ip 000000003dbb92d0 sp 00000000b366e850 error 14 in ld-2.19.so[7f573dbb8000+23000]

Revision history for this message
Jerre Cope (jerre) wrote :

Also affected with this bug after kernel upgrade with

error 14 in ld-2.19.so

application affected is a Business Basic interpreter from throughbredsoftware.com I don't have the source to this but the problem seems to relate to exclusive file locks

Reverting to the prior kernel resolves the problem.

Revision history for this message
Norman Wilson (norma7) wrote :

Here is a simpler example program:

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <wait.h>

int
main(argc, argv)
int argc;
char **argv;
{
 int pid, rpid;
 int st;

 if (argc < 2) {
  fprintf(stderr, "usage: %s command ...\n", argv[0]);
  return (1);
 }
 if ((pid = fork()) < 0) {
  fprintf(stderr, "fork: %s\n", strerror(errno));
  return (1);
 }
 if (pid == 0) {
  execvp(argv[1], &argv[1]);
  fprintf(stderr, "exec: %s\n", strerror(errno));
  return (1);
 }
 while ((rpid = wait(&st)) > 0 && rpid != pid)
  ;
 if (rpid < 0) {
  fprintf(stderr, "wait: %s\n", strerror(errno));
  return (1);
 }
 printf("status 0x%x\n", st);
 return (0);
}

There is some header-file fumble that prevents me from compiling this with cc -m32, but there are both 32- and 64-bit systems in our environment, so:

Using kernel 3.13.0-59:

Compile it on a 64-bit system, and run
      ./forkexec date
and all is well.

Compile it on a 32-bit system, then, on a 64-bit system, run
    ./forkexec date
and date prints nothing, while forkexec reports exit status 0x8b.

On the other hand, still on the 64-bit system, point it at a 32-bit binary and all is well. e.g.
   ./forkexec ./forkexec
just prints the expected usage: message, so it execed itself properly; no SIGSEGV.

To confound matters further:
-- take out the fork (so the program just calls exec) and all is well
-- run the program under strace -f and the problem vanishes

All this happens under kernel 3.13.0-59 but not 3.13.0-55 (we've put off a few updates).

Changed in linux (Ubuntu Trusty):
importance: Undecided → High
Luis Henriques (henrix)
Changed in linux (Ubuntu Trusty):
status: Confirmed → Fix Committed
Adam Conrad (adconrad)
Changed in linux (Ubuntu Precise):
status: New → Invalid
Changed in linux-lts-trusty (Ubuntu Trusty):
status: New → Invalid
Changed in linux-lts-trusty (Ubuntu Vivid):
status: New → Invalid
Changed in linux-lts-trusty (Ubuntu Wily):
status: New → Invalid
Changed in linux-lts-utopic (Ubuntu Precise):
status: New → Invalid
Changed in linux-lts-vivid (Ubuntu Precise):
status: New → Invalid
Changed in linux-lts-trusty (Ubuntu Precise):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-lts-trusty - 3.13.0-61.100~precise1

---------------
linux-lts-trusty (3.13.0-61.100~precise1) precise; urgency=low

  [ Luis Henriques]

  * Re-work previous CVE backports to fix regression
    - LP: #1479093

  [ Upstream Kernel Changes ]

  * Revert "x86/nmi/64: Use DF to avoid userspace RSP confusing nested NMI
    detection"
  * Revert "x86/nmi/64: Reorder nested NMI checks"
  * Revert "x86/nmi/64: Improve nested NMI comments"
  * Revert "x86/nmi/64: Switch stacks on userspace NMI entry"
  * Revert "x86/nmi/64: Remove asm code that saves cr2"
  * Revert "x86/nmi: Enable nested do_nmi handling for 64-bit kernels"
  * Revert "x86/asm/entry/64: Remove pointless jump to irq_return"
  * Revert "x86/asm/entry/64: Remove a redundant jump"
  * Revert "x86/asm/entry/64: Fold the 'test_in_nmi' macro into its only
    user"
  * Revert "x86/asm/entry/64: Always allocate a complete "struct pt_regs"
    on the kernel stack"
  * Revert "x86/asm/64: Open-code register save/restore in
    trace_hardirqs*() thunks"
  * Revert "x86: entry_64.S: fold SAVE_ARGS_IRQ macro into its sole user"
  * Revert "x86: ia32entry.S: fix wrong symbolic constant usage:
    R11->ARGOFFSET"
  * Revert "x86: entry_64.S: delete unused code"
  * Revert "x86, entry: Switch stacks on a paranoid entry from userspace"
  * Revert "x86: Speed up ___preempt_schedule*() by using THUNK helpers"
  * Revert "x86_64, entry: Treat regs->ax the same in fastpath and slowpath
    syscalls"
  * Revert "x86, entry: Only call user_exit if TIF_NOHZ"
  * Revert "x86/debug: Drop several unnecessary CFI annotations"
  * Revert "x86_64, entry: Add missing 'DEFAULT_FRAME 0' entry annotations"
  * x86/asm/entry/64: Fold the 'test_in_nmi' macro into its only user
  * x86/asm/entry/64: Remove a redundant jump
  * x86/nmi: Enable nested do_nmi handling for 64-bit kernels
  * x86/nmi/64: Remove asm code that saves cr2
  * x86/nmi/64: Switch stacks on userspace NMI entry
    - CVE-2015-3290, CVE-2015-5157
  * x86/nmi/64: Improve nested NMI comments
  * x86/nmi/64: Reorder nested NMI checks
  * x86/nmi/64: Use DF to avoid userspace RSP confusing nested NMI
    detection
    - CVE-2015-3291

 -- Luis Henriques <email address hidden> Wed, 29 Jul 2015 12:19:37 +0100

Changed in linux-lts-trusty (Ubuntu Precise):
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 3.13.0-61.100

---------------
linux (3.13.0-61.100) trusty; urgency=low

  [ Luis Henriques]

  * Re-work previous CVE backports to fix regression
    - LP: #1479093

  [ Upstream Kernel Changes ]

  * Revert "x86/nmi/64: Use DF to avoid userspace RSP confusing nested NMI
    detection"
  * Revert "x86/nmi/64: Reorder nested NMI checks"
  * Revert "x86/nmi/64: Improve nested NMI comments"
  * Revert "x86/nmi/64: Switch stacks on userspace NMI entry"
  * Revert "x86/nmi/64: Remove asm code that saves cr2"
  * Revert "x86/nmi: Enable nested do_nmi handling for 64-bit kernels"
  * Revert "x86/asm/entry/64: Remove pointless jump to irq_return"
  * Revert "x86/asm/entry/64: Remove a redundant jump"
  * Revert "x86/asm/entry/64: Fold the 'test_in_nmi' macro into its only
    user"
  * Revert "x86/asm/entry/64: Always allocate a complete "struct pt_regs"
    on the kernel stack"
  * Revert "x86/asm/64: Open-code register save/restore in
    trace_hardirqs*() thunks"
  * Revert "x86: entry_64.S: fold SAVE_ARGS_IRQ macro into its sole user"
  * Revert "x86: ia32entry.S: fix wrong symbolic constant usage:
    R11->ARGOFFSET"
  * Revert "x86: entry_64.S: delete unused code"
  * Revert "x86, entry: Switch stacks on a paranoid entry from userspace"
  * Revert "x86: Speed up ___preempt_schedule*() by using THUNK helpers"
  * Revert "x86_64, entry: Treat regs->ax the same in fastpath and slowpath
    syscalls"
  * Revert "x86, entry: Only call user_exit if TIF_NOHZ"
  * Revert "x86/debug: Drop several unnecessary CFI annotations"
  * Revert "x86_64, entry: Add missing 'DEFAULT_FRAME 0' entry annotations"
  * x86/asm/entry/64: Fold the 'test_in_nmi' macro into its only user
  * x86/asm/entry/64: Remove a redundant jump
  * x86/nmi: Enable nested do_nmi handling for 64-bit kernels
  * x86/nmi/64: Remove asm code that saves cr2
  * x86/nmi/64: Switch stacks on userspace NMI entry
    - CVE-2015-3290, CVE-2015-5157
  * x86/nmi/64: Improve nested NMI comments
  * x86/nmi/64: Reorder nested NMI checks
  * x86/nmi/64: Use DF to avoid userspace RSP confusing nested NMI
    detection
    - CVE-2015-3291

 -- Luis Henriques <email address hidden> Wed, 29 Jul 2015 10:58:25 +0100

Changed in linux (Ubuntu Trusty):
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
Changed in linux (Ubuntu Trusty):
assignee: nobody → guilherme da silva jardim (guilhermejardimpereira)
assignee: guilherme da silva jardim (guilhermejardimpereira) → nobody
Revision history for this message
Cedara (cedara2) wrote :

Thanks for the fix! Kernel 3.13.0-61 solved it just fine.

Revision history for this message
Marcel Svitalsky (marcel-svitalsky-gmail) wrote :

Bug #1479111 fixed in the new 3.13.0-61 kernel, thanks a lot!

Revision history for this message
Bill Turner, wb4alm (wb4alm) wrote :

This fix also takes care of segfaults in Wine that occurred under kernel 3.13.0.59 (Bug #1479040)
Everything appears to be working just fine under Kernel 3.13.0.61. Thanks everybody!!!

Revision history for this message
Norman Wilson (norma7) wrote :

Kernel 3.13.0-61 cures the symptoms I reported as well. Thanks!

Revision history for this message
Wayne Schuller (k-wayne) wrote :

Also confirming 3.13.0-61-generic fixes this bug as well.

Dear Ubuntu - don't break Steam ever again! #badmojo :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.