Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D430EB64D7 for ; Tue, 13 Jun 2023 18:41:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8BE7185F1F; Tue, 13 Jun 2023 20:41:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="UIGu7P3A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E1D028618E; Tue, 13 Jun 2023 20:41:40 +0200 (CEST) Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AD79985EF6 for ; Tue, 13 Jun 2023 20:41:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-56ce372ac00so34448487b3.2 for ; Tue, 13 Jun 2023 11:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1686681696; x=1689273696; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8I6D7+z3aoEi+NrAfbw4nTZYHB2/vwnY0TA2O/9Ax2s=; b=UIGu7P3Ark9LAwQ2IjXx9VMfqXNOlAe3a52gnsDQvlwgCIXk7mBT47pGiwDpcknfMm R3WN5z9H5Ae1+eNm8nAj7pyQDnbePrjHhAfW9LH3aRrQ0mvL8snJUz0uErPpAPr08jDm dzVZNL0E2HonmIe48ooj0jUosQ7SiLoeL0NGA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686681696; x=1689273696; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8I6D7+z3aoEi+NrAfbw4nTZYHB2/vwnY0TA2O/9Ax2s=; b=euBWsVSJeuptABON/Ek7Ii7E6Qzn/4E0lKvhNMDE6f0xdfpcOU7ot6xDGqUp+hUvmS pJqeYHJltYX1fAyt3ilnWl5Pr8Lw+cPKihm60acrSeJE6N+6WJFbnPnbT3/eMXlBCcs+ jyZnD+ai04SKOAb4cvjXN41bhws7FfuUJSTwnQeO24Ap5HfcDEJ9vdNoCUV1yLtBdksK Y8dHtJJB/8M6CGFprZcHIHZLRcliW0GlpJN1vAJZyDeRjdMXOKHE1YPoe4QVfYtxXcC4 7bHdD4LiCkIrdRYYP35iQchqegqRZvHsK22HS39Lkoo2Egab3lng55s93VXduDoEy4kd fRiA== X-Gm-Message-State: AC+VfDz+xrn8/7eto73/q1cZ6IKS51ZndzQz8aE0zAA+3jJaY9Vc/w+i rH3Rs4cUTpLWE3/IMIM4nbuZgQ== X-Google-Smtp-Source: ACHHUZ4G5HZfITUMbkwQxwgCPzIK7JCW2AqDUb/tnCueSD1oHM6bydyF3+xNVwGG5nGQXC5hkdjuHg== X-Received: by 2002:a25:9806:0:b0:bc7:de19:4dd1 with SMTP id a6-20020a259806000000b00bc7de194dd1mr2129345ybo.45.1686681696298; Tue, 13 Jun 2023 11:41:36 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-8761-84b8-dc45-1ebe.res6.spectrum.com. [2603:6081:7b00:6400:8761:84b8:dc45:1ebe]) by smtp.gmail.com with ESMTPSA id o124-20020a254182000000b00bd74eb95db3sm69813yba.16.2023.06.13.11.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 11:41:35 -0700 (PDT) Date: Tue, 13 Jun 2023 14:41:34 -0400 From: Tom Rini To: Peter Robinson Cc: Joe Hershberger , Ramon Fried , u-boot@lists.denx.de Subject: Re: [RFC] disable NFS support by default Message-ID: <20230613184134.GK3931582@bill-the-cat> References: <20230613105221.49006-1-pbrobinson@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qhEsqCZFoGi3VruO" Content-Disposition: inline In-Reply-To: <20230613105221.49006-1-pbrobinson@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --qhEsqCZFoGi3VruO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 13, 2023 at 11:52:16AM +0100, Peter Robinson wrote: > While NFS is widely used in data centres, and private > networks it's quite a nuanced usecase for device firmware. > A lot of devices already disable it. >=20 > Various network protocols should really be opt in, not opt > out, because they add extra size and are potential attack > vectors from a security PoV. In the NFS case it doesn't > really make sense for a lot of devices like tables, SBCs etc. > It's also something we don't really want for SystemReady-IR > due to security concerns. >=20 > Signed-off-by: Peter Robinson > --- >=20 > This is a RFC to start a discussion around things like NFS, > with the addistion of old protocols like NFSv1 that were never=20 > publicly released [1] we really shouldn't be enabling this by > default. >=20 > I am aware it will likely break the functionality for users > that do use the various versions of NFS but it's straight forward > to add CMD_NFS as an explicit config. It's for this reason I > label the patch as RFC. >=20 > There was about a 5Kb saving here when I tested a build with > pinebook-pro-rk3399. >=20 > Peter >=20 > [1] https://en.wikipedia.org/wiki/Network_File_System [snip] This is probably fine, honestly. I don't see any environments that default to making use of NFS within U-Boot (which is not the same as nfsroot for Linux, which a number of platforms have options for by default). --=20 Tom --qhEsqCZFoGi3VruO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSIuFsACgkQFHw5/5Y0 tyyZ9gwAr84l6Ic9ESUnyYXXdpz5UZj2nKOYi4VNb5sNDGx7REHGbVCto7RLpCHE bfx4rewQ/oAK3AmRg3E6LAz7/F/xT/GaAVaq9Z3zvmgIMX5xXpettr11ZByIvdzh +Vc4ZrXLWH9sMmjrWfDsLtUdr2DT6a7RSmeQucZ9xhY08QhLGsfaiC0hy0EzY/aV kYrpauDUnREIFpTm3s+B4d8VDtGicBzN77LoEJPxDT+XhD6CiP3IKiNZ2MB3MSHR xAwS8QrfGoLscum2gu007VtJt+SraCIJzXSU8smEOq2rZCNTUGqT2piyHu2thFc3 7aIkjT7oa8fJeQiKddc+jB1e8rs3M9UHHIlCM9IpX1fPRC9j4bdYIhWxuPzKMpt2 qKLd6SJeKlS3sfv7de41S9z0s9ZTMSzZUZK7V5VJ41qotfrRoEB+lPwYDpOa2YKZ uISmYnXnDMxLUOXWugkE+gLmpqqmK9vcOiaFgZsyjgT+Qichwg7D7gQDYQLZNNYo B2jbrDal =BfCv -----END PGP SIGNATURE----- --qhEsqCZFoGi3VruO--