From owner-svn-src-head@freebsd.org Mon Jun 29 15:27:41 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 62BB134BFC6 for ; Mon, 29 Jun 2020 15:27:41 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49wWZh6ZxPz3fWw for ; Mon, 29 Jun 2020 15:27:39 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qk1-x744.google.com with SMTP id z63so15561667qkb.8 for ; Mon, 29 Jun 2020 08:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7UvSoQ1JTvo5C6z38ZNTRhGMNOoXVuXvCQGZA+UXWMw=; b=Sj0csJywE9tmP4Ua8oslNmjZ7zqTZKn5bN2ge/O+SuCGdKETBWoho3XPnXlWTr+xga GayD6ukTHwbvTyUq0SWPWOGB3QhlQ8OAUipKhTjhb0q6FMV7GcDJ9qnh/+sMJiT9Z/PD WQvDUFmsSqXuTw6tlfiS2v4epz7ug78/zHRErt1hlgLZaoUDsKMcYCZV9cluZHrwNAXC /J6qWnMeL8Lb4Ip96schS4vI89+zg3v9YJJi42bVDIfXsR7qPFBc2TiKbeGxzyoI/3ch VckckaP5BRLFQeS8eyVdmyujmZwXw5kyvLeI/VDMHAzS2I6Fiaw0fyFIbIvW0xU8Vj5e WELg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7UvSoQ1JTvo5C6z38ZNTRhGMNOoXVuXvCQGZA+UXWMw=; b=L8jkNnoREft94tp8hYtSjpEwW0Ty8IGzXIOVQrLTcn1IqNeW/S9xC+MJYCNBmHmRxD L19oVhItWkP/l8tvLtaHcbFJEJvfMBhty7YnKm2AIJgZfsc/FQPxMi6F9898Gi7jQ6lt NrVN4EAF2NjKvjzleb7o5D0YIxkzwC/qtQz1UPbermQGJaHTtw/RL4nQn7xaVol9ytOR mlER4uaB4MoCdXn3ZgigtIJIXLL1PoN49+9Z5/SBfT5HMNmc3lKbjggpS2apSSb8x3zr VHLMLoiLGOwgqxsfFg8lcS2H7iVr18sbvUJ/pp7Ye9TDIZiYGICSuTT1lVGLLpNErDpR MDXw== X-Gm-Message-State: AOAM5305NoMYNe7G5WkzMy/CuqYRXCaw21zkKF2t8HSmYJgrJ/nOo70o zwZdmyX4170oxr/lmmHsuDv5ww== X-Google-Smtp-Source: ABdhPJyNmtiHLo5RqWnsDw0B/2pjxvW9N79axgBGO1J/fhuO1rIkcj69oXVg7g9h2EKDif14/83Gsw== X-Received: by 2002:a37:670a:: with SMTP id b10mr15031664qkc.314.1593444459214; Mon, 29 Jun 2020 08:27:39 -0700 (PDT) Received: from mutt-hbsd (75-148-2-186-WashingtonDC.hfc.comcastbusiness.net. [75.148.2.186]) by smtp.gmail.com with ESMTPSA id y40sm19406277qtc.29.2020.06.29.08.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 08:27:38 -0700 (PDT) Date: Mon, 29 Jun 2020 11:27:17 -0400 From: Shawn Webb To: Kyle Evans Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r362769 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux Message-ID: <20200629152717.2ojwnipxkmjaoix2@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 13.0-CURRENT-HBSD FreeBSD 13.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0xFF2E67A277F8E1FA References: <202006290309.05T39ETZ044859@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="34h5ghmb2n4ozvpj" Content-Disposition: inline In-Reply-To: <202006290309.05T39ETZ044859@repo.freebsd.org> X-Rspamd-Queue-Id: 49wWZh6ZxPz3fWw X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=Sj0csJyw; dmarc=none; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::744 as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org X-Spamd-Result: default: False [-4.37 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; NEURAL_HAM_MEDIUM(-1.03)[-1.027]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_LONG(-0.99)[-0.987]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[svn-src-head@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; NEURAL_HAM_SHORT(-0.26)[-0.261]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::744:from]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 15:27:41 -0000 --34h5ghmb2n4ozvpj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Kyle, On Mon, Jun 29, 2020 at 03:09:14AM +0000, Kyle Evans wrote: > Author: kevans > Date: Mon Jun 29 03:09:14 2020 > New Revision: 362769 > URL: https://svnweb.freebsd.org/changeset/base/362769 >=20 > Log: > linuxolator: implement memfd_create syscall > =20 > This effectively mirrors our libc implementation, but with minor fudgin= g -- > name needs to be copied in from userspace, so we just copy it straight = into > stack-allocated memfd_name into the correct position rather than alloca= ting > memory that needs to be cleaned up. > =20 > The sealing-related fcntl(2) commands, F_GET_SEALS and F_ADD_SEALS, have > also been implemented now that we support them. > =20 > Note that this implementation is still not quite at feature parity w.r.= t. > the actual Linux version; some caveats, from my foggy memory: > =20 > - Need to implement SHM_GROW_ON_WRITE, default for memfd (in progress) > - LTP wants the memfd name exposed to fdescfs > - Linux allows open() of an fdescfs fd with O_TRUNC to truncate after d= up. > (?) > =20 > Interested parties can install and run LTP from ports (devel/linux-ltp)= to > confirm any fixes. > =20 > PR: 240874 > Reviewed by: kib, trasz > Differential Revision: https://reviews.freebsd.org/D21845 RELNOTES? >=20 > Modified: > head/sys/amd64/linux/linux_dummy.c > head/sys/amd64/linux32/linux32_dummy.c > head/sys/arm64/linux/linux_dummy.c > head/sys/compat/linux/linux.c > head/sys/compat/linux/linux.h > head/sys/compat/linux/linux_file.c > head/sys/compat/linux/linux_file.h > head/sys/i386/linux/linux_dummy.c Should __FreeBSD_version be bumped? Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD GPG Key ID: 0xFF2E67A277F8E1FA GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9 3633 C85B 0AF8 AB23 0FB2 https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Sha= wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --34h5ghmb2n4ozvpj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAl76CFAACgkQ/y5nonf4 4fqWNw//chzeoil4ezgEfetcfHXQifcGckup2OpFx002zqhHlCEG8ODHFI/+DchH kIbvBVBuuhv7tM4WL0ofLIDUSz2tTDy+o4/24Cn8RllQ4tmCNiBavzyNNYmCqmKE szJ6JgoHfx4eftxMp65/s0GtQ2t0m5t29zDCJCi9MboNPyyq7ECF5y+srTzeDaES hq3v1gvcaxWeQUBaOCX8zy295c7qG6MLuPWG+5f+/BDHid7uvOGY50XADqVWJ9ha Ev/aDWDcMdPhUisvBt1aQBKcl5MPtBTqjVS7Et7puyIp9E+L2UqOx9XOT0+UjZkv 5BZHBOqokcFGqPVR6OWrGgaqWG5VqeDAbd97ndm9abFKa+DV/zeLtcVkn2kfPlFx cl2TygmtpjS5KEzDCWfe8XZGVrZoFKoatDk6s93QoyBGNl3BdBXKu0UJ4yU3tvKl w6WGYYl7SVm0VSQN9ecv2nsVOcSOTIhdljxALz8TG1znj+MoTRzHnyw825/Cca4x 0n8s1q5acHUD5FytllboQ8zjnGG6M7CVvupS/+TqQsFCzeUsgYcESBgGyU/7VBn4 drpXRCc+z2K2p5SsLtMuUWGqedkxHyMurqOE0yFCnihnn75dkltqv87ynbJrUqB2 GEij8wV46SjF8XDNObC6cvNOj+r7BMxaqtNCe4BRowfBUiCLcAw= =2GjI -----END PGP SIGNATURE----- --34h5ghmb2n4ozvpj--