/proc/sys/abi/ldt16 does not exist

Bug #1579351 reported by 1448412
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Hi,

I guess I stumbled upon a VERY old problem;

I can't make some of my windows-programs work, despite they have a gold rating in wine.

Some old Windows binaries that include 16-Bit Code need the kernel to have echo 1 >> /proc/sys/abi/ldt16 enabled, but that pseudo-file does not exist on my 16.04 Ubuntu system.

root@Johnnyfive:~# echo 1 >> /proc/sys/abi/ldt16
-bash: /proc/sys/abi/ldt16: Datei oder Verzeichnis nicht gefunden
root@Johnnyfive:~# ls /proc/sys/abi/
vsyscall32

The issue is discussed in lots of places:
--> https://lkml.org/lkml/2014/5/7/508
--> https://forum.winehq.org/viewtopic.php?f=8&t=22700
--> http://ubuntuforums.org/archive/index.php/t-2228133.html

The issue seems to be a very old regression, a bug on this was filed and closed in 2014.
--> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1328965

So I think that this is a very old and annoying regression that just wont stop
keep coming back. Could you please include the fix once and for all?

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-21-generic 4.4.0-21.37
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ulrich 1816 F.... pulseaudio
CurrentDesktop: LXDE
Date: Sat May 7 12:36:44 2016
HibernationDevice: RESUME=UUID=93df4898-fb0b-4278-ade1-ccfffb092022
InstallationDate: Installed on 2016-04-02 (35 days ago)
InstallationMedia: Lubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
IwConfig:
 enp2s0 no wireless extensions.

 enp3s0 no wireless extensions.

 lo no wireless extensions.
MachineType: Shuttle Inc. SX58
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-21-generic root=/dev/mapper/fivegroup-root ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-21-generic N/A
 linux-backports-modules-4.4.0-21-generic N/A
 linux-firmware 1.157
RfKill:

SourcePackage: linux
UpgradeStatus: Upgraded to xenial on 2016-04-25 (12 days ago)
dmi.bios.date: 03/02/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 080016
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: SX58
dmi.board.vendor: Shuttle Inc.
dmi.board.version: V10
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Intel
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr080016:bd03/02/2010:svnShuttleInc.:pnSX58:pvrV10:rvnShuttleInc.:rnSX58:rvrV10:cvnIntel:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: SX58
dmi.product.version: V10
dmi.sys.vendor: Shuttle Inc.

Revision history for this message
1448412 (uli-rgbg) wrote :
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
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.6 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-rc7-wily/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
tags: added: kernel-da-key
Revision history for this message
1448412 (uli-rgbg) wrote :

Hi,

thanks for your response!

I tested

linux-image-4.6.0-040600rc7-generic_4.6.0-040600rc7.201605120803_amd64

=> it also lacks /proc/sys/abi/ldt16.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
1448412 (uli-rgbg)
tags: added: kernel-bug-exists-upstream
description: updated
Revision history for this message
penalvch (penalvch) wrote :

1448412, while doing some research towards this I noticed:
cat /boot/config-4.4.0-22-generic | grep CONFIG_X86_ESPFIX64
CONFIG_X86_ESPFIX64=y

cat /boot/config-4.4.0-22-generic | grep 16B
CONFIG_X86_16BIT=y

cat /boot/config-4.4.0-22-generic | grep CONFIG_X86_64=
CONFIG_X86_64=y

So, it appears the proper configuration and its dependencies are in place for 16-bit support.

Also, from my read of it, one has to make some manual modifications to the WINE environment (ex. adjust WINE prefix to 32-bit from default 64-bit when in a 64-bit host OS, and ensuring the Windows version set is a legacy one like Windows XP).

Could you please advise?

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

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.