public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] sendto syscall fails because of the error value missmatch from 3.6-rc1 kernel onwards
       [not found] <mailman.414062.1338991083.27891.ltp-list@lists.sourceforge.net>
@ 2012-08-25 11:42 ` Shyju PV
  2012-08-26 11:18   ` Jan Stancek
  0 siblings, 1 reply; 2+ messages in thread
From: Shyju PV @ 2012-08-25 11:42 UTC (permalink / raw)
  To: ltp-list; +Cc: 'Sanil kumar', nagamani.mantha

LTP_Version: 2012-06-14 
LTP Test case: sendto01 
Description : Verifies the sendto syscall errorno for various failure cases 
Failure Analysis : when the invalid flag is set, The error no EOPNOTSUPP
(95) and syscall returns 0 .instead LTP expects EPIPE (32) and the syscall
return value as -1. 
Fix : Modify  the LTP code with respect the the system return values of the
latest kernel(3.6-rc1) 
Test case passed in Kernel 3.5 
Failed from  3.6-rc1,rc2and rc3 

Test output :: <<<test_output>>> 
incrementing stop 
sendto01    1  TPASS  :  bad file descriptor successful 
sendto01    2  TPASS  :  invalid socket successful 
sendto01    3  TPASS  :  invalid send buffer successful 
sendto01    4  TPASS  :  connected TCP successful 
sendto01    5  TPASS  :  not connected TCP successful 
sendto01    6  TPASS  :  invalid to buffer length successful 
sendto01    7  TPASS  :  invalid to buffer successful 
sendto01    8  TPASS  :  UDP message too big successful 
sendto01    9  TPASS  :  local endpoint shutdown successful 
sendto01   10  TFAIL  :  invalid flags set ; returned -1 (expected 0), errno
95 
(expected 32) 
<<<execution_status>>> 
initiation_status="ok" 
duration=0 termination_type=exited termination_id=1 corefile=no 
cutime=0 cstime=0 
<<<test_end>>> 
INFO: ltp-pan reported some tests FAIL

Shyju


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] sendto syscall fails because of the error value missmatch from 3.6-rc1 kernel onwards
  2012-08-25 11:42 ` [LTP] sendto syscall fails because of the error value missmatch from 3.6-rc1 kernel onwards Shyju PV
@ 2012-08-26 11:18   ` Jan Stancek
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Stancek @ 2012-08-26 11:18 UTC (permalink / raw)
  To: shyju pv; +Cc: Sanil kumar, ltp-list, nagamani mantha

Hi,

this looks like kernel commit, which caused it:

commit cf60af03ca4e71134206809ea892e49b92a88896
Author: Yuchung Cheng <ycheng@google.com>
Date:   Thu Jul 19 06:43:09 2012 +0000
    net-tcp: Fast Open client - sendmsg(MSG_FASTOPEN)

And it depends also on value of tcp_fastopen:
echo 1 > /proc/sys/net/ipv4/tcp_fastopen
# ./sendto01
...
sendto01    1  TFAIL  :  invalid flags set ; returned -1 (expected 0), errno 106 (expected 32)

# echo 0 > /proc/sys/net/ipv4/tcp_fastopen
# ./sendto01
...
sendto01    1  TFAIL  :  invalid flags set ; returned -1 (expected 0), errno 95 (expected 32)

Regards,
Jan

----- Original Message -----
> From: "Shyju PV" <shyju.pv@huawei.com>
> To: ltp-list@lists.sourceforge.net
> Cc: "Sanil kumar" <sanil.kumar@huawei.com>, "nagamani mantha" <nagamani.mantha@huawei.com>
> Sent: Saturday, 25 August, 2012 1:42:09 PM
> Subject: [LTP] sendto syscall fails because of the error value missmatch	from 3.6-rc1 kernel onwards
> 
> LTP_Version: 2012-06-14
> LTP Test case: sendto01
> Description : Verifies the sendto syscall errorno for various failure
> cases
> Failure Analysis : when the invalid flag is set, The error no
> EOPNOTSUPP
> (95) and syscall returns 0 .instead LTP expects EPIPE (32) and the
> syscall
> return value as -1.
> Fix : Modify  the LTP code with respect the the system return values
> of the
> latest kernel(3.6-rc1)
> Test case passed in Kernel 3.5
> Failed from  3.6-rc1,rc2and rc3
> 
> Test output :: <<<test_output>>>
> incrementing stop
> sendto01    1  TPASS  :  bad file descriptor successful
> sendto01    2  TPASS  :  invalid socket successful
> sendto01    3  TPASS  :  invalid send buffer successful
> sendto01    4  TPASS  :  connected TCP successful
> sendto01    5  TPASS  :  not connected TCP successful
> sendto01    6  TPASS  :  invalid to buffer length successful
> sendto01    7  TPASS  :  invalid to buffer successful
> sendto01    8  TPASS  :  UDP message too big successful
> sendto01    9  TPASS  :  local endpoint shutdown successful
> sendto01   10  TFAIL  :  invalid flags set ; returned -1 (expected
> 0), errno
> 95
> (expected 32)
> <<<execution_status>>>
> initiation_status="ok"
> duration=0 termination_type=exited termination_id=1 corefile=no
> cutime=0 cstime=0
> <<<test_end>>>
> INFO: ltp-pan reported some tests FAIL
> 
> Shyju
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest in
> malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2012-08-26 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.414062.1338991083.27891.ltp-list@lists.sourceforge.net>
2012-08-25 11:42 ` [LTP] sendto syscall fails because of the error value missmatch from 3.6-rc1 kernel onwards Shyju PV
2012-08-26 11:18   ` Jan Stancek

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