From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 4E3E43858D37 for ; Thu, 6 Oct 2022 17:36:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4E3E43858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 296Fi4F2021271 for ; Thu, 6 Oct 2022 17:36:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-type : mime-version; s=corp-2022-7-12; bh=KKC1RZOwwvMpCqBAHgx6X77DZiXdkik7ZhWTYdU6oD8=; b=N+iezUShg86IvT9oz85AhsMcpEfYuQ0P1WIngeJpbnFtvg+dZJ7/+NFH6pib+cWskLdh JKO7hb897ZaLuKAqY8u5Ks/WNMwAcSP77SrfEYhEGM55juiwyvheq8+QSQ8GxJSwaDhH qE2WW9u9CbeG5DFm1ZHl9R/tunf+1ITqwzHctkkhJmkgbQfJ/rf3PiD293AXNoEoQO65 VJP7bcOtkDQxumHmBDnNb7eVEPCxInmGe0k74wUMxqJbBAlFqDl9SIar6OqQoe1np191 Dk2Xf2HPH3zNd2GWtQBhbn4VOFs9bCq3qQ2RNcD62IWMQVNEhCYsfrWo6JaCrEbbvw9z WA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jxdead0vw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 06 Oct 2022 17:36:13 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 296HPpAg030056 for ; Thu, 6 Oct 2022 17:36:12 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2170.outbound.protection.outlook.com [104.47.55.170]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3jxc06t1cw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 06 Oct 2022 17:36:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fYo5MS9zQm7Sy/YoT4xBHOKVNJsfI15fDVTYZJQxgBql3Y9Zeogqu7YpkIPMAAQzf6dC25UfT2y4MStUqi2jFJB9bGdB25UYMMzhsPoeY8Vdb3SzDdZbuODNx5FlzYI1RuMAqlwg/FBPFM7z5bYI+umHwtduaheJ40d3u+fTnnL+GSsx36I3NJ/3qfi+THY7KnPxG2+WQShyVPBnULokgzP7vPVV0ZwQC0EiDt/D5YydWLR9f3Pnc9PtXy5V81bb3WLDLWS9aqlHHQwW7z4rH5tjLO1Icav8UoECZ0mvPVc1FNPOcNK+O82l6/XFTggwwiawN+kufIqDAT7iDkjGTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KKC1RZOwwvMpCqBAHgx6X77DZiXdkik7ZhWTYdU6oD8=; b=Vr8kg/hN+iJqB54qvyYsTvQtfWcSm4zarGwCEpTwP9vTlysgRj0MAUX4jSC8Jhmho8P6GBB0f864KZRiFPL7gxgO/4y75sqzqfRQR2/DDggN3IOYEEEX+ZSawJyGlQkEXIW1FQ9e49ZEA/vffCN567rmweY4MLROg5CDu2UpfWL0tdst8dj1PVmVDN9NUajnN16nHcMyKNefxCo0yezC1JXTpX3r9KArexxZ3ZRsi2iIsxd1pR4zXb+9zVP1d8CqonIIdUk6xogub82ArOBLJKhzpaEfcUaXDhQ/4UxjEBVV338xrb0ungz7G5dBh7MAKWyubidDqIsq9dSBGEhK0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KKC1RZOwwvMpCqBAHgx6X77DZiXdkik7ZhWTYdU6oD8=; b=Xkd35Down/4p/SVojak4j4VCrbL86p1oKgBXOL7OSzHpyVOskHH97Hqz5LrFEvbl0bh7pXB42dhid9HqlzCWMCKvGn+9J11KvrsiXlGaalQT7WRzcLvuON0AHnxmdDj3PaxjzIWwgmW6ccLHnURp+senOQBWabPuHm4RzPhHfBI= Received: from BY5PR10MB4180.namprd10.prod.outlook.com (2603:10b6:a03:211::9) by MN2PR10MB4304.namprd10.prod.outlook.com (2603:10b6:208:1d0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.24; Thu, 6 Oct 2022 17:36:10 +0000 Received: from BY5PR10MB4180.namprd10.prod.outlook.com ([fe80::5404:bf18:4112:39aa]) by BY5PR10MB4180.namprd10.prod.outlook.com ([fe80::5404:bf18:4112:39aa%4]) with mapi id 15.20.5676.036; Thu, 6 Oct 2022 17:36:10 +0000 From: Darren Whobrey To: "cygwin@cygwin.com" Subject: Feature request: File descriptor support by sockets. Thread-Topic: Feature request: File descriptor support by sockets. Thread-Index: AdjZqh5aI2exR19+RWOYxvPmbilCeA== Date: Thu, 6 Oct 2022 17:36:10 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR10MB4180:EE_|MN2PR10MB4304:EE_ x-ms-office365-filtering-correlation-id: 894fe1ae-6ca6-4e96-b38b-08daa7c141c8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ot8SlouQuoazgPQ/8C2YW9ZEGeKpKf+voR6inK3vX7kGjOpFo90N6F6xZd0wqn67eSG1woMJfpFMxjcOENGUn+yce9joQbTglaaNI9tOZzd3w6Z0TPGB/rmzTo6EDoxEFQ2a1d9yo2tp79/ZlLR+4pmbCGO76EiMyupqwj4IV0NCQriNxByNV5KwpHtKAVaQ/f+alo+zRbwGrXqglxssj50X8FUPKdYYGikHveGWo7R2wmygLOhW4dn9qSSXe8MICHsFyO1N9FQJFc/9xeqxPEZ1GVq1L1csU/1HhNKN8JJeGqsG1YVGzvJUaLkusmh7+tz1Iu/2XtvdF6BsWkb9YtMvuj1uM7D82VnknA1gfgeD4ED8APsM2T1uKiroLHessElu7zmBhe+tnqjm3D4xI0U9Op/b71j3kTtNOqT50pRiWL9vmlJ/zQpUFQj9iM53617myeXZ8XZm1sg6h4Yor+R7dygBZaZM6nsLZqkdd8cAP7wtVJtbynKrONUUqaTwKr8FS/22oISRS8ZJw22+Oz9o4W9RVySpGtcwCT4Upf0gfhgla1Zfxab8d/J3uEzyzek2MTaeBl/jNWn0BmDwrRS9c82dWNA92G4Kp3EFu2EqzeBgpq6Nzs4vkQCeCHrc+3riKm0DtK8QY+oTA5IAekCmzhxVWn4rvuHBw9Zz2Tdjblf5VldNiIUX+9bOBZMqJBWTeP+lCYgFX1HkNd2Z151OIFxQTe+AyBeV8WYc7p9EVgoxP8kQPnK14vzxatJfvoQqvr+PUBpii0cTDuFc+XsiwA2/phsUJ9Y/CwfPuEY= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4180.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(376002)(39860400002)(346002)(396003)(366004)(451199015)(83380400001)(38100700002)(122000001)(186003)(33656002)(38070700005)(26005)(9686003)(86362001)(7696005)(6506007)(966005)(478600001)(44832011)(5660300002)(166002)(2906002)(71200400001)(52536014)(8676002)(8936002)(55016003)(41300700001)(6916009)(316002)(66446008)(66476007)(64756008)(66556008)(66946007)(76116006);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?/5g34Q3W3Hj1gPrxi8crhnSxEby5z2xNwfXe9Xu2deMOrpu72/yZxn3VHTq+?= =?us-ascii?Q?jXWI2sLrg0qNZiuTBCWRn/WUDMcz/SfzVZhTNFMbJ7rgG4gUhfE3lIJQpy7o?= =?us-ascii?Q?c15U+iWUCNgtQUTIEYdZDBv0Z2NbU8q/1O05KTn8M0wqj+P+2XxKmDQbFUFf?= =?us-ascii?Q?jW0FJ6vyuufDEq2MU1rEOvuipUW/uvFFGJJiDe0MSIPuZXXHQLTRYkXdWJ68?= =?us-ascii?Q?zLEPOx55LbUoMAYezu3HzT/DgDWpQvWkLuMtmEetggZzTbdYSPMYQUZQGx7G?= =?us-ascii?Q?z/oXdtSm3pmc2Mzg8hKAGRIPfZSiAhnjd/Zdv3DaZ5rGvygBmiN9Nl8Pd9NM?= =?us-ascii?Q?cuQe3nwEUVE4qgIiXPdf091Dn93XdAwnZ0f967NvP2MLJYRrIImsSTttwiD7?= =?us-ascii?Q?J4A64Ce3jcGGk2bYj79z4DkgEyw74RFfwJki4ZZnM8JYZxaljmBaaoE+dPsE?= =?us-ascii?Q?RgAsGmnqAsBqpQjejBM8WNXRobQXGAmhkbH7TtZToBfSu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bXZj9ynhrjrCaWVt/5shBByDBT4o2++pEqrrVkVA?= =?us-ascii?Q?7l5amDNU6DZbL/UtIwJvrxpMmKs0TzYzyFLnc6Zpeqrk+s+5xHOeIUYDY34+?= =?us-ascii?Q?BtkVuOJBlLwZ396Hs3NZDlpDwbfsxiHnE3626fCd242BECpNp6I6ZUvg7UPV?= =?us-ascii?Q?nSlOe22keV03NGA+P6XzMiYTVPY0njaSXqZFQ2Nr?= Content-Type: multipart/alternative; boundary="_000_BY5PR10MB418011A882FE4A6C4433BCD2FF5C9BY5PR10MB4180namp_" MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: jLpx2d8Ngb5qcfA1i4agE9Rzgn8XbpqWXZpgVUvnYXQaoTAbX73iGYFXJnIOqnqsVAYtqI5BRZ3LdFle04Qa31+sa3S1T+mHcDUBhuvzf9q7xionJ6gHRpt2RjnoHNr+a1vriEYD0AMfBBTvD+ng5F88HaU6pPBeEFgV1GAStLk6P4oEjK9WVEFGWp55kLYyTbhRpoXzKBYjFSqZ6kR+j8e/4iGF1FQF4qImvXURs5lESqMQ01i7ARAH9OOJWA4IEFXRcLYNis6vhzfQv1YvQwkip6b1LNZAWRm9/lg6ze4Vn4QqMJnMJ7kXHK/v3XQ//4Vi1ClrZwEMCst9RZQ0v+KbWjRPkoVp1pemxcKWtuVmUxB7+iZQ63PG7X6HBXMQ309qjZL+ShgpYlX9T8VZUpI4NEJKw/gfGiZSjs3o4bH8koYoEqKPpPzuWDsTmy86d475i5AgsHOOOTL7Vb76tujyMA1daGjH0uBDRqXZosLvCG0qNI5EERyfCw6XrS/pAka1Bywil7SIRci3RNEA65j5fE5Y/DbcZKgw3xVGAPZbMgnNTvJuHb62SsiZmqSE7FYX8BXzr7yOTy2bJj2Ueet7Dnbrc4eF/WETnz4RacT1oMDmU7t8fV8SXq+j6N67esFo26xhZaVxyZneciW6MjOKlyj4zu4dsI30n4AJBXN34GVIzc6unnc/xk+DPdDukpu5/fG/GV4TZJsDSbKslE/FhZY4T5prNmzCWvhIhzjfCXb0i6J96cLousK0jHQ2 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4180.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 894fe1ae-6ca6-4e96-b38b-08daa7c141c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Oct 2022 17:36:10.0389 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CN2n72Kkeyruazkgm8R77KhS8ohj+cPVzO/A+JmUuZ4EdNBSEmat0iTTBiBRr2Dn63yEJa4ugUyvLQF71fWY9hR9o/BsCLZXj8RZ9bRDNus= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4304 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-06_04,2022-10-06_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210060102 X-Proofpoint-GUID: T67q8jqwIEHRJYnt6Yy31YaMjQOq4IRc X-Proofpoint-ORIG-GUID: T67q8jqwIEHRJYnt6Yy31YaMjQOq4IRc X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --_000_BY5PR10MB418011A882FE4A6C4433BCD2FF5C9BY5PR10MB4180namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm using the latest version of Cygwin (3.3.6) and the Cygwin OpenSSH (= OpenSSH_9.0p1, OpenSSL 1.1.1q 5 Jul 2022) version of ssh to talk to hosts = using ControlMaster connection sharing. This uses sockets behind the scenes= . When ControlMaster is set to no, the connection is successful. Ssh connections are failing at the point where IO starts to be forwarded to= the host. Here's a snippet of log output from "ssh -vvv some-host": debug3: mux_master_read_cb: channel 1: hello sent debug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4 debug2: mux_master_process_hello: channel 1 client version 4 debug2: mux_client_hello_exchange: master version 4 debug3: mux_client_request_stdio_fwd: entering debug3: mux_client_request_alive: entering debug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4 debug2: mux_master_process_alive_check: channel 1: alive check debug3: mux_client_request_alive: done pid =3D 389 debug3: mux_client_request_stdio_fwd: stdio forward request sent debug3: mux_master_read_cb: channel 1 packet type 0x10000008 len 53 debug2: mux_master_process_stdio_fwd: channel 1: stdio fwd to some-host:22 mm_receive_fd: no message header mux_master_process_stdio_fwd: failed to receive fd 0 from client debug1: channel 1: mux_rcb failed debug2: channel 1: zombie debug2: channel 1: gc: notify user debug3: mux_master_control_cleanup_cb: entering for channel 1 debug2: channel 1: gc: user detached debug2: channel 1: zombie debug2: channel 1: garbage collecting debug1: channel 1: free: mux-control, nchannels 2 debug3: channel 1: status: The following connections are open: mux_client_request_stdio_fwd: read from master failed: Connection reset by = peer kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535 When successful connections are made from an OL7 client (with older version= of OpenSSH, but mux commands are similar), comparative logs are: debug3: mux_master_read_cb: channel 1: hello sent debug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4 debug2: process_mux_master_hello: channel 1 slave version 4 debug2: mux_client_hello_exchange: master version 4 debug3: mux_client_request_stdio_fwd: entering debug3: mux_client_request_alive: entering debug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4 debug2: process_mux_alive_check: channel 1: alive check debug3: mux_client_request_alive: done pid =3D 27228 debug3: mux_client_request_stdio_fwd: stdio forward request sent debug3: mux_master_read_cb: channel 1 packet type 0x10000008 len 53 debug2: process_mux_stdio_fwd: channel 1: request stdio fwd to some-host:22 debug3: process_mux_stdio_fwd: got fds stdin 7, stdout 8 debug2: fd 7 setting O_NONBLOCK debug2: fd 8 setting O_NONBLOCK debug1: channel_connect_stdio_fwd some-host:22 debug1: channel 2: new [stdio-forward] debug3: fd 7 is O_NONBLOCK debug3: fd 8 is O_NONBLOCK debug1: getpeername failed: Bad file descriptor debug3: send packet: type 90 debug2: process_mux_stdio_fwd: channel_new: 2 linked to control channel 1 debug3: receive packet: type 80 debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 debug3: receive packet: type 91 debug2: callback start debug3: mux_stdio_confirm: sending success reply debug2: callback done debug2: channel 2: open confirm rwindow 2097152 rmax 32768 debug1: mux_client_request_stdio_fwd: master session id: 2 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4 debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000 debug2: fd 5 setting O_NONBLOCK debug2: fd 4 setting O_NONBLOCK debug1: Authenticating to some-host:22 as 'myusername' According to this web posting, it suggests the bug lies with "file descript= ors over unix sockets do not work in Cygwin": https://exchangetuts.com/is-ssh-controlmaster-with-cygwin-on-windows-actual= ly-possible-1639696447917488 Is this something that can be fixed? Regards, Darren. --_000_BY5PR10MB418011A882FE4A6C4433BCD2FF5C9BY5PR10MB4180namp_--