Bug 203059 - When sctp sendmsg use , it return Invalid argument.
Summary: When sctp sendmsg use , it return Invalid argument.
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: lksctp-tools (Show other bugs)
(Show other bugs)
Version: 4.4
Hardware: x86_64 Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Karsten Hopp
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-18 04:36 UTC by eric, kim
Modified: 2007-11-17 01:14 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-08-18 11:38:07 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description eric, kim 2006-08-18 04:36:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon; SV1; .NET CLR 1.1.4322)

Description of problem:
We are going to use lksctp1.0.6 in X86-64 bit machine, but lksctp-1.0.6's all function test program return error(  Invalid argument )

It may be sendmsg's cmsghdr size Error. 

Version-Release number of selected component (if applicable):
lksctp-tools-1.0.6-1

How reproducible:
Always


Steps to Reproduce:
1. change directory  lksctp-tools-1.0.6/src/func_tests/
2. run test program 
3. test_1_to_1_sendmsg

Actual Results:
test_1_to_1_sendmsg.c  1 PASS : sendmsg() with a bad socket descriptor - EBADF
test_1_to_1_sendmsg.c  2 PASS : sendmsg() with invalid socket - ENOTSOCK
test_1_to_1_sendmsg.c  3 PASS : sendmsg() on a listening socket - EPIPE
test_1_to_1_sendmsg.c  4 PASS : sendmsg() with invalid iovec ptr - EFAULT
test_1_to_1_sendmsg.c  5 PASS : sendmsg() with invalid iovec length - EINVAL
test_1_to_1_sendmsg.c  6 PASS : sendmsg() with invalid msghdr ptr - EFAULT
test_1_to_1_sendmsg.c  7 BROK : sendmsg with invalid sinfo flags count:-1, errno:14


Expected Results:
test_1_to_1_sendmsg.c  1 PASS : sendmsg() with a bad socket descriptor - EBADF
test_1_to_1_sendmsg.c  2 PASS : sendmsg() with invalid socket - ENOTSOCK
test_1_to_1_sendmsg.c  3 PASS : sendmsg() on a listening socket - EPIPE
test_1_to_1_sendmsg.c  4 PASS : sendmsg() with invalid iovec ptr - EFAULT
test_1_to_1_sendmsg.c  5 PASS : sendmsg() with invalid iovec length - EINVAL
test_1_to_1_sendmsg.c  6 PASS : sendmsg() with invalid msghdr ptr - EFAULT
test_1_to_1_sendmsg.c  7 PASS : sendmsg() with invalid sinfo flags - EINVAL
test_1_to_1_sendmsg.c  8 PASS : sendmsg() with SCTP_EOF flag - EINVAL
test_1_to_1_sendmsg.c  9 PASS : sendmsg() with SCTP_ABORT flag - EINVAL
test_1_to_1_sendmsg.c 10 PASS : sendmsg() on a closed association - EPIPE
test_1_to_1_sendmsg.c 11 PASS : sendmsg() from accept socket to client - SUCCESS
test_1_to_1_sendmsg.c 12 PASS : sendmsg() from client to server - SUCCESS
test_1_to_1_sendmsg.c 13 PASS : sendmsg() from unconnected clt to server - SUCCESS
test_1_to_1_sendmsg.c 14 PASS : sendmsg() on a SHUT_RD socket - SUCCESS

Additional info:
We have a sctp Application with using lksctp.1.0.6 in 32-bit Machine ,and we are going to upgrading Machine to 64-bit machine. but We are in trouble as lksctp's Error case

and Out Application Source are normally processing in Solaris 10.

Comment 1 Karsten Hopp 2006-08-18 11:38:07 UTC
Same here as in bug #203054
lksctp-tools-1.0.6 is not compatible with kernel-2.6.9. 
You need to either update your kernel (which is totally unsupported and voids
your RHEL-4 subscription), downgrade to lksctp-tools-1.0.2, or switch to RHEL-5
as soon as it is released. Please talk to your Red Hat sales contact about
getting a pre-release version for testing purposes. 


Note You need to log in before you can comment on or make changes to this bug.