Re: CURRENT: scp stalling & stopping all networking

2022-10-06 Thread Courtney

Hi Stuart,

All the information you need coming right up!

Snapshot: not sure how to check, GENERIC.MP#767?

When did this start: I can't pinpoint it, but I'd say Tuesday was when I 
noticed


Is there any particular debugging tools I can use to provide anymore 
useful information?


dmesg:


OpenBSD 7.2-current (GENERIC.MP) #767: Tue Oct  4 23:38:08 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34215931904 (32630MB)
avail mem = 33161555968 (31625MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.3 @ 0xcb9f (73 entries)
bios0: vendor American Megatrends Inc. version "2604" date 02/25/2022
bios0: ASUS ROG STRIX B550-F GAMING
acpi0 at bios0: ACPI 6.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT SSDT FIDT FPDT MCFG HPET IVRS VFCT 
BGRT WPBT TPM2 PCCT SSDT CRAT CDIT SSDT SSDT SSDT SSDT WSMT APIC SSDT SSDT
acpi0: wakeup devices GP12(S4) GP13(S4) XHC0(S4) GP30(S4) GP31(S4) 
X161(S4) SWUS(S4) SWDS(S4) X162(S4) PTXH(S4) X1_1(S4) X1_2(S4) X1_3(S4) 
I225(S4) X162(S4) M2_2(S4)

acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xf000, bus 0-127
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 7 5800X 8-Core Processor, 3792.95 MHz, 19-21-00
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,PKU,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 
64b/line 8-way L2 cache, 32MB 64b/line 16-way L3 cache

cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: AMD Ryzen 7 5800X 8-Core Processor, 3792.87 MHz, 19-21-00
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,PKU,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 
64b/line 8-way L2 cache, 32MB 64b/line 16-way L3 cache

cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: AMD Ryzen 7 5800X 8-Core Processor, 3792.87 MHz, 19-21-00
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,PKU,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu2: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 
64b/line 8-way L2 cache, 32MB 64b/line 16-way L3 cache

cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: AMD Ryzen 7 5800X 8-Core Processor, 3792.87 MHz, 19-21-00
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,PKU,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu3: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 
64b/line 8-way L2 cache, 32MB 64b/line 16-way L3 cache

cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 8 (application processor)
cpu4: AMD Ryzen 7 5800X 8-Core Processor, 3792.88 MHz, 19-21-00
cpu4: 

Re: CURRENT: scp stalling & stopping all networking

2022-10-06 Thread Stuart Henderson
On 2022-10-05, Courtney  wrote:
> $ ssh -V
> OpenSSH_9.1, LibreSSL 3.6.0
>
> scp has been stalling on my system and hanging up my networking stack.

Do you know when it started?

What snapshot are/were you running?

It is always helpful to include dmesg when reporting a problem.


> I am probably doing this wrong, but I have been having to delete, down, up
> and sh /etc/netstart to recover networking, or doing a reboot.

That you are having to do this to recover suggests that the problem
is not with ssh itself.


> It seems to happen with larger files, whether I use the -O flag for 
> legacy or
> not. I have tried sending to:
>
> - FreeBSD 13.1 (8.8)
> - Rocky 8 (8.0)
> - Ubuntu 22.04 (8.9)
>
> I have not been doing an path expansion to the dest path. I tested from
> OpenSSH 9.1 -> 9.1, no problem.
>
> This is the output I get when running scp to a host with an older ssh 
> version:
>
> scp: debug3: SSH2_FXP_STATUS 0
> scp: debug3: In write loop, ack for 1346 32768 bytes at 43941888
> scp: debug3: Sent message SSH2_FXP_WRITE I:1411 O:46071808 S:32768
> scp: debug3: SSH2_FXP_STATUS 0
> scp: debug3: In write loop, ack for 1347 32768 bytes at 43974656
> scp: debug3: Sent message SSH2_FXP_WRITE I:1412 O:46104576 S:32768
> scp: debug3: SSH2_FXP_STATUS 0
> scp: debug3: In write loop, ack for 1348 32768 bytes at 44007424
> scp: debug3: Sent message SSH2_FXP_WRITE I:1413 O:46137344 S:32768
> scp: debug3: SSH2_FXP_STATUS 0
> scp: debug3: In write loop, ack for 1349 32768 bytes at 44040192
> scp: debug3: Sent message SSH2_FXP_WRITE I:1414 O:46170112 S:32768
> scp: debug3: SSH2_FXP_STATUS 0
> scp: debug3: In write loop, ack for 1350 32768 bytes at 44072960
> scp: debug3: Sent message SSH2_FXP_WRITE I:1415 O:46202880 S:32768
> scp: debug3: SSH2_FXP_STATUS 0
> scp: debug3: In write loop, ack for 1351 32768 bytes at 44105728
> debug2: channel 0: rcvd adjust 131072
>
>
> I just did a sysupgrade -s today before posting. As it stands, with 9.1 
> I can't
> scp to versions of ssh older than 9.1.
>
>


-- 
Please keep replies on the mailing list.



CURRENT: scp stalling & stopping all networking

2022-10-05 Thread Courtney

$ ssh -V
OpenSSH_9.1, LibreSSL 3.6.0

scp has been stalling on my system and hanging up my networking stack.
I am probably doing this wrong, but I have been having to delete, down, up
and sh /etc/netstart to recover networking, or doing a reboot.

It seems to happen with larger files, whether I use the -O flag for 
legacy or

not. I have tried sending to:

- FreeBSD 13.1 (8.8)
- Rocky 8 (8.0)
- Ubuntu 22.04 (8.9)

I have not been doing an path expansion to the dest path. I tested from
OpenSSH 9.1 -> 9.1, no problem.

This is the output I get when running scp to a host with an older ssh 
version:


scp: debug3: SSH2_FXP_STATUS 0
scp: debug3: In write loop, ack for 1346 32768 bytes at 43941888
scp: debug3: Sent message SSH2_FXP_WRITE I:1411 O:46071808 S:32768
scp: debug3: SSH2_FXP_STATUS 0
scp: debug3: In write loop, ack for 1347 32768 bytes at 43974656
scp: debug3: Sent message SSH2_FXP_WRITE I:1412 O:46104576 S:32768
scp: debug3: SSH2_FXP_STATUS 0
scp: debug3: In write loop, ack for 1348 32768 bytes at 44007424
scp: debug3: Sent message SSH2_FXP_WRITE I:1413 O:46137344 S:32768
scp: debug3: SSH2_FXP_STATUS 0
scp: debug3: In write loop, ack for 1349 32768 bytes at 44040192
scp: debug3: Sent message SSH2_FXP_WRITE I:1414 O:46170112 S:32768
scp: debug3: SSH2_FXP_STATUS 0
scp: debug3: In write loop, ack for 1350 32768 bytes at 44072960
scp: debug3: Sent message SSH2_FXP_WRITE I:1415 O:46202880 S:32768
scp: debug3: SSH2_FXP_STATUS 0
scp: debug3: In write loop, ack for 1351 32768 bytes at 44105728
debug2: channel 0: rcvd adjust 131072


I just did a sysupgrade -s today before posting. As it stands, with 9.1 
I can't

scp to versions of ssh older than 9.1.