Re: SVN r339216 breaks ssh to i386 devices

From: Michael Butler <imb_at_protected-networks.net>
Date: Tue, 9 Oct 2018 16:54:15 -0400
On 10/9/18 3:18 PM, Dag-Erling Smørgrav wrote:
> Michael Butler <imb_at_protected-networks.net> writes:
>> Marek Zarychta <zarychtam_at_plan-b.pwste.edu.pl> writes:
>>> I have connected serial console to affected box and upgraded system
>>> from patched sources. I am sorry to say that this patch doesn't
>>> solve the issue for 32-bit ARM (RPi2). Still sshd terminates session
>>> with the error "fatal: mm_getpwnamallow: receive get struct passwd
>>> failed [preauth]".
>> My experience is similar - there maybe another 32/64-bit issue :-(
> 
> Correct, there is a size_t being passed as as an u64 as well.  That
> explains why arm32 was broken too, and not just i386.  The quick fix is
> to replace size_t with u_int64_t in sshbuf_get_passwd(), on line 513 of
> sshbuf-getput-basic.c (with my previous patch applied).  I have a full
> patch in the pipeline.

I can confirm that SVN r339263 solves this for me - thanks!

	imb
Received on Tue Oct 09 2018 - 18:54:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:18 UTC