mlelstv bfb6412a0b If an untraced process sleeps in recvmsg/sendmsg, the syscall does not
allocate an iov structure for ktrace. When tracing is then enabled
and the process wakes up, it crashes the kernel.

Undo the last commit which introduced this error path.

Avoid the mentioned kmem_alloc assertion by adding a sanity check analog
to similar code in sys_generic.c for I/O on file handles instead of
sockets.

This also causes the syscall to return EMSGSIZE if the msg_iovlen member
of the msg structure is less than or equal to 0, as defined in
recvmsg(2)/sendmsg(2).
2012-12-29 10:22:40 +00:00
..
2012-10-02 01:46:20 +00:00
2012-11-24 15:14:32 +00:00
2012-08-30 02:23:14 +00:00
2012-12-21 19:39:48 +00:00
2012-08-30 02:25:35 +00:00
2012-11-20 11:06:27 +00:00
2012-08-04 12:38:20 +00:00
2012-08-28 15:52:19 +00:00
2012-10-02 01:46:20 +00:00
2012-10-18 19:33:38 +00:00