mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* modutils: FATAL: Error running install...
@ 2003-02-24 16:16 Stelian Pop
  2003-02-24 16:27 ` Stelian Pop
  0 siblings, 1 reply; 4+ messages in thread
From: Stelian Pop @ 2003-02-24 16:16 UTC (permalink / raw)
  To: Rusty Russell; +Cc: Linux Kernel Mailing List

With the latest 2.5-bk (and module-init-tools), my logs
are polluted with lines like:
	FATAL: Error running install command for block_major_2
triggered with
	# cat /dev/fd0
where the corresponding line in modprobe.conf is:
	install block-major-2 /bin/true

The problem is reproductible with any 'install' command in
modprobe.conf.

Looking at modprobe source, it fails on the system() call. The
fork()/exec() part works corectly (/bin/true get executed),
but wait4() fails with -ECHILD.

Running 'modprobe block-major-2' from the console works as 
expected.

I believe this is once again related to the exec_usermodehelper()
routines...

Stelian.
-- 
Stelian Pop <stelian@popies.net>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: modutils: FATAL: Error running install...
  2003-02-24 16:16 modutils: FATAL: Error running install Stelian Pop
@ 2003-02-24 16:27 ` Stelian Pop
  2003-02-25  1:27   ` Rusty Russell
  0 siblings, 1 reply; 4+ messages in thread
From: Stelian Pop @ 2003-02-24 16:27 UTC (permalink / raw)
  To: Rusty Russell, Linux Kernel Mailing List; +Cc: Linus Torvalds

On Mon, Feb 24, 2003 at 05:16:27PM +0100, Stelian Pop wrote:

> With the latest 2.5-bk (and module-init-tools), my logs
> are polluted with lines like:
> 	FATAL: Error running install command for block_major_2

And replying to my own message after reading the latest posts
on lkml, I confirm that Mikael Pettersson's patch works for me.

I rediffed it below against the latest bk.

Linus,  please apply.

Stelian.

===== kernel/kmod.c 1.24 vs edited =====
--- 1.24/kernel/kmod.c	Mon Feb 24 04:18:09 2003
+++ edited/kernel/kmod.c	Mon Feb 24 17:19:39 2003
@@ -154,6 +154,7 @@
 
 	/* Unblock all signals. */
 	flush_signals(current);
+	current->sighand->action[SIGCHLD-1].sa.sa_handler = SIG_DFL;
 	spin_lock_irq(&current->sighand->siglock);
 	flush_signal_handlers(current);
 	sigemptyset(&current->blocked);

-- 
Stelian Pop <stelian@popies.net>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: modutils: FATAL: Error running install...
  2003-02-24 16:27 ` Stelian Pop
@ 2003-02-25  1:27   ` Rusty Russell
  2003-02-25 13:24     ` Mikael Pettersson
  0 siblings, 1 reply; 4+ messages in thread
From: Rusty Russell @ 2003-02-25  1:27 UTC (permalink / raw)
  To: Stelian Pop; +Cc: Linux Kernel Mailing List, Linus Torvalds

In message <20030224172734.C29439@deep-space-9.dsnet> you write:
> ===== kernel/kmod.c 1.24 vs edited =====
> --- 1.24/kernel/kmod.c	Mon Feb 24 04:18:09 2003
> +++ edited/kernel/kmod.c	Mon Feb 24 17:19:39 2003
> @@ -154,6 +154,7 @@
>  
>  	/* Unblock all signals. */
>  	flush_signals(current);
> +	current->sighand->action[SIGCHLD-1].sa.sa_handler = SIG_DFL;
>  	spin_lock_irq(&current->sighand->siglock);
>  	flush_signal_handlers(current);
>  	sigemptyset(&current->blocked);

Is there really no cleaner way that this?

Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: modutils: FATAL: Error running install...
  2003-02-25  1:27   ` Rusty Russell
@ 2003-02-25 13:24     ` Mikael Pettersson
  0 siblings, 0 replies; 4+ messages in thread
From: Mikael Pettersson @ 2003-02-25 13:24 UTC (permalink / raw)
  To: Rusty Russell; +Cc: Stelian Pop, Linux Kernel Mailing List, Linus Torvalds

Rusty Russell writes:
 > In message <20030224172734.C29439@deep-space-9.dsnet> you write:
 > > ===== kernel/kmod.c 1.24 vs edited =====
 > > --- 1.24/kernel/kmod.c	Mon Feb 24 04:18:09 2003
 > > +++ edited/kernel/kmod.c	Mon Feb 24 17:19:39 2003
 > > @@ -154,6 +154,7 @@
 > >  
 > >  	/* Unblock all signals. */
 > >  	flush_signals(current);
 > > +	current->sighand->action[SIGCHLD-1].sa.sa_handler = SIG_DFL;
 > >  	spin_lock_irq(&current->sighand->siglock);
 > >  	flush_signal_handlers(current);
 > >  	sigemptyset(&current->blocked);
 > 
 > Is there really no cleaner way that this?

Linus cleaned it up in 2.5.63 -- he added a flag to flush_signal_handlers().

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-25 13:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-24 16:16 modutils: FATAL: Error running install Stelian Pop
2003-02-24 16:27 ` Stelian Pop
2003-02-25  1:27   ` Rusty Russell
2003-02-25 13:24     ` Mikael Pettersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®