Call for testing: OpenSSH-6.2

Kulkarni, Amit (HP-UX Network Security) kulkarniamit at hp.com
Tue Mar 5 00:11:46 EST 2013


Hi,

Used http://www.mindrot.org/openssh_snap/openssh-SNAP-20130304.tar.gz

Applied the suggested patch for :  regress/modpipe.c for  test integrity.sh

Results :

OS              Build_Target                CC
OpenSSL      BUILD TEST
==============  =========================== ================ ============ ===== =================
HP-UX 11.31     ia64-hp-hpux11.31           HP C/aC++ B3910B A.06.12
0.9.8w       OK    all tests passed
HP-UX 11.31     PA-RISC-hp-hpux11.31           HP C/aC++ Developer's Bundle B9007AA
0.9.8x       OK    all tests passed
HP-UX 11.23     ia64-hp-hpux11.23                    HP C/aC++ B3910B A.06.25
0.9.8x       OK    all tests passed
HP-UX 11.23     PA-RISC -hp-hpux11.23           HP C/aC++ Developer's Bundle B9007AA
0.9.8x       OK    all tests passed
HP-UX 11.11     PA-RISC -hp-hpux11.11           HP C/aC++ Developer's Bundle B9007AA
0.9.8y       FAIL *1

# *1 :   
        cc -I. -I. -I/usr/local/zlib/include  -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -DSSHDIR=\"/usr/local/etc\"  -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\"  -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\"  -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\"  -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\"  -D_PATH_SSH_PKCS11_HELPER=\"/usr/local/libexec/ssh-pkcs11-helper\"  -D_PATH_SSH_PIDDIR=\"/var/run\"  -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\"  CC=cc -DHAVE_CONFIG_H -o regress/modpipe ./regress/modpipe.c \
        -L. -Lopenbsd-compat/ -L/usr/local/zlib/lib  -lopenbsd-compat -lssh -lopenbsd-compat -lcrypto -lz -lnsl -lxnet  -lsec
/usr/ccs/bin/ld: Can't open CC=cc
/usr/ccs/bin/ld: No such file or directory
*** Error exit code 1
Stop.


Regards,
Amit Kulkarni

-----Original Message-----
From: openssh-unix-dev-bounces+kulkarniamit=hp.com at mindrot.org [mailto:openssh-unix-dev-bounces+kulkarniamit=hp.com at mindrot.org] On Behalf Of Damien Miller
Sent: Monday, March 04, 2013 5:15 AM
To: Kevin Brott
Cc: openssh-unix-dev at mindrot.org
Subject: Re: Call for testing: OpenSSH-6.2

On Fri, 1 Mar 2013, Kevin Brott wrote:

> # *5 make tests fails immediately - xlc_r # *6 make tests fails 
> immediately - gcc

I suspect that the patch I just sent will avoid these.

> # *7 Make tests fails here:  hangs forever
>      run test forwarding.sh ...
>      Warning: Could not request remote forwarding.
>      ssh_exchange_identification: Connection closed by remote host
>      cmp: EOF on /usr/src/UTILS/SSH/openssh/regress/ls.copy
>      corrupted copy of /bin/ls
>      Warning: remote port forwarding failed for listen port 3350

This might be a spurious failure caused by the regress script picking a port that is already in use on the host running the tests. Could you check whether anything is using ports 3300-3399? You can adjust the leading digits of the ports that the test choses using the 'base='
variable at the start of regress/forwarding.sh

> # *8 make test failes here:
>      run test integrity.sh ...
>      test integrity: hmac-sha1 @2900 Invalid modification spec "xor:2900:1"
> ssh_exchange_identification: Connection closed by remote host.
>      unexpected error mac hmac-sha1 at 2900

This one is strange - the modpipe tool is not parsing its commandline properly. I suspect that HP/UX's sscanf(3) lacks the "hh" conversion.

Could you try this patch?


Index: regress/modpipe.c
===================================================================
RCS file: /var/cvs/openssh/regress/modpipe.c,v
retrieving revision 1.5
diff -u -p -r1.5 modpipe.c
--- regress/modpipe.c	20 Feb 2013 10:16:09 -0000	1.5
+++ regress/modpipe.c	3 Mar 2013 23:44:12 -0000
@@ -74,20 +76,29 @@ static void
 parse_modification(const char *s, struct modification *m)  {
 	char what[16+1];
-	int n;
+	int n, m1, m2;
 
 	bzero(m, sizeof(*m));
-	if ((n = sscanf(s, "%16[^:]%*[:]%lli%*[:]%hhi%*[:]%hhi",
-	    what, &m->offset, &m->m1, &m->m2)) < 3)
+	if ((n = sscanf(s, "%16[^:]%*[:]%lli%*[:]%i%*[:]%i",
+	    what, &m->offset, &m1, &m2)) < 3)
 		errx(1, "Invalid modification spec \"%s\"", s);
 	if (strcasecmp(what, "xor") == 0) {
-		m->what = MOD_XOR;
 		if (n > 3)
 			errx(1, "Invalid modification spec \"%s\"", s);
+		if (m1 < 0 || m1 > 0xff)
+			errx(1, "Invalid XOR modification value");
+		m->what = MOD_XOR;
+		m->m1 = m1;
 	} else if (strcasecmp(what, "andor") == 0) {
-		m->what = MOD_AND_OR;
 		if (n != 4)
 			errx(1, "Invalid modification spec \"%s\"", s);
+		if (m1 < 0 || m1 > 0xff)
+			errx(1, "Invalid AND modification value");
+		if (m2 < 0 || m2 > 0xff)
+			errx(1, "Invalid OR modification value");
+		m->what = MOD_AND_OR;
+		m->m1 = m1;
+		m->m2 = m2;
 	} else
 		errx(1, "Invalid modification type \"%s\"", what);  } _______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev at mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


More information about the openssh-unix-dev mailing list