From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932335AbaEGJTP (ORCPT ); Wed, 7 May 2014 05:19:15 -0400 Received: from mout.gmx.net ([212.227.17.21]:56521 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751886AbaEGJTM (ORCPT ); Wed, 7 May 2014 05:19:12 -0400 From: Sven Joachim To: Alexandre Julliard Cc: Linus Torvalds , Brian Gerst , Ingo Molnar , "H. Peter Anvin" , Linux Kernel Mailing List , Thomas Gleixner , stable , "H. Peter Anvin" Subject: Re: [tip:x86/urgent] x86-64, modify_ldt: Ban 16-bit segments on 64-bit kernels References: <87k3aspd1h.fsf@wine.dyndns.org> Date: Wed, 07 May 2014 11:18:49 +0200 In-Reply-To: <87k3aspd1h.fsf@wine.dyndns.org> (Alexandre Julliard's message of "Mon, 14 Apr 2014 09:48:10 +0200") Message-ID: <87zjiuymiu.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:QsFGenef/ULkhGxiYzWAx47lNYhcg5RCwgw/eq/c+1hyD4nqv5b /gjwLV4UutxhgOyxD9/lfIUnK9nxsiJGF1kuBpH8Mm1qAkmn+xWG9W8I1qDdQw46OwwnIWe r/51V4zZIjrqFLqJYTslOBx0szBmLjnZmL5FXQmCdfCJ2uWSGYHEsOjMi4LBNJl515p8LFF DJrYZFqgN3qEfQgOfiY/w== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2014-04-14 09:48 +0200, Alexandre Julliard wrote: > Linus Torvalds writes: > >> On Fri, Apr 11, 2014 at 11:45 AM, Brian Gerst wrote: >>> >>> I haven't tested it recently but I do know it has worked on 64-bit >>> kernels. There is no reason for it not to, the only thing not >>> supported in long mode is vm86. 16-bit protected mode is unchanged. >> >> Afaik 64-bit windows doesn't support 16-bit binaries, so I just >> assumed Wine wouldn't do it either on x86-64. Not for any real >> technical reasons, though. >> >> HOWEVER. I'd like to hear something more definitive than "I haven't >> tested recently". The "we don't break user space" is about having >> actual real *users*, not about test programs. >> >> Are there people actually using 16-bit old windows programs under >> wine? That's what matters. It seems that at least some 32-bit programs are also broken, since after upgrading the kernel to 3.14.3 I can no longer start my old chess database program: ,---- | % file CB70.exe | CB70.exe: PE32 executable (GUI) Intel 80386, for MS Windows | % LANG=C wine CB70.exe | modify_ldt: Invalid argument | modify_ldt: Invalid argument | modify_ldt: Invalid argument | modify_ldt: Invalid argument | modify_ldt: Invalid argument `---- And here it just hangs, with wineboot.exe taking 100% CPU. I had to kill first wineboot.exe and then CB70.exe. :-( > Yes, there is still a significant number of users, and we still > regularly get bug reports about specific 16-bit apps. It would be really > nice if we could continue to support them on x86-64, particularly since > Microsoft doesn't ;-) I would rather not set up a virtual machine just for wine (I don't have Windows anymore). Cheers, Sven