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.96) (envelope-from ) id 1vQgNJ-00Ep6V-0I for pgpool-general@arkaria.postgresql.org; Wed, 03 Dec 2025 06:30:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQgNG-00BgHk-20 for pgpool-general@arkaria.postgresql.org; Wed, 03 Dec 2025 06:30:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQgNG-00BgHd-1Q for pgpool-general@lists.postgresql.org; Wed, 03 Dec 2025 06:30:02 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQgND-002sbE-17 for pgpool-general@lists.postgresql.org; Wed, 03 Dec 2025 06:30:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Transfer-Encoding:Content-Type: Mime-Version:References:In-Reply-To:From:Subject:Cc:To:Message-Id:Date:Sender :Reply-To:Content-ID:Content-Description; bh=ypE4slA0yfbU38s4UCkL+L+V2VxFlqyG5rM8eUOiSVU=; b=Jtx2r6fxnacFT5sujJxZc7mS+v VN+0fSjh62jORWrY5A/Ox7vXHJBjbEpR+c60Tc/OZvum4y5g2oAQyoHDlzAhMrlKtdL3+aqQz/rwp +g2+MfMaAGH2UuoQfRpwSQwpyqYPQLS5VL6AzPyEVM5qSw88CWADG1HdITkW7Mc8dJ3ASMHYwpXmh s9yscVoR2MNVeIju5m1ekqg4wpI+5CcyfoSKQuQXxCY1E98ug+jF4aiWxeLg+N1XMNrGhxsevIYWY 1OrsqJVZkyuCxrfgbGg8D9wn/sQdFE/sSaGz3c5j6wauvhstUOaIsuGUCNejKEsJRtvST5B6cIouE D22MIVhA==; Received: from [2409:11:4120:300:d887:e121:60c5:ec84] (helo=localhost) by meldrar.postgresql.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQgN8-006d12-2G; Wed, 03 Dec 2025 06:29:57 +0000 Date: Wed, 03 Dec 2025 15:29:44 +0900 (JST) Message-Id: <20251203.152944.425772962379417344.ishii@postgresql.org> To: zam6ak@gmail.com Cc: pengbo@sraoss.co.jp, pgpool-general@lists.postgresql.org Subject: Re: "buffer overflow detected" when running SHOW POOL_STATUS From: Tatsuo Ishii In-Reply-To: References: <20251202.140205.427777414210613577.ishii@postgresql.org> X-Mailer: Mew version 6.8 on Emacs 29.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:11:4120:300:d887:e121:60c5:ec84 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk >> I found a bug with SHOW POOL_STATUS (and pcp_pool_status). The bug >> broke the data segment used for the conversion from binary form of >> backend flag (in this case ALWAYS_PRIMARY. Other flag does not raise >> the issue) to string representation, which caused the buffer overflow >> issue. >> >> Attached is the patch to fix the issue. > > Ishii-san > > Thank you for finding the bug and fixing it... > > I think this bug warrants a new patch release or a rebuild so we can > use the latest 4.6 in production... > Is it possible to release a new RPM build 4.6.4-2 or 4.6.5? According to our package manager (Peng Bo), she is planning to release updated4.6.4 RPM for Rocky Linux 10 later this month. Best regards, -- Tatsuo Ishii SRA OSS K.K. English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp