socket->ops->connect() impossible in-kernel

From: Jeff V. Merkey (jmerkey@timpanogas.com)
Date: Mon Aug 14 2000 - 03:16:27 EST


If you open s socket and pass the handle into user space, then connect
on SOCK_STREAM works from user space, but does not seem to work in
kernel space (hangs on signal). I noticed tht ncpfs, smbfs, nbd, and
just about every other drivers opens the socket in user space and
connects then passes the socket handle into the drivers via an ioctl().
The only exception seems to be the /net/sunrpc stuff.

connecting in kernel seems to be a "jolting" experience. I see hangs,
-512, -98, -111, and -115 errors returned in an arbitrary manner. This
seems busted on 2.2.17.

Is it just a bad idea to use connect() in-kernel?

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:32 EST