From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757576Ab2DXUmy (ORCPT ); Tue, 24 Apr 2012 16:42:54 -0400 Received: from www17.your-server.de ([213.133.104.17]:49393 "EHLO www17.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753151Ab2DXUmx (ORCPT ); Tue, 24 Apr 2012 16:42:53 -0400 Message-ID: <1335300159.1393.13.camel@localhost.localdomain> Subject: Re: Breaking userspace? Re: 3.0.24 broke aufofs on mixed 32/64bit environment From: Thomas Meyer To: Linus Torvalds Cc: Michael Tokarev , Ian Kent , "stable@kernel.org" , autofs@vger.kernel.org, Linux-kernel Date: Tue, 24 Apr 2012 22:42:39 +0200 In-Reply-To: References: <4F94222C.6080608@msgid.tls.msk.ru> <1335172741.2226.10.camel@perseus.themaw.net> <4F958352.7050106@msgid.tls.msk.ru> <4F95897B.2040103@msgid.tls.msk.ru> <4F959A5A.8070907@msgid.tls.msk.ru> <4F96D0E7.9060000@msgid.tls.msk.ru> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-2.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Authenticated-Sender: thomas@m3y3r.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, den 24.04.2012, 12:53 -0700 schrieb Linus Torvalds: > On Tue, Apr 24, 2012 at 9:12 AM, Michael Tokarev wrote: > > > > The userspace is running debian stable (squeeze). Debian has autofs > > package based on upstream 5.0.4 version. That (upstream) version has > > the "bug-compat" code in it, in daemon/automount.c: > > > > static size_t get_kpkt_len(void) > > { > > size_t pkt_len = sizeof(struct autofs_v5_packet); > > struct utsname un; > > > > uname(&un); > > > > if (pkt_len % 8) { > > if (strcmp(un.machine, "alpha") == 0 || > > strcmp(un.machine, "ia64") == 0 || > > strcmp(un.machine, "x86_64") == 0 || > > strcmp(un.machine, "ppc64") == 0) > > pkt_len += 4; > > Ugh. > > So how did this break for Thomas Mayer (there was another person > involved too, I forget the details)? Is this code somehow > config-dependent so that it doesn't even get compiled for some cases? It broke the autofs feature of systemd (32bit) on a 64bit kernel, which resulted in an endless wait in the boot process. I don't use the autofs tools. I guess the fix in the autofs package to compensate the kernel bug, which has now been fixed, breaks the autofs package. The fix in the kernel makes systemd work correctly. thomas