Re: Question about verify_area() removal from socket.c

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

 



]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 10
cpu MHz         : 863.873
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips        : 1723.59

# cat /proc/version
 Linux version 2.4.16-pre1 (root@celica.ltc.austin.ibm.com) (gcc version
2.96 20000731 (Red Hat Linux 7.1 2.96-98)) #4 Tue Dec 4 16:46:04 CST 2001

# ./recv01
recv01      1  PASS  :  bad file descriptor successful
recv01      2  PASS  :  invalid socket successful
recv01      3  PASS  :  invalid recv buffer successful
recv01      4  PASS  :  invalid flags set successful
# ./recv01
recv01      1  PASS  :  bad file descriptor successful
recv01      2  PASS  :  invalid socket successful
recv01      3  FAIL  :  invalid recv buffer ; returned 0 (expected -1),
errno 88 (expected 14)
recv01      4  PASS  :  invalid flags set successful
# ./recv01
recv01      1  PASS  :  bad file descriptor successful
recv01      2  PASS  :  invalid socket successful
recv01      3  PASS  :  invalid recv buffer successful
recv01      4  PASS  :  invalid flags set successful
# ./recv01
recv01      1  PASS  :  bad file descriptor successful
recv01      2  PASS  :  invalid socket successful
recv01      3  FAIL  :  invalid recv buffer ; returned 0 (expected -1),
errno 88 (expected 14)
recv01      4  PASS  :  invalid flags set successful
# ./recv01
recv01      1  PASS  :  bad file descriptor successful
recv01      2  PASS  :  invalid socket successful
recv01      3  FAIL  :  invalid recv buffer ; returned 0 (expected -1),
errno 88 (expected 14)
recv01      4  PASS  :  invalid flags set successful


INTEL machine running RED HAT 7.1 with 2.4.16-pre1 and AS I SAID THE FIRST
TIME....it passes sometimes, but tends to fail mostly.

- Robbie

Robert V. Williamson
Linux Test Project
IBM Linux Technology Center
Phone: (512) 838-9295   T/L: 638-9295
http://ltp.sourceforge.net


                                                                                                          
                    "David S.                                                                             
                    Miller"              To:     ak@suse.de                                               
                    <davem@redhat.       cc:     Robert Williamson/Austin/IBM@IBMUS,                      
                    com>                  linux-net@vger.kernel.org                                       
                                         Subject:     Re: Question about verify_area() removal from       
                    12/05/2001            socket.c                                                        
                    06:23 PM                                                                              
                                                                                                          
                                                                                                          



   From: Andi Kleen <ak@suse.de>
   Date: Thu, 6 Dec 2001 01:16:39 +0100

   The socket address copy is handled by move_addr_to_usre()  (which does
   a EFAULT error return as needed)
   The data copy depends on the underlying protocol. UDP/TCP should check
   correctly for faults at least.

I'm beginning to suspect this person is on a non-x86 platform with
dodgy exception handling :-)



-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux