Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t7ti0-000yF0-Mc for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Nov 2024 09:49:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t7thx-0052OT-UX for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Nov 2024 09:49:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t7thx-0052OL-5O for pgsql-hackers@lists.postgresql.org; Mon, 04 Nov 2024 09:49:14 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t7thu-00071e-13 for pgsql-hackers@lists.postgresql.org; Mon, 04 Nov 2024 09:49:13 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 1CE6A25400F1; Mon, 4 Nov 2024 04:49:09 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 04 Nov 2024 04:49:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1730713748; x=1730800148; bh=5GUACEunj4 y45cW/9GaDkdw+FyyxdU4oTWmABZ7UVyI=; b=nyCnFGa8N7gi6lqTh5+SnHMpC3 Cw+KyexBGMeU/PJjnawKTyF5Kwd1tlRKoDmWQFA1BacD8HeNh9uBeBdTgOI7udqE aEfWEswBkscYoKo8KRoc4g10/jx4igGruaY7TpYWLvDAZ3MLOXctsunohdyM9l8d vGRv/rGHpMcF3YNnZ+VhASQ2MJGG9PghYOZY9esMkiir9odk4DjLnClQF/vVSJ5x h//QaHZtDDAASpxl5bGbICXq94dy3wOBJHNg3IsEr2Ca3t48rEZM7iZ4HlWdyHWV zX7ItaqpuP39JeKe3pG6kaY9DgRFYYPB1ZELWwMw9VLmc+K0K63sPcmhz1hw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1730713748; x=1730800148; bh=5GUACEunj4y45cW/9GaDkdw+FyyxdU4oTWm ABZ7UVyI=; b=Ji2Y6FGGfR8hf+jigpz7R7UcoglOmghi3AKI9Pne0tz7NmdauDG 8Io2TYQWgax9BY+SeH5W/swO9l+1J7gtjdNr3aixwC8cbRKJ4a3ucTpwUM4l4P2g RQH0538GkQm5e9MBz2M9wF+qKZGYRpQ20HIAwQY+vbF/j7WuQ2UlnRU67nuOJCB/ KTIa7aSBdoQB/z27Zl5CZPwwEIjcVdqrIF4rNu/aYcBTtlD4jaVy+lZNVzVSKbNk A9AaKIZil1zY8X6Np3imir2zgOf0RcR1dZNvY3RcWKCYSzdigfpSPX56hk6nJvxP gCvjCCpuYkbveyOIRvyYz1Z6+0qk+qlQlMA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeliedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlje dtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefo ihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihii eqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeegfffhkeeuveetiefg udduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthht ohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepsggvrhhtrhgrnhguughroh huvhhothdrphhgsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghk vghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Nov 2024 04:49:07 -0500 (EST) Date: Mon, 4 Nov 2024 18:49:04 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Clear padding in PgStat_HashKey keys Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+zZiukOeZLi/h++j" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --+zZiukOeZLi/h++j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 04, 2024 at 08:52:04AM +0000, Bertrand Drouvot wrote: > Yeah, but not only the relfilenode ones. All kinds were affected as random data > was in the padding bytes for all of them. A quick test where I add some padding junk in PgStat_HashKey proves that you are right. I'm wondering if we should backpatch that, actually, down to where it has been introduced. We are unlikely going to change this structure, but if we do for the sake of a bug fix, which is always a possibility as ABI does not matter much for this internal structure, that's potentially trouble waiting ahead. Thoughts? -- Michael --+zZiukOeZLi/h++j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmcomJAACgkQnvQgOdby QH0EZw/+J8kwf3Cc/GB2pGJtjaPI6x3r15oI0z/rj5Q543kk1x9nCwChqIPrrIeT B1FDu2/Q/esaRuOPBXqQ4STowbAYKleEhPJUU8rfbsLktgmbKC1TemJcGLpLgDNN hq/yI4dEVrKHxQqlnmadT45121W9mmr53qM+790I9XrQOroYFhjn+f3ZgAkbDvP4 F9UZPlQo9HBCI5G4wnZv/zYWtrkh1SCMn9E1RrRkTLb1Zydgzi1pkW+gSuhocrdI uokbciFDrW0ZNyemrWIzZYBaphzSB3sH78pMVYVdvLQo8baMrfjtkvshAujtNw8C ap0LDjRTZNuy/eAK2RMy41SyvjyopKE8ifW4IYYv1fllJlvR7+BiU8yff4zy2s3c pUdEOSwrL/9q7bZX5eQfJJdQBdnT7rSc8HqGE1eJV+1TKZZFeOMYqTdoeXogWFCH l4l8BKRy6H5bnFj02BTMeYGWBwDj3wUBe9osiHj+fxudz617ygLfOZ/mAn8JFB8K MhYHTyuIKkR2WRhvcfLd8dxEzlrfxI6p8kdRQOsmn6Ds1vh1UNpCNtcAPNJCPIIj x9BH7l/Jkh+8bEZBdSvvnXegGWjYmu9I3uOuuhkWnFq54C/dcS/9rilrlk5d6TuA kpAW8qrLGq/mSoakwIT1SXpFTwU7r+IiIsMZeshmm7FzCHNAHfg= =wHTh -----END PGP SIGNATURE----- --+zZiukOeZLi/h++j--