From nobody Mon Jan 24 15:13:32 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9C7CE196B146 for ; Mon, 24 Jan 2022 15:13:40 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660059.outbound.protection.outlook.com [40.107.66.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JjD5b3fjhz3vV0; Mon, 24 Jan 2022 15:13:39 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gf8DvSOqxgSMBEIYMA5NyWU6ImIpKV/MpTNRSp0oHUE0ZpKYoxJQkPW40DgSxW4EQtbc5hcjBC278z5lEUhlpqyyPjMMTPKfG4Uc66ZjVLy528ROaSFW0Nt4NJ/5tg4ERwOwE5/h5mBj0vh814umJQMY1kr6sgLxNI5VtAk1F+oKl7/7UCoNoHCGXBDccrDQiBg9aZwpyipnvfeKujslCtpbxvEkpf/R2TFIZ8SBPWyJ+lf52Nljlmnb7md+71GPEZ1aNcNJ5YMjFrbGTqnvgceoZsAU6l6FYOCRgcDeLDNUn9p6PNp4zFWccHB/ryt3kAYYOeRkUbjEPQEw0PbpEg== 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=33BcEUL94kUyJKGDZfMWCYFy0JMfdiPD6Y53go9lE7Q=; b=T8aoWJ792v76oBxtxNd6trZksKYJyxZFFYjnR5HkOkktwYEKhfr2FC9QRHoxdenEPwG/mMq3MZnDZAnLFIKQZsBUsyIibzxlwLCEz9E38fNvqlw8dx/SweagC2TqgMunQLImygT11H1a4Oz1QPDdrjIDJTaa5sMR7wcLosT/NhWY1mG3gWi8kEU1F7Zn6AAPAjA/nR1XONJ9afiznyWbiKbgHABWtoyTvM2SHbkijlQpTQ6vxh6Uhnh7wwO6EsUnXGMxw+B3wJGkf14+ij5JZm+39GnjYD2fxtngiwjX0XKrFOk6jqX0i/nvs7vXKhrIufssH2FwDfJnyBp9RQWMjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uoguelph.ca; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=33BcEUL94kUyJKGDZfMWCYFy0JMfdiPD6Y53go9lE7Q=; b=QEHgXcondQ/aQgc+oJrCh450KTNYA2SFCht29pB0dZZT5lsmVBeSoz7qCZwYvlSQMJPZatqp/+ILNlY1OryuQGhIIvt9ZyG4mOY6rqTmEPSVqS47dPRHbWppnWv1ESL/ogFk7/Yz/RMZZA+Xr6fvJ6ijOVSm2J0IJTZrUiubLxc+3t0lzehTs5+LFj5hnGXsgNFfZ6RZ2cYgpqSmh2Rj0xy1i6eVveae0hcwcKwzdwdvE4oKkxfhiHP9bUDg4kKBWWIf8q6jzqBeoUoK5gDlPIiqq7HpsueszK+ouMPZfymUDdRM8xqq+2c5IdbWygHWTGS4bdMHDh0b1WXsu+zDrQ== Received: from YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:19::29) by YQXPR01MB4484.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:1f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Mon, 24 Jan 2022 15:13:32 +0000 Received: from YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM ([fe80::7dfe:b92e:1f9f:a196]) by YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM ([fe80::7dfe:b92e:1f9f:a196%5]) with mapi id 15.20.4909.017; Mon, 24 Jan 2022 15:13:32 +0000 From: Rick Macklem To: David Chisnall , "freebsd-current@freebsd.org" Subject: Re: Deprecating smbfs(5) and removing it before FreeBSD 14 Thread-Topic: Deprecating smbfs(5) and removing it before FreeBSD 14 Thread-Index: AQHXzvvFA1WWxQSLW0uUJGavCusr2KvuZUQAgABpl4WAAGcwgIBr+tlBgAGeWQCADnip0IAAAWeAgAA5aNuABGp2gIAAPwEOgAJMtYCAAFF+6Q== Date: Mon, 24 Jan 2022 15:13:32 +0000 Message-ID: References: <6f99f9bc-8831-aefe-4f73-72f50f8f347b@aetern.org> <79402464-f9e6-5f56-645e-cfd49640032e@quip.cz> <7db04ed9-39eb-7163-ce92-9a52c5f7d302@quip.cz> <54704b99-7b89-76a4-0368-79bee391926d@quip.cz> <489849ca-a404-fb54-81d1-d62ea18c5832@FreeBSD.org> In-Reply-To: <489849ca-a404-fb54-81d1-d62ea18c5832@FreeBSD.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: e25856b5-8a66-af1d-bf61-85079b1b0e22 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1c3c4b05-ac12-4595-4112-08d9df4c15a2 x-ms-traffictypediagnostic: YQXPR01MB4484:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WM0fz0hi4f/l8oRAedFMu4HanmrkGRcmBzLBI7KSV3OEAGE0OgbF8YVJSgzLQMbkKBsfnSfAmSqBF9T+5BUUPzIKbnkyR5rc59YnkswG8wQ+ZANLv1Ro/fUPJ2gkMQag/6ha6EjlDKYJUEy64ZCeLd3Z3pwvli6vW3yipv1/oCjAKslTIqgcNzeIY9q/lfEtbzzUHJTI6b59kJ3eDjwqQa6kdLzWuF19sLA5MjbVHNeIuRVe7D2Yp0WNqdH6C9OThr6v0A6fuCGm5HNw6xwz0yWr1aMvME2f/PHaTauRxaHxUb8pAysj5RFGC1QtpEOcevAdSzmvcL2ayaqg62XbiCd157kLVBJqlHCA/p6/I66hZL4g4b+attwZigNqj9S2BcbvrmPnabQfL/1oo0vKXbSAl7taJU+mFVyQZUUNK4guma6CoJam8NWgjH6bp4IFwC3ZoSGhs49NrMxIPsYNsOshCLO8zBwLfrT07PYIUFLXx8u4nKaXUk3+FWcUXFQRBUmmzndY3bkqUkqZ+Lep9v3mVZzucwY7SNSFPR7UuhfkwCg8qSjkCKWLlSlB8iM01qOYwV5iHJeLmt18fCKjz9Eb06JDIX8k2FM0zoco2Got3KVzz3gN1KdNfOaNgDVojuUm8FuAAHWyW+IKD/bcgnr3csSOHvcW9cDaA94VWDPnmBC9e2itThJadZmNa/8lOMk0NDJpr8fBlw+9QDjz/WoZmpD+fEN9QeBju5l/Hbo471xcwmXFwcGsJIyP3U+awDnbYv7GZEXTh3EXZEDRTnSzDIguL+e/Sjui3Grc2EVWFUB3ARFQiEqNCOUQ/RlrDieeYy3pXTupOLrYO2jyRQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(366004)(508600001)(86362001)(786003)(91956017)(55016003)(6506007)(9686003)(53546011)(5660300002)(316002)(186003)(8936002)(33656002)(45080400002)(110136005)(76116006)(7696005)(450100002)(38070700005)(83380400001)(8676002)(966005)(66476007)(66446008)(66946007)(52536014)(64756008)(71200400001)(38100700002)(2906002)(122000001)(66556008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?GJGPNRN6kK85SF5XLP4PflzfnnHtRghdZFUIRnOXvVZCRswudvVG8LJsZQ7k?= =?us-ascii?Q?6JLQAoDpVv5p0xI1uUZHRU50cIU49Z8LNOZlR3dQaeYbrHethltJpGcxxL16?= =?us-ascii?Q?3hwSvcwUrsO5vZHCeCMn4qpmZfw7mOZdHb8ITxOpot8QUgfAEpQarGgltD5u?= =?us-ascii?Q?Hxi5SahIdDWHx2p88O/gfbVyizrvrbhurv8DSXjEWJM1NXSsIYplO3Po1dHN?= =?us-ascii?Q?TNc9Ifvqo0TolrMcJOsk9ayUOsXh+8Rrg9oEz9fMOF+B7A0IQaEd4ENr7f+D?= =?us-ascii?Q?8bjipaEFphgHJ69haV7dYDsZop/Lepo/IoJ8NNJuQTf6mkpYVUB0PmiAEpAJ?= =?us-ascii?Q?wsripaemJkGTO5X9xFY+fCuuin5efzeAfY+IBA73mshXDUOboe3gwvkDNIzS?= =?us-ascii?Q?RJ9MysTalfNr0EpSvBw/QD+fDcAqOlSjCjFl31P9+cCxqkhnPG/f+RWRNNs5?= =?us-ascii?Q?NjIlYAho9G87QOEHQkIkp8zXnTxmpk9tDFtO1ZoTRzGzdhW0a8yIAF0zvJB1?= =?us-ascii?Q?LQkCQr2VN/TnG5JblwI98o86th/mX63HAoOjs2/5lj8fuv34Xqb8Vtgteu37?= =?us-ascii?Q?Murj/Q6oW3vXIA3WQxe38H7KE7UHFWXPBK+uD8KAJuPqzoKiH/QW8HX+7aHQ?= =?us-ascii?Q?9kdLPGysybfGlWJn0RS8jTBloukXNZXIyf8jhI8+r2r7LK4Zoup2bhIT3tkI?= =?us-ascii?Q?gN7ERZt28y91B/33Kza0h98weww1ZLCYmFXzkzGfGBsc1nW/O55IZMM/GOek?= =?us-ascii?Q?MmBU2CGXV26QX8oLRYNCNAhB3VX8eenh/RF0ADU3iaL31mSg5O0Vrje8tam6?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text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 1c3c4b05-ac12-4595-4112-08d9df4c15a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2022 15:13:32.1693 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VSTS6EvMoULZ/4fasxvbCJHUET1N7JdRDapBSsobjNxFXMlqnP8sp85isoLusJVZYboomEXm7pmDVj7pOUuDpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR01MB4484 X-Rspamd-Queue-Id: 4JjD5b3fjhz3vV0 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=uoguelph.ca header.s=selector2 header.b=QEHgXcon; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=uoguelph.ca; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.66.59 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-6.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[uoguelph.ca:s=selector2]; FREEFALL_USER(0.00)[rmacklem]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[uoguelph.ca:dkim]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[uoguelph.ca:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[40.107.66.59:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[uoguelph.ca,none]; MLMMJ_DEST(0.00)[freebsd-current]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.66.59:from] X-ThisMailContainsUnwantedMimeParts: N Yea, I've been looking at that spec. a little bit. I'll admit that encryption related stuff isn't my favourite work and that appears to be a significant part of the changes to SMB2/3. I did find some entries in Illumos gate related to integration of SMBv2.1 about 3-4years ago. It was not completely obvious whether the entries referred to client or server and it noted a work effort of 500hrs. So, I think Mark and Yuri are correct and looking at up to date Illumos sources is the next step. (As I mentioned, porting the Apple sources is beyond what I am willing to attempt.) rick ________________________________________ From: owner-freebsd-current@freebsd.org = on behalf of David Chisnall Sent: Monday, January 24, 2022 5:16 AM To: freebsd-current@freebsd.org Subject: Re: Deprecating smbfs(5) and removing it before FreeBSD 14 CAUTION: This email originated from outside of the University of Guelph. Do= not click links or open attachments unless you recognize the sender and kn= ow the content is safe. If in doubt, forward suspicious emails to IThelp@uo= guelph.ca On 22/01/2022 23:20, Rick Macklem wrote: > Mark Saad wrote: > [stuff snipped] >> So I am looking at the Apple and Solaris code, provided by rick. I am no= t >> sure if the illumos code provides SMB2 support. They based the solaris >> code on Apple SMB-217.x which is from OSX 10.4 . Which I am sure >> predates smb2 . >> >> https://github.com/apple-oss-distributions/smb/tree/smb-217.19 >> >> If I am following this correctly we need to look at Apple's smb client >> from OSX 10.9 which is where I start to see bits about smb2 >> >> https://github.com/apple-oss-distributions/smb/tree/smb-697.95.1/kernel/= netsmb >> >> This is also where this stuff starts to look less and less like FreeBSD = . >> Let me ask some of the illumos people I know to see if there is >> anything they can point to. > Yes. Please do so. I saw the "old" calls fo things like open and the > new ntcreate version, so I assumed that was the newer SMB. > If it is not, there is no reason to port it. > > The new Apple code is a monster. 10x the lines of C and a lot of > weird stuff that looks Apple specific. > > It might actually be easier to write SMBv2 from the spec than port > the Apple stuff. > --> I'll try and look at whatever Microsoft publishes w.r.t. SMBv2/3. > > Thanks for looking at this, rick The docs are public: https://docs.microsoft.com/en-gb/openspecs/windows_protocols/ms-smb2/5606ad= 47-5ee0-437a-817e-70c366052962 Note that the spec is 480 pages, it is not a trivial protocol to implement from scratch. David