From: "Steven N. Hirsch" <shirsch@ibm.net>
To: adam@yggdrasil.com
Cc: David Woodhouse <Dave@imladris.demon.co.uk>,
Mikael.Pettersson@sophia.inria.fr, axp-list@redhat.com,
linux-kernel@vger.rutgers.edu
Subject: Re: daemon-less kmod & Alpha no-go!
Date: Tue, 21 Apr 1998 20:27:58 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.3.95.980421202647.2756B-100000@air.steve.net> (raw)
In-Reply-To: <Pine.LNX.3.95.980421074859.2503D-100000@air.steve.net>
All,
I've found the underlying problem with daemonless 'kmod' on Alpha.
Apparently, glibc header changes are to blame. I became suspicious after
noticing that kmod is compiled with __KERNEL__ defined. Turns out to be a
kernel vs. user space disagreement as to the storage type and size of
sigset_t.
The following quick hack brings kmod to life:
*** kmod.c.orig Mon Apr 20 19:56:45 1998
--- kmod.c Tue Apr 21 20:10:42 1998
***************
*** 62,68 ****
the signal just right.
*/
spin_lock_irq(¤t->sigmask_lock);
! sigfillset(¤t->blocked);
spin_unlock_irq(¤t->sigmask_lock);
set_fs(KERNEL_DS); /* Allow execve args to be in kernel space. */
--- 62,68 ----
the signal just right.
*/
spin_lock_irq(¤t->sigmask_lock);
! memset (¤t->blocked, '\0xff', sizeof(current->blocked));
spin_unlock_irq(¤t->sigmask_lock);
set_fs(KERNEL_DS); /* Allow execve args to be in kernel space. */
I get dizzy trying to figure out who is getting which prototype from
where, but maybe someone intimately familiar with the new glibc headers
can suggest a cleaner fix?
Enjoy.
Steve
next prev parent reply other threads:[~1998-04-22 0:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E0yRZ3z-000692-00@imladris.demon.co.uk>
1998-04-21 11:51 ` daemon-less kmod & Alpha no-go! Steven N. Hirsch
1998-04-22 0:27 ` Steven N. Hirsch [this message]
[not found] <199804210917.LAA00234@zephir.inria.fr>
1998-04-21 12:01 ` Steven N. Hirsch
1998-04-21 19:41 ` Richard Henderson
1998-04-22 0:53 ` Steven N. Hirsch
[not found] <Pine.SOL.3.95L.980420234851.24275A-100000@unix12.andrew.cmu.edu>
1998-04-21 11:17 ` Steven N. Hirsch
[not found] <199804210131.SAA05828@adam.yggdrasil.com>
1998-04-21 2:48 ` Steven N. Hirsch
[not found] <Pine.SOL.3.95L.980420092318.3161A-100000@unix12.andrew.cmu.edu>
1998-04-21 1:06 ` Steven N. Hirsch
1998-04-20 1:13 Steven N. Hirsch
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox