Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp30363rdb; Fri, 15 Dec 2023 21:43:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjGyHi7g+2Qfv4QlamUdW6nLhnaRVpVtEettgQ1VVVUwfsEo/lRLn/UqgMOOufEcNz23y5 X-Received: by 2002:a05:6512:3b97:b0:50b:f7c4:c0e2 with SMTP id g23-20020a0565123b9700b0050bf7c4c0e2mr8816926lfv.22.1702705401073; Fri, 15 Dec 2023 21:43:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702705401; cv=none; d=google.com; s=arc-20160816; b=xpEKaa17LeupOQIDAnHSEFZTl/OD3J0ZvfNOxZ8KIzYHLErFTATL6ryaJEYUiMjURh RT+l3cqB4JWOa3P2PinxcsQhCW0wlQtACFA3zMMsmbZO9VqEyEdtWA4BnKhW5X9FMeLj fWof9EDK29020OsZEeSFYJWeFS2duLPR4Sbuiwg9s8bax/6doBtVwaPsDZonupl2tcD4 52FAovm8xiphC/+SVIvKc7JB52/VszhJnOXCVKtZBaGYOcbrE+8ZVOIDo9dWnHzJBlsC INfrQWU7J36mz2BwIJoeyJopEZwR3sKQdTUsj8rLkeumzCvEeyLWhGO/wDsbRnhx82/2 yOdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=cBq1YGB8+mYkewUuRJUu9ieYxmmB7G0j9mvXgtVQFXc=; fh=WpwlzAL9vzsWv2q0pOm9jplH50lNYaXaiUyR1+k42fs=; b=DBB5KkxjaQQuzIWPvboawbRURFq3j90EWNVnaizTVADWeACSsovTfa7NCvP17RHemy 5HMO71+RnFpMGgyfcY8Np+EG5ltHqPy213qKkYiK5qp2IAt7G+Jg1hX46bujwMRelksi DKIZrYmSxj0p+VqUdFC3VOBeCJRg1fjZut/cZexgGVW6J3VAStx1690f5xIACifrd5SB ZC0lO4EUg52/SvHE8ZrP37D1BxkrMBQZAfZqmZfNAa5y76m+DQs/TU4X6dlbFUYj/HGw L/K/P6VtdiDeP5z5CTQ8PDHIpPrmXfxbZ+dt7bIzsE2qqt2nAVPV6Bej8Ng8+WBwOn1i cbLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=OynTwoFD; spf=pass (google.com: domain of linux-nfs+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nabijaczleweli.xyz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b26-20020a170906039a00b00a18f4244c01si7803556eja.45.2023.12.15.21.43.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 21:43:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=OynTwoFD; spf=pass (google.com: domain of linux-nfs+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nabijaczleweli.xyz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BF5951F2362A for ; Sat, 16 Dec 2023 05:43:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C26EC11CB1; Sat, 16 Dec 2023 05:43:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nabijaczleweli.xyz header.i=@nabijaczleweli.xyz header.b="OynTwoFD" X-Original-To: linux-nfs@vger.kernel.org Received: from tarta.nabijaczleweli.xyz (tarta.nabijaczleweli.xyz [139.28.40.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 651201170A; Sat, 16 Dec 2023 05:43:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nabijaczleweli.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nabijaczleweli.xyz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1702705390; bh=+wHapOXox/BER7lwK/c3gIBBT3hLoNAm5iv9cDfXCd0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OynTwoFDMNulnT1FKRC/3YIDVQC74pZWGE8XzoKZ1j34ObiTxOFy50juJCoff5YHN JMrWPCd9nAQez89j1VdYaBRJ0VRpC4ZX94QF+YVlqUOXV6MPMYoZK8cNSXzVulPEoa 5bJdADWcRnNg6CvPZfnTjWpIwyx+0cAoj1HQR0YB+gickjyCF2X8X8CttsweA8Np0m EWtO1fxkASRzdkh1er1oxRc7Q86T5/V/jXKckkz2J/FMRUKetNqsfGpwmFSrdTlCMI ynvnsbyslEdk36fX9L40LYP3jqYwT6LDhz9bpOyj91PS7TjpYxNHjMeLeM+9p3ll54 /jRreNYjaNP5w== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 0209113C0A; Sat, 16 Dec 2023 06:43:09 +0100 (CET) Date: Sat, 16 Dec 2023 06:43:09 +0100 From: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= To: NeilBrown Cc: Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Olga Kornievskaia , Dai Ngo , Tom Talpey , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-nfs@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: sunrpc: sizeof('\0') is 4, not 1 Message-ID: References: <4zlmy3qwneijnrsbygfr2wbsnvdvcgvjyvudqnuxq5zvwmyaof@tarta.nabijaczleweli.xyz> <170270083607.12910.2219100479356858889@noble.neil.brown.name> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ur233i3m2n556z64" Content-Disposition: inline In-Reply-To: <170270083607.12910.2219100479356858889@noble.neil.brown.name> User-Agent: NeoMutt/20231103-116-3b855e-dirty --ur233i3m2n556z64 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 16, 2023 at 03:27:16PM +1100, NeilBrown wrote: > On Sat, 16 Dec 2023, Ahelenia Ziemia=C5=84ska wrote: > > To make it self-documenting, the referenced commit added the space > > for the null terminator as sizeof('\0'). The message elaborates on > > why only one byte is needed, so this is clearly a mistake. > > Spell it as 1 /* NUL */ instead. > >=20 > > Fixes: commit 1e360a60b24a ("SUNRPC: Address buffer overrun in > > rpc_uaddr2sockaddr()") > It isn't clear to me that "Fixes" is appropriate as that patch isn't > harmful, just confused and sub-optimal. I definitely agree, I don't like Fixes here at all, but I don't really see another trailer in the documentation or in the log that could be used for this. --ur233i3m2n556z64 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmV9OO0ACgkQvP0LAY0m WPE42RAAuE2y/k1eIQefSd7rFtGSFVgZvFcRmrN8GquoYGeXs596QNnq8tAwSroo 6MB9avhWDwLI6opEuELRalbuFS30kddoRWPZxt/spkrU4hDcagWrU2wkgCb3lFAV Xk0Q5m17j/7aKhOygEI5HlDQVvQu0lz6+8KBzUKGUWqznNZQJPOF0IL3CYO+NmbP Jakn57ZSoT6hTWHsg6vfApSe3sZQiBbBfuxKLVfUMTdAmLl2JZj2UU0w/KXUeteW vI7g7uigw+TXJVqcrAN6bEV4i96zQB523JGmYkhnA0/n03yTQg/mHWGqTsK7iFfC IAakkDCWSJs+dXCnK5WJcBl/MpEGMsR9w0Nswua4CWTZAWFVW5rhKlcwyvagIH9p FVR6osRtVRhYPHYtRXnYyuhmEDaFuLfgFc9YhuJ2JjXmRLOo1l3hITW5Al7/RC0G o3W31S+7d/f+JB4f9WvJ7oo/3SvpzuUzqrpwpP6TR9RNyJ6nrs4Mxu5xk4dXz+vH /v1SecxG/GUV/D005A96AfhkKpmuOClIRSpR5bOCkayoxalS1r1o2Cbj4VGgaDq3 kqYbRZ4uVcdC8EEmfYDwCZXG7ND961SYlEUDnE0EBqup4BptIoYwJudiODuKlNdb o+JaEE4qV4S/QSxrL0tPgvfNqYpKBCdpBnQ9YLEq7fPg7ENw2QU= =gDvI -----END PGP SIGNATURE----- --ur233i3m2n556z64--