Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFz8d-00018P-1X for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2022 14:32:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oFz8b-0000AJ-Dq for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2022 14:32:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFz8b-0000A8-1q for pgsql-hackers@lists.postgresql.org; Mon, 25 Jul 2022 14:32:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFz8Y-0003zV-E5 for pgsql-hackers@postgresql.org; Mon, 25 Jul 2022 14:32:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26PEWgos2015982; Mon, 25 Jul 2022 10:32:42 -0400 From: Tom Lane To: Nathan Bossart cc: Kyotaro Horiguchi , michael@paquier.xyz, gurjeet@singh.im, pgsql-hackers@postgresql.org Subject: Re: Unprivileged user can induce crash by using an SUSET param in PGOPTIONS In-reply-to: <20220725043044.GC4085281@nathanxps13> References: <20220722.151600.1094104349120879204.horikyota.ntt@gmail.com> <729330.1658516182@sss.pgh.pa.us> <20220722223359.GB3998906@nathanxps13> <763512.1658529844@sss.pgh.pa.us> <20220722225615.GC3998906@nathanxps13> <954936.1658597004@sss.pgh.pa.us> <20220725034040.GA4085281@nathanxps13> <1834276.1658720963@sss.pgh.pa.us> <20220725043044.GC4085281@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Sun, 24 Jul 2022 21:30:44 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2015980.1658759562.1@sss.pgh.pa.us> Date: Mon, 25 Jul 2022 10:32:42 -0400 Message-ID: <2015981.1658759562@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > Given all this, I think I'm inclined for the new argument. Pushed like that then (after a bit more fooling with the comments). I haven't done anything about a test case. We can't rely on plperl getting built, and even if we could, it doesn't have any TAP-style tests so it'd be hard to get it to test this scenario. However, I do see that we're not testing session_preload_libraries anywhere, which seems bad. I wonder if it'd be a good idea to convert auto_explain's TAP test to load auto_explain via session_preload_libraries instead of shared_preload_libraries, and then pass in the settings for each test via PGOPTIONS instead of constantly rewriting postgresql.conf. regards, tom lane