lkml.org 
[lkml]   [2012]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Breaking userspace? Re: 3.0.24 broke aufofs on mixed 32/64bit environment
From
Date
Am Dienstag, den 24.04.2012, 12:53 -0700 schrieb Linus Torvalds:
> On Tue, Apr 24, 2012 at 9:12 AM, Michael Tokarev <mjt@tls.msk.ru> 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




\
 
 \ /
  Last update: 2012-04-24 22:49    [W:0.084 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site