execve-bug ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linux rrlf 2.6.5-7.151-default #1 Fri Mar 18 11:31:21 UTC 2005 i686 i686 i386 GNU/Linux

----------------- new.asm -------------------------
bits 32
section .text

global _start

msg db "och bin",0x0
msg_len equ $-msg 

_start:
           pusha
	   mov eax,4
	   mov ebx,1
	   mov ecx,msg
	   mov edx,msg_len
	   int 0x80
	   
	   popa
	   xor eax,eax
	   inc eax
	   int 0x80
---------------------------------------------------	   


shell# nasm -f elf -o new.o new.asm
shell# ld -o new new.o
shell# ./new
och binshell#







Linux rrlf 2.6.11 #2 Thu May 12 15:46:31 CEST 2005 i686 i686 i386 GNU/Linux

-------------- new.asm ----------------------------
bits 32
section .text

global _start

msg db "och bin",0x0
msg_len equ $-msg 

_start:
           pusha
	   mov eax,4
	   mov ebx,1
	   mov ecx,msg
	   mov edx,msg_len
	   int 0x80
	   
	   popa
	   xor eax,eax
	   inc eax
	   int 0x80
----------------------------------------------------

shell# nasm -f elf -o new.o new.asm 
shell# ld -o new new.o
shell# ./new
Segmentation Fault.



i even tried to execute the binary i've compiled on 2.6.5.x but it didnt
work : Segmentation Fault. So i think its a bug in the "execve"-function. 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux