From nobody Thu Jun 16 13:56:19 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 C9EE18442AE for ; Thu, 16 Jun 2022 13:56:28 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-YT3-obe.outbound.protection.outlook.com (mail-yt3can01on2068.outbound.protection.outlook.com [40.107.115.68]) (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 4LP3cX0DXxz3DCw; Thu, 16 Jun 2022 13:56:27 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nM3YB10zxoQ093Z9GNPmRIT30DIP0PYKhik3RCXnIfo81ciosU2RGMLATwpZjYu0AhNCxjS0c4nTiMObX6hI40k6RmkBjm9uTxertmiB41Kxk//Zj8vGOhv87sMfzTl/PFCB0Wp3a9v/8MmxLQEzRx/zvfL3hKf5ioTQSUpa7Ox6c5fr8CuRyO6tYbu1FWkzKKIhHxCdv3yOWNNzcL6wk0fWRq3VYhWuhCZ0KONoVflaOz2nElHI7eL6NEphB6qgTXhuD3TyxeqAlfXAEvvJP1B4f4Z3RiZDqe0XSbroPxXZVkqIrNEakGLD65RW9Qa/V9Y5FMyMsxTaN4olyimB8A== 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=CI+fasb64CXQdKANJMB4fSVhDZtsEGZ8gkciSe8y5KI=; b=PAkZaesnDrPKhVeTghrt5y7kKQLlafIPBAt4dDZs+ZJmKmt1W9rX7V2jS5VGDwOJOX0BjEcFAeFl8IWEB+idTozHom9nX3AGlYiwYT1x0K+PfJIc6IyZuEWHB8IijFBg5tizgAMfHLB0KjqQpwTr5mAVfP5dd5Fyve21WyMDxxYTKWbnpkPBMEAUpypZF+OheCym3RM0OoH/eFyLo0WJlfDZGMOSS8xTlC9QOimcfL1FByZJZAeY2/LWA0lrykrce+NlulVH1qyLjUSBp73lpi0jLu1s88gHd/rQ0vkyJwglL706gASdvnisOFlmDmSPId0v5aYdefviSzGK9F/3gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uoguelph.ca; dmarc=pass action=none header.from=uoguelph.ca; dkim=pass header.d=uoguelph.ca; 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=CI+fasb64CXQdKANJMB4fSVhDZtsEGZ8gkciSe8y5KI=; b=ZpWmGFuf/6MVNQkCZAKeom+ZfPkPUyg3ob+ccUP7qLsbJ5PvsBs2gpW6MNs0fqIzfhpxcPEZ0SrJICjyCweJTh7ZnZEjdN4mpmgx3tsxzY6+SlWHAZKGGUe5PPVT1IQiwlJfNTQA7edJymHBnURusK487EB4W9z1eM6WgCb1aa6o9Q3l3pqouxFeE7WoCiwvVnY/aopcFfv3iwhTth0oM1LbC5WurJSIH7rRDPd7g1BG1/QV/KtqrG24YDYv8LC5L8RcEB2Hz++1DNl9RRvG4XxGsdtxzdQ7NiXb2Kf5IbHBQ9sAkMZqT5lLZ05hPocnnl3fGPlYQidYPuxKurBZ8g== Received: from YQBPR0101MB9742.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:81::14) by YT1PR01MB4379.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:33::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Thu, 16 Jun 2022 13:56:20 +0000 Received: from YQBPR0101MB9742.CANPRD01.PROD.OUTLOOK.COM ([fe80::b921:251e:4a0b:54fc]) by YQBPR0101MB9742.CANPRD01.PROD.OUTLOOK.COM ([fe80::b921:251e:4a0b:54fc%6]) with mapi id 15.20.5353.014; Thu, 16 Jun 2022 13:56:20 +0000 From: Rick Macklem To: Miroslav Lachman <000.fbsd@quip.cz>, 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+6YDgjuGAgAAYK2c= Date: Thu, 16 Jun 2022 13:56:19 +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> <254a0b5e-72d9-f93e-0c49-82b50a35db41@quip.cz> In-Reply-To: <254a0b5e-72d9-f93e-0c49-82b50a35db41@quip.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: cf932527-bc20-c825-efbe-7697167ff7ee x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e3ede530-e092-47ab-4944-08da4f9ffda2 x-ms-traffictypediagnostic: YT1PR01MB4379:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LpTvjILmVcREtqnmKOpG31/jy1SPE8yufVheKiKJVMYmqxCQ0COu+7pC54O+loo+Y2oecIRlvwUY3kA9X88a5c4GZF8Yu5JVBYL/CCChvEXyxkU234jaRO+wY+CgHEK56B6Jq/33//N+u1HHYbzgtknOfX8Eo1OoRQZO0e8+EkCi7d4j1M6DlQOvN0C91cge+Isb5W2xQuFu15e6bPpqSH+U+Te6HNU5XTMzDDL0dGsiyDZjW2ABsXv1czNyfoJDXynQt8vSPl9nwrKTVGEpuaEbhCKeI0cAaHb1vyITmmBfOyfx4BnLnVvja3h4X/P0gzSKW88Y8zPf+GNy/XNA9OpWf/yn4bb/Uk0Pi/FNjNAhxCTLqGzvUUXJt4h8iQT6z3VeqwV0aKuV4YC65NYuHx466uKD9dB9v31FK/KrzhaHN+WmyjcjU7GdT3HjrnFBGhN6SAZ09Egk04pbhCEQM36n5lM+7Q0YxFB99csfrNhxL4D4G2+5lu0NG3vxHt6TtC7BCXPHNCGLjcIUbg1ILEiKTG5dBYxFrlFMIgis/qkhXYdwBBEBNCjU/Ab8JVaDj+5h3fppZ9pR/hP1SpzeAn+jui6vd8jeAv0T66PUBhHt7Xx8bhgaKsoTT8Yw5kfCvup04+1O2AHYl2sFWsq4pwcf/j2PsiPEVEjnCLijL1Rz+HrgzKbPjWJ+n5C1rkdIteFACqRSsG1XMfQy3GEOKtnJzwHk5KObU0ewAIs8pQE6LOEnac0+4dqPHeFkqz+BYRmNAIGvxVuIYfYnscKOlkGCU2iTR44On40fafrr176pIgXcn118UddviZVcQNzWMcFblp+xLSz/fkW7cYECGw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:YQBPR0101MB9742.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(366004)(786003)(55016003)(38070700005)(316002)(110136005)(71200400001)(53546011)(6506007)(38100700002)(9686003)(7696005)(45080400002)(5660300002)(66946007)(86362001)(64756008)(8676002)(966005)(91956017)(186003)(52536014)(83380400001)(8936002)(76116006)(122000001)(66476007)(66556008)(508600001)(33656002)(2906002)(66446008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 2 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?9APomGOmxBh1mvuVCSqRp5zMQnlk4ugfLo9a9movQfC/vhZ3qMiA1SS+hk?= =?iso-8859-1?Q?nPBlV/S1cPtKRgZKYVF0YWbOFJjDYf6fVHsdEsfug/3gd6Gh7voKWdNsFf?= =?iso-8859-1?Q?XMwC+e5b9TtoPE1wsnmPKzvM2whetw5TqxwjFG2biuRLyAYJTMuqJq3oxt?= =?iso-8859-1?Q?fyoXZIJ4QFeNegAsEqISylo5tp2LOAOOr0rjdbG3mZXw/j6BgQ64lZYScF?= =?iso-8859-1?Q?7s7WDOt+MZPnn1YNWzrDJNbLlqtcqnl3/7odk2xRzuFbKo+YIMRDQGd/dI?= =?iso-8859-1?Q?ss4CR0vzCkFdWem+UftVFyFHunfWA5TwyUutLk04Iz5fx0PZY7e5bpDVRG?= =?iso-8859-1?Q?rZdyYSDyoFyMctseqWCjrxUJXZpRrfbZyYOrWFeIR4qzsRlzTXjO8Viqed?= =?iso-8859-1?Q?XPhuKccGPG8y+ymQr1QbNNKdS1CGqRk/P8riR0ZtlsnJNZm/5CPPtk/kan?= =?iso-8859-1?Q?5j7YnKEsUn2aeCvB8QXS9BYDv8TcacylYUKNsnC/UCqZQKh/EpgUaz4+gz?= =?iso-8859-1?Q?NEa3B1sKdwKytndJg0OQJMA4ocz4oA58DIaV/5dHpgRZrUMLodnwarZBXL?= =?iso-8859-1?Q?LfXJ47ieTPAyrcCStZnyXCN1KVfn2Wzb2w3P+XsXRv91z7nAxp5WDkpb6U?= =?iso-8859-1?Q?X2DAmXRLTeWWz2HOtJhuRhk+JtYTzS1Exq9bwtPfv2nKa4sorLHpnGKBUq?= =?iso-8859-1?Q?9f6R0beSyiW3FEAoJX/DuqW63p8+zZciTh/KD0YDb4hiwuRv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7G7cYqB0WA0iqvF/6aWfPtgGyl7uyn8x?= =?iso-8859-1?Q?6KMA2H5k4wdkJB9RIrNMclFZ71flZuuDVcXfxyipUL1dnsjIktOT1HRGrj?= =?iso-8859-1?Q?GLefiXdymNIztTCLUBCUcglBtnRtmuuVKyfdHIfrmu0Jv4YyrWw2zvgkMS?= =?iso-8859-1?Q?KI7rTH/MOoguaBFTE4xx6sBeeobVwaiiR6cpjyeoEz/dLUOXs6uI5Y4Jz7?= =?iso-8859-1?Q?kH?= x-ms-exchange-antispam-messagedata-1: JVSn45dRs6rIKQ== Content-Type: text/plain; charset="iso-8859-1" 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: YQBPR0101MB9742.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: e3ede530-e092-47ab-4944-08da4f9ffda2 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2022 13:56:19.9699 (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: UG7ZykbQOfkmbQgV2HCzfkhbEvuAAA5GZr+t/+QZHZ3BKIvljiCBpboCwMxu55Eizr2CUzBFERXEmAq6jSO7Gg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT1PR01MB4379 X-Rspamd-Queue-Id: 4LP3cX0DXxz3DCw X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=uoguelph.ca header.s=selector2 header.b=ZpWmGFuf; 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.115.68 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-4.05 / 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)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_SHORT(0.95)[0.948]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[uoguelph.ca:dkim]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[uoguelph.ca:+]; DMARC_POLICY_ALLOW(-0.50)[uoguelph.ca,none]; RCVD_IN_DNSWL_NONE(0.00)[40.107.115.68:from]; 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.115.68:from] X-ThisMailContainsUnwantedMimeParts: N Miroslav Lachman <000.fbsd@quip.cz> wrote:=0A= > On 24/01/2022 16:13, Rick Macklem wrote:=0A= >=0A= [...]=0A= >=0A= > > So, I think Mark and Yuri are correct and looking at up to date=0A= > > Illumos sources is the next step.=0A= > > (As I mentioned, porting the Apple sources is beyond what I am=0A= > > willing to attempt.)=0A= > >=0A= > > rick=0A= >=0A= > Hello Rick,=0A= > I would like to ask you I there is some progress with porting newer=0A= > SMBFS / CIFS version to FreeBSD? Did you find Illumos sources as a=0A= > possibility where to start porting?=0A= Yes. I have the stuff off Illumos-gate, which I think is pretty up-to-date= =0A= and I agree that it should be easier than the Apple stuff to port into=0A= FreeBSD. I don't think it is "straightforward" as someone involved=0A= with Illumos said, due to the big differences in VFS/locking, but...=0A= =0A= Having said the above, I have not done much yet. I've been cleaning up=0A= NFS stuff, although I am nearly done with that now.=0A= I do plan on starting to work on it soon, but have no idea if/when I=0A= will have something that might be useful for others.=0A= =0A= > We have more and more problems with current state of mount_smbfs. I=0A= > would be really glad if "somebody" can do the heroic work of=0A= > implementing SMBv2 in FreeBSD.=0A= > Maybe it's time to start some fundraising for sponsoring this work?=0A= Well, funding isn't an issue for me (I'm just a retired guy who does this= =0A= stuff as a hobby). However, if there is someone else who is capable of=0A= doing it if they are funded, I have no problem with that.=0A= I could either help them, or simply stick with working on NFS and leave=0A= SMBv23 to them.=0A= =0A= Sorry, but I cannot report real progress on this as yet, rick=0A= =0A= Kind regards=0A= Miroslav Lachman=0A= =0A= =0A= > ________________________________________=0A= > From: owner-freebsd-current@freebsd.org on behalf of David Chisnall =0A= > Sent: Monday, January 24, 2022 5:16 AM=0A= > To: freebsd-current@freebsd.org=0A= > Subject: Re: Deprecating smbfs(5) and removing it before FreeBSD 14=0A= >=0A= > CAUTION: This email originated from outside of the University of Guelph. = Do not click links or open attachments unless you recognize the sender and = know the content is safe. If in doubt, forward suspicious emails to IThelp@= uoguelph.ca=0A= >=0A= >=0A= > On 22/01/2022 23:20, Rick Macklem wrote:=0A= >> Mark Saad wrote:=0A= >> [stuff snipped]=0A= >>> So I am looking at the Apple and Solaris code, provided by rick. I am n= ot=0A= >>> sure if the illumos code provides SMB2 support. They based the solaris= =0A= >>> code on Apple SMB-217.x which is from OSX 10.4 . Which I am sure=0A= >>> predates smb2 .=0A= >>>=0A= >>> https://github.com/apple-oss-distributions/smb/tree/smb-217.19=0A= >>>=0A= >>> If I am following this correctly we need to look at Apple's smb client= =0A= >>> from OSX 10.9 which is where I start to see bits about smb2=0A= >>>=0A= >>> https://github.com/apple-oss-distributions/smb/tree/smb-697.95.1/kernel= /netsmb=0A= >>>=0A= >>> This is also where this stuff starts to look less and less like FreeBSD= .=0A= >>> Let me ask some of the illumos people I know to see if there is=0A= >>> anything they can point to.=0A= >> Yes. Please do so. I saw the "old" calls fo things like open and the=0A= >> new ntcreate version, so I assumed that was the newer SMB.=0A= >> If it is not, there is no reason to port it.=0A= >>=0A= >> The new Apple code is a monster. 10x the lines of C and a lot of=0A= >> weird stuff that looks Apple specific.=0A= >>=0A= >> It might actually be easier to write SMBv2 from the spec than port=0A= >> the Apple stuff.=0A= >> --> I'll try and look at whatever Microsoft publishes w.r.t. SMBv2/3.=0A= >>=0A= >> Thanks for looking at this, rick=0A= >=0A= > The docs are public:=0A= >=0A= > https://docs.microsoft.com/en-gb/openspecs/windows_protocols/ms-smb2/5606= ad47-5ee0-437a-817e-70c366052962=0A= >=0A= >=0A= > Note that the spec is 480 pages, it is not a trivial protocol to=0A= > implement from scratch.=0A= >=0A= > David=0A= >=0A= >=0A= =0A=