From nobody Mon Feb 5 21:13:07 2024 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 4TTJy909SZz592MJ for ; Mon, 5 Feb 2024 21:13:21 +0000 (UTC) (envelope-from paulf2718@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TTJy82MHCz52MH for ; Mon, 5 Feb 2024 21:13:20 +0000 (UTC) (envelope-from paulf2718@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=SqJED4BD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of paulf2718@gmail.com designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=paulf2718@gmail.com Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40fdf17fa89so3612725e9.0 for ; Mon, 05 Feb 2024 13:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707167599; x=1707772399; darn=freebsd.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=+moefX2ltD3VtIainMNidRZtwrHZvaHrSibWyDhqm88=; b=SqJED4BD17l30B3zXWJ1UbBczXyJRgNPev/aPmOL6qTi5h2eK6dsc2IhaIJUq7ewyh W9l3DrmjyflOR2ux5ERx97KAFshDVeCk18i4RXXUz+fn2XKMxWH+AqLk3jTUUfsIoX1p qj3/X0hlN48Au5z8rwOfhT790wUHeU41letoivvfGujCNIZqkh7pRWGJ7smRHDq5qWFf w20H4pk9L4BssJKAVmKfe3rZdKblp+zBtHYyqKhShtiqxS25T6Ap2LhUwJQKKdq6HVWa diK+SQ1ANsmGl7cLiXxmc5scpOro33ibtXKxnS4sKXCCyBI1wDwjiLQLfy827gSS7ygo GO3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707167599; x=1707772399; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+moefX2ltD3VtIainMNidRZtwrHZvaHrSibWyDhqm88=; b=oblLPSoXbjIEp+YQrpQruGbUBNYwKwhYgrSGMr/3w8v5jY5UZkGSecxnwMYU63lZiJ WZkkQGF6YGRoohju72NVpNx4ObQ3xWYksJByujXdb9SH1aDb+mxOBVbweOPuqMIkrJm8 BHanorBNP8SSZxh14Lh7Egu1oenhymBQjhum3qcAVq6voGVUbO+7D37HDpf4QhcjjCbL VRTTDrunQQJzYsYiUJ+gAgtbteSUtXfOHglY8ymKogc7doS/vGNMbM1DKku5031HlZO+ +l3wdlE3ddC2u3ssPN0I16waz0bIo35UpFP/1r6hqWcY6/A+ionT0EwjxA0x6tWaVnVj FKdA== X-Gm-Message-State: AOJu0Yyt2mczx/Q3bO0c6oMjBRK49KYCV7cN7ym8RHk+uydOXRaju4cO Wtzn5RBNCtgipKjUrKtrwavaQhi3JIyzJS75sYj4U6ECjgNwAwkDHPVH/X0J X-Google-Smtp-Source: AGHT+IFQMJul4g/rPq2On+kob1xtwiSzccQvJAAnko0QEbmgPDzO6hxldMlGGnTQ6h4P/SQ/uEvRmQ== X-Received: by 2002:a05:600c:4f51:b0:40e:9fd3:6b75 with SMTP id m17-20020a05600c4f5100b0040e9fd36b75mr662173wmq.2.1707167598856; Mon, 05 Feb 2024 13:13:18 -0800 (PST) Received: from smtpclient.apple ([2a01:cb15:8010:2f00:3d77:22b:67cd:ad6e]) by smtp.gmail.com with ESMTPSA id t10-20020a05600c450a00b0040fdf204fe7sm1281075wmo.38.2024.02.05.13.13.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2024 13:13:18 -0800 (PST) From: Paul Floyd Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: libc/libsys split coming soon Date: Mon, 5 Feb 2024 22:13:07 +0100 References: <8a34573d-4a6c-4d5d-a771-b39279059547@gmail.com> To: freebsd-current@freebsd.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32d:from] X-Rspamd-Queue-Id: 4TTJy82MHCz52MH Hi > On 5 Feb 2024, at 17:02, Brooks Davis wrote: >=20 >=20 >>> 2. It simplifies the implementation of restrictions on system = calls such >>> as those implemented by OpenBSD's msyscall(2) >>> (https://man.openbsd.org/msyscall.2). >>=20 >> That's one to ignore for tools that make syscalls outside of the libc = memory >> mapping. >=20 > Should someone implement msyscall(2) there will certainly be an opt = out > mechanism along the usual lines that uses elfctl and procctl. I was thinking more of simply not passing on such syscalls. >=20 >>> 3. It allows language runtimes to link with libsys for system call >>> implementations without requiring libc. >>=20 >> I see that pagesize is on the list of functions that are moving. = There are a >> couple of other functions that might cause me problems if libc isn't = linked. >>=20 >> Could you do a quick test with an exe linked to libsys but not libc = running >> under Valgrind memcheck, please? >=20 > Could you suggest a more concrete example? I don=E2=80=99t think that it really matters. Just an empty main(). The = important thing would be linking to libsys and not libc. A+ Paul=