From nobody Sun Oct 6 13:56:01 2024 X-Original-To: dev-commits-src-main@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 4XM3jF6fChz5Y6jQ for ; Sun, 06 Oct 2024 13:56:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (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 4XM3jD3Smhz40SC for ; Sun, 6 Oct 2024 13:56:16 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-20b8be13cb1so38588755ad.1 for ; Sun, 06 Oct 2024 06:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1728222975; x=1728827775; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LyFgoFNB0rWglfzEWRJiK2RrWh6mEdJY5X2Ew+UtSDI=; b=UceBScrcZpELqwDKG645iFDKuogxIMPP/mKcyz3UCB/CgZKI8/Fx0cy7o1TKT/ZRyu mIQI2WUEFzWpC7+Y0s1U0tj8wU+hwATy7EbFThpTYAr+5Pd4QmOOP7bc/JBA1CC09Z3V 0TeNg6IBgrAlPUUvIWMKt/bgNBRJPMUD5XF3UWvNfsb8QmeMApzrBV05lPDRVDtaMLpi cVlXeXSglJdz0SrcF6h6Mh4xYzQqc0ObBtnz0M6HKkuCquxOOgUpRse+gvOGnbU5BT9v Y+nFY3d0Jb244utVPPNy1TYjiyrAa8lQsBJu8wlIduYZkcJ1f8kVpM9hza+CPNScYtDC ZC1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728222975; x=1728827775; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LyFgoFNB0rWglfzEWRJiK2RrWh6mEdJY5X2Ew+UtSDI=; b=KRTXDbQ5/uQoAJLDjZeFfrxU8tp8aRp7nzd5bWmJXyR0lkjA3GhOxaSKI21fZR6DsY NXk9QKUN8/AAxiPpGe1Hxn/wT9XH0Q9vb8UevzvY8ui9B99FvRP3FJebd3qHvNAMGKPH T5P9+y9g5EjSE/QONIUQVh+UOdBvNlEnKmR8lAlU/8t8Vw0qYZBH/Jsb2CDbq1bc9UnP tf7itm98/9JEe64V1wvtGvQzNQlApFJ24Fr4bP0BEPQzJySC+T/FY60skMFBTaSaI5p/ zEgJtFRTLpBu1lzEjUAObD5VfTlstTX9vqPdCIMftSyIWIYLl50XHBWC7jiVzybL5i9t 362Q== X-Forwarded-Encrypted: i=1; AJvYcCVpLy+dk7lk8G9Fv9hsRiw60x5qxnlaM7iaO0hKWZjxYTkGMnyTXJ3+1fWrs1mDxGJeP58JB+lWssNK9R5gDQTVI1eEDA==@freebsd.org X-Gm-Message-State: AOJu0YyqciH353uF2WbYCCxPkZySiaLVUvhjfbHps2d7KKfkkG6ThSis C4ThgdKdT1S9j85CBFjikNP/yMp+nGXLf9EHICQQoYpgyON91gyrld6D8ck0qOYvYj4gXltbFO1 BqowirqK6nixglIjIT5hAipJ4LkH6Mm3CPJ9mww== X-Google-Smtp-Source: AGHT+IGdM+XVy7cRM6/pl64LO5ydIrlh/rx12yCgPjIZbTVxco2dx5dISiW8fifGEtF7MQb7gMcwxxObRAy/t6OX5XA= X-Received: by 2002:a17:90b:4a81:b0:2d8:84de:5e0e with SMTP id 98e67ed59e1d1-2e1e629da77mr11795890a91.19.1728222974871; Sun, 06 Oct 2024 06:56:14 -0700 (PDT) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 References: <34434D36-A751-477A-8596-72A564113FB8.ref@yahoo.com> <34434D36-A751-477A-8596-72A564113FB8@yahoo.com> <86r08tvcb0.fsf@ltc.des.dev> In-Reply-To: From: Warner Losh Date: Sun, 6 Oct 2024 07:56:01 -0600 Message-ID: Subject: Re: git: 2c1963d46335 - main - procfs rlimit: handle pipebuf [and related] :pipebuf . . . Invalid argument To: Konstantin Belousov Cc: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= , Mark Millard , Current FreeBSD , dev-commits-src-main@freebsd.org Content-Type: multipart/alternative; boundary="00000000000082a4f30623cf449d" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4XM3jD3Smhz40SC X-Spamd-Bar: ---- --00000000000082a4f30623cf449d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Oct 6, 2024 at 3:09=E2=80=AFAM Konstantin Belousov wrote: > On Sun, Oct 06, 2024 at 10:57:23AM +0200, Dag-Erling Sm=C3=B8rgrav wrote: > > Konstantin Belousov writes: > > > We do not provide forward compatibility between kernel and userspace. > > > User binaries must be newer than kernel. > > > > Uh, no. The opposite, in fact. > > Right, it is opposite. It was a typo. > > Anyway, __FreeBSD_version is not about compatibility between specific > snapshot of kernel and user sources. It de-facto provides two technical > measures: > 1. kernel refuses to load modules built against headers set with higher > __FreeBSD_version than kernel > 2. Some values of __FreeBSD_version are used by userspace to > detect if specific change is present in kernel. See sys/param.h > P_OSREL_ list. > 3. It's used extensively in 3rd party software to select different interfaces (including ports). That's why we document why we do each bump. While 'forward compatibility' is sometimes needed / provided when it adversely affects upgrade from source and fall back to prior kernel while it's worked out. But (a) ZFS BEs eliminate many problems and (b) we've only done it when it was impossible to run buildkernel / git (or svn or cvs in the past) to fix the problem. While the messages are annoying, they don't prevent that limited exception we've occasionally done in the past. In general, we've avoided changes so incompatible that they've needed a new P_OSREL_ entry to cope... Warner --00000000000082a4f30623cf449d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Oct 6, 2024 at 3:09=E2=80=AFA= M Konstantin Belousov <kostikbel@= gmail.com> wrote:
On Sun, Oct 06, 2024 at 10:57:23AM +0200, Dag-Erling Sm=C3=B8rgr= av wrote:
> Konstantin Belousov <kostikbel@gmail.com> writes:
> > We do not provide forward compatibility between kernel and usersp= ace.
> > User binaries must be newer than kernel.
>
> Uh, no.=C2=A0 The opposite, in fact.

Right, it is opposite.=C2=A0 It was a typo.

Anyway, __FreeBSD_version is not about compatibility between specific
snapshot of kernel and user sources.=C2=A0 It de-facto provides two technic= al
measures:
1. kernel refuses to load modules built against headers set with higher
=C2=A0 =C2=A0__FreeBSD_version than kernel
2. Some values of __FreeBSD_version are used by userspace to
=C2=A0 =C2=A0detect if specific change is present in kernel.=C2=A0 See sys/= param.h
=C2=A0 =C2=A0P_OSREL_ list.

3. It's= used extensively in 3rd party software to select different interfaces
(including ports). That's why we document why we do each bump.

While 'forward compatibility' is sometimes n= eeded / provided when it
adversely affects upgrade from source an= d fall back to prior kernel while
it's worked out. But (a) ZF= S BEs eliminate many problems and (b) we've
only done it when= it was impossible to run buildkernel / git (or svn or cvs
in the= past) to fix the problem. While the messages are annoying, they
= don't prevent that limited exception we've occasionally done in the= past.
In general, we've avoided changes so incompatible that= they've needed
a new P_OSREL_ entry to cope...
Warner=C2=A0
--00000000000082a4f30623cf449d--