From nobody Sun May 17 22:41:26 2026 X-Original-To: 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 4gJbX60Cl6z6dBH5 for ; Sun, 17 May 2026 22:41:42 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gJbX55NHQz3qVW for ; Sun, 17 May 2026 22:41:41 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-366be8040a9so538635a91.3 for ; Sun, 17 May 2026 15:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779057700; cv=none; d=google.com; s=arc-20240605; b=LAvTkIqal/PWBg67kHwDuZYZ6HMFNL/Ofi8G6DNmWAvnwe/haFpisUCTltYhBRJPE9 YNaC/BAgUc3enYKtnj6nVV8AktukGY0kakFrHy++IspwayIeS5BwfZFLBzuIKktdbKAq AlZMkwc33CU2VdFV/5TRLkvTilje0nn9Gds63qshmQerqfons5MW56NszUvO36JjKDsg qiiSfcjIHtW74nY5rQg96G4SbqNLoiQEwFpjCI9N/17qlAgnAYKlBpp1Ya18MgExlhVD /VYICGkUV+g15fLsu2o0e0tbXwBg+OZJoT5dnPggF06E8gdj0OwEjkiGf9huBBN5eBVB g2pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version; bh=SetJBhJOrkBt9fG1uI3pvzgcWXr8sIxUY1X4agNAFvo=; fh=o40PQ7zPTD4pXBZ/P/8daZUitsAo02vxxwoblGOnq1U=; b=NoSDZ0D0matdBbwRcQvTC3NdOUl3DhRJTJzSjF5Jcs/fxMsg8tqg8ZrOTqSJdUdPPz hLQYEmn3q/KtX9uaGWOdSQjWkUN+R/nIOjSfcyVp02jFH+BUUR1ehFatON4eLz5OJLex m7r6kJnPSKshH8YhDQ3TJI7VfP9HCEfw/H+fAIxjA0hmm0TLpIWmtSmJRwe0z7JDpTaS V9Z5GNJt8smRyX+RT7tTK04BwSwahKzdfncjeNrDed2pdb+ZIEmyhQaOSoE+aM9JS2FA 78SpTHCKVIgGLicvLp840Amne8LY4uzXUqlGS271kPhL2z8jUqwfw/25G4o8AyB+BNaT tu7Q==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779057700; x=1779662500; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SetJBhJOrkBt9fG1uI3pvzgcWXr8sIxUY1X4agNAFvo=; b=E/wcezgNonTVYuEQGdUFLLaubfeFu7wogatksXncyQEp3rqtvwlHPRkKXNHwdolxK3 JYQhber8u3MTe4Sp3n4B8qI4M5U3qJ9gF1LcLB3cCaDbjicFXK19XtbjrULuuWcgAcka LA0ItsOd5diZk82VAUW7hnTd4r7upQcDScofW+Sl5TAlzQYjP5n0W08Q9cD8UXcLwaKo KXipyVa19HduIjBN/tyKQ2dcUXnj4nOlV9iGjUC+AbcZYz99N7rlSuz4xJCjNerDBuIT scBKzyjtGdr43agu7588waghXhFBD180GRjw7KozV/QCsxVrESEBkg9NJpdaSFxpOyMk u9uQ== X-Gm-Message-State: AOJu0YwxBBC8BWZcOTD5JzmpWZu7HVD2KCKkHtrXlB3DlyoFCFuzUhEV h9mB72dnfImmqhJzxhkn+suG5FjDzUG6mwbhCuG5EwF7U4Ip2H6LRsj4MiiUzQEwIcV6ZLst+bC /gpUbLg8j7ocYcI+mR5HVPXsXQtOORMTrpwQgEVW+og== X-Gm-Gg: Acq92OHLQ0VrXdTCVJkWTBQtV9tv3bIb+X3k5Xp9I9tp7sajHwGWti4WqpghKfb969c UUgLBlxvrKJacGvk66T8CQH3/XeDC1HQHRWnfXHlnhruISaWOlqjFSMkhSWO2EAkjNz0ovL204B yOathAUYYLRSATJ3KlCWTTMNnA7PL04+xYJ/qV30ZDuKsTKliqgXrJgCa33OFANKT2TifGJxRn+ Tz5Z39VNZDM57typ/cJBwOdCMZFtEgp0K1j+Erh1kPAFPbGklr12hKW4INhQUQGr7osKbCPD7Kr z0a/0yDCCfRSUtqK4Km2UHbxnALUGdAF7WFd2sv0YA== X-Received: by 2002:a17:90b:4b8c:b0:359:87a8:e65c with SMTP id 98e67ed59e1d1-36951b8280dmr12676792a91.17.1779057699945; Sun, 17 May 2026 15:41:39 -0700 (PDT) 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 References: In-Reply-To: From: Maxim Sobolev Date: Sun, 17 May 2026 15:41:26 -0700 X-Gm-Features: AVHnY4KjQ8dB4tKWHvU2NdUVUjZYB9wvjp_RzVhrq9w-vTT-Cow_av-N3NMUEkk Message-ID: Subject: Re: ntsync(9) To: Konstantin Belousov Cc: current , Gerald Pfeifer Content-Type: multipart/alternative; boundary="0000000000003d952606520b26a0" X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4gJbX55NHQz3qVW X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --0000000000003d952606520b26a0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Nice. Adding some even minimal ntsync.9 would probably be good. Also, does this need to be exposed via linux(9) somehow or will it work verbatim with Linux binaries? -Max On Sun, May 17, 2026, 2:47=E2=80=AFp.m. Konstantin Belousov wrote: > Hello, > since the recent hype around ntsync driver for Linux, written no less tha= n > 'Linux incorporates Windows features', I decided that FreeBSD should > support the trend. Useful technical summary is available at > https://fedoraproject.org/wiki/Changes/NTSYNC-Contained > > Apparently, there is some documentation > https://docs.kernel.org/userspace-api/ntsync.html > (which mis-spells ioctl names), and the test suite that seems to be > more useful. > > FreeBSD port of the test suite can be found at > https://github.com/kostikbel/freebsd-ntsync-test > and the FreeBSD driver implementation at > https://reviews.freebsd.org/D57038 > > This is a clean-room implementation, I did not read GPL-ed code. > I used the documentation as reference, and ensured that the test suite > passes fully. Amusingly, there was one test that contained bug in > the check. > > --0000000000003d952606520b26a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nice. Adding some even minimal ntsync.9 would p= robably be good. Also, does this need to be exposed via linux(9) somehow or= will it work verbatim with Linux binaries?

-Max


On Sun, May 17, 2026, 2:4= 7=E2=80=AFp.m. Konstantin Belousov <k= ib@freebsd.org> wrote:
Hello= ,
since the recent hype around ntsync driver for Linux, written no less than<= br> 'Linux incorporates Windows features', I decided that FreeBSD shoul= d
support the trend. Useful technical summary is available at
https://fedoraproject.org/wiki/Cha= nges/NTSYNC-Contained

Apparently, there is some documentation
https://docs.kernel.org/userspace-api/nt= sync.html
(which mis-spells ioctl names), and the test suite that seems to be
more useful.

FreeBSD port of the test suite can be found at
https://github.com/kostikbel/freebsd-ntsy= nc-test
and the FreeBSD driver implementation at
https://reviews.freebsd.org/D57038

This is a clean-room implementation, I did not read GPL-ed code.
I used the documentation as reference, and ensured that the test suite
passes fully.=C2=A0 Amusingly, there was one test that contained bug in
the check.

--0000000000003d952606520b26a0--