8250 libnsl: Raw RPC client sends unlimited data

Review Request #524 - Created May 19, 2017 and submitted

Information
Marcel Telka
illumos-gate
master
8250
807c3a7...
Reviewers
general
This fixes the raw RPC transport in libnsl to properly notify the other party
about the size of the transferred data between client and server.

Please note that the raw RPC transport is primarily used for testing purposes
only.
I tested using the test attached to the bug report:

$ ./test 
Raw:
Server received: 12345678
Server received: 12345678

Door:
Server received: 12345678
clnt_send #2 failed: RPC: Server can't decode arguments
$



$ LD_PRELOAD=$ROOT/lib/libnsl.so.1 ./test 
Raw:
Server received: 12345678
clnt_send #2 failed: RPC: Server can't decode arguments

Door:
Server received: 12345678
clnt_send #2 failed: RPC: Server can't decode arguments
$

Issues

  • 0
  • 0
  • 6
  • 6
Description From Last Updated
Yuri Pankov
Marcel Telka
Yuri Pankov
Jason King
Jason King
Marcel Telka
Review request changed

Status: Closed (submitted)

Change Summary:

commit 2a6fb28d0877f35efb94c09cc03e8088426d0c30
Author:     Marcel Telka <marcel@telka.sk>
AuthorDate: Fri May 19 12:59:57 2017 +0200
Commit:     Dan McDonald <danmcd@joyent.com>
CommitDate: Thu Jun 8 10:25:31 2017 -0400

    8250 libnsl: Raw RPC client sends unlimited data
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Jason King <jason.brian.king+illumos@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

:100644 100644 c8fa67b... 3f31af2... M	usr/src/lib/libnsl/common/mapfile-vers
:100644 100644 8f1766c... 805e41c... M	usr/src/lib/libnsl/rpc/clnt_raw.c
:100644 100644 a3e9e9c... 1fe2ad7... M	usr/src/lib/libnsl/rpc/svc_raw.c
:100644 100644 4e135e7... 9082061... M	usr/src/pkg/manifests/system-header.mf
:100644 100644 c300261... f0c54d2... M	usr/src/uts/common/rpc/Makefile
:100644 000000 d58396b... 0000000... D	usr/src/uts/common/rpc/raw.h
Loading...