Very weird bug in fs/exec.c

Very weird bug in fs/exec.c

Post by Felipe Contrera » Sat, 29 Jun 2002 06:30:09



Hi,

I've found a weird bug that seems to only happend in my system. It makes
recursive makes segfault, like:

test:
        ( make -v )

After a lot of work tracking it I finally found what causes it, I'm attaching
the patch that generates the bug, it's a diff from 2.5.18 to 2.5.19.

I'm saying it's weird because just adding a printk before do_execve returns
successfully makes the bug dissapear.

BTW, yes, my system is very special.

--
Felipe Contreras

  bug.diff
3K Download
 
 
 

Very weird bug in fs/exec.c

Post by Jordan Breedin » Sat, 29 Jun 2002 13:40:07



> Hi,

> I've found a weird bug that seems to only happend in my system. It makes
> recursive makes segfault, like:

> test:
>    ( make -v )

> After a lot of work tracking it I finally found what causes it, I'm attaching
> the patch that generates the bug, it's a diff from 2.5.18 to 2.5.19.

> I'm saying it's weird because just adding a printk before do_execve returns
> successfully makes the bug dissapear.

> BTW, yes, my system is very special.

I can verify that a lot of weird problems (compiles failing with seg
faults, `java -version` not running, other java programs not running and
in most cases the program in question would succeed if I ran it through
strace first) I was seeing in kernels after 2.5.18 (ie. 2.5.20-dj1,
2.5.20-dj4, 2.5.23-dj1 and 2.5.24-dj1) go away if I reverse the patch
included in the original email for this thread.  Glad to find out what
had been causing that mess!  Thanks.

Jordan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. What's the difference between in Exec and Exec exec ...

Well, I mean, in fvwm the normal way to add an item in fvwm's Menu
is write Exec exec program_name.
However, Exec program_name will also work.
But, what's the difference between these two ways?
Now, I want to add an item to execute a
command `LC_ALL=en_US.ISO8859-1 xterm'. The first can't work at all.
So I have to write `Exec LC_ALL=en_US.ISO8859-1 xterm'.
Can this make some damages to my system?

Thanks.

--
  Hongzheng Wang
  Department of Electronics Engineering
  Tsinghua University

2. what video card to buy ??

3. Kyocera FS 1600 or FS 1600+ Printer drivers ( FS-1600 FS-1600+)

4. US => N. VA => IBM AIX UNIX Wizard Needed for BIG BUCKS$$$$$$

5. Weird Ping, weird FTP, weird Telnet... HELP!!!

6. connect to aix via windows 2000 server

7. Weird, weird, weird issue ....

8. Two monitors: Different approach?

9. 2.4.21-rc2 and rc1 compile problem in fs/exec.c + PATCH

10. race in 2.5.62/fs/exec.c?

11. fs/exec.c and binfmt-xxx in 2.4.14

12. FTP (site exec) bug...

13. exec(2) bug in 2.5.1?